[SOLVED] Cannot do nearly anything, 'SConsEnvironment' object has no attribute 'GetExtraScripts' error

Hi! I am working with platformio v3.5.2 in ubuntu 16.04. The editor is VSCode. when I try to build, upload or create a project there is a not so trackable error:

AttributeError: ‘SConsEnvironment’ object has no attribute ‘GetExtraScripts’: File “/home/pepe/.platformio/penv/lib/python2.7/site-packages/platformio/builder/main.py”, line 159: for item in env.GetExtraScripts(“pre”): ========================== [ERROR] Took 0.42 seconds ==========================

I don’t know how to solve this problem, I’ve tried updating and upgrading Platformio but nothing seems to work.

Thanks in advance!

http://docs.platformio.org/en/latest/faq.html#multiple-pio-cores-in-a-system

1 Like

Thanks! This issue showed up because I was working with a global installation of Pío Core and after that I installed the Pío IDE extension for VSCode.