platformio / platformio-atom-ide

PlatformIO IDE for Atom: The next generation integrated development environment for IoT
https://atom.io/packages/platformio-ide
Apache License 2.0
476 stars 71 forks source link

PlatformIO: Failed to initialize PlatformIO project! (macOS Sierra) #187

Closed justiceamoh closed 7 years ago

justiceamoh commented 7 years ago

Hi,

I've been trying hard to get PlatformIO IDE to work but to no avail. Whenever I create a new project, it fails to initialize. My target board is a Teensy 3.6 and you'll find the error log below. I have uninstalled the Atom IDE, deleted the .platformio folder but still run into the problem. Interestingly, when the platformio cli tools work perfectly and I can initialize, build and upload programs from the command line. The IDE just fails to initialize for some reason. Any ideas how to resolve this? I searched through closed issues and the previous 'Failed to initialize' seems to be related to something else. Thanks.

Error: [Tue Dec 13 13:56:03 2016] Processing teensy36 (platform: teensy, board: teensy36, framework: arduino)
--------------------------------------------------------------------------------
PackageManager: Installing framework-arduinoteensy @ ~1.131.0
Downloading...
Unpacking...
framework-arduinoteensy @ 1.131.0 has been successfully installed!
PackageManager: Installing tool-scons @ >=2.3.0,<2.6.0
Downloading...
Unpacking...
tool-scons @ 2.4.1 has been successfully installed!
PackageManager: Installing toolchain-gccarmnoneeabi @ >=1.40803.0,<1.40805.0
Downloading...
Unpacking...
toolchain-gccarmnoneeabi @ 1.40804.0 has been successfully installed!
Verbose mode can be enabled via `-v, --verbose` option
Collected 85 compatible libraries
Looking for dependencies...
Project does not have dependencies
TypeError: sequence item 1: expected string, int found:
File "/usr/local/Cellar/platformio/3.1.0/libexec/lib/python2.7/site-packages/platformio/builder/main.py", line 149:
print json.dumps(env.DumpIDEData())
File "/Users/Junior/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "/usr/local/Cellar/platformio/3.1.0/libexec/lib/python2.7/site-packages/platformio/builder/tools/piomisc.py", line 247:
"defines": get_defines(env_),
File "/usr/local/Cellar/platformio/3.1.0/libexec/lib/python2.7/site-packages/platformio/builder/tools/piomisc.py", line 232:
item = "=".join(item)
========================= [ERROR] Took 175.57 seconds =========================
ivankravets commented 7 years ago
  1. You have multiple PlatformIO in the system.
  2. Please unisntall brew's version via brew uninstall platformio
  3. Go to PlatformIO IDE Menu: PlatformIO > Settings > PlatformIO IDE > Use built-in Core.