platformio / platform-nxplpc

NXP LPC: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/nxplpc
Apache License 2.0
9 stars 12 forks source link

Error while creating project: Could not initialize project #11

Closed marcbressler closed 6 years ago

marcbressler commented 6 years ago

OS: Windows 10 x64 Freshly installed Atom and PlatformIO IDE package, NXP LPC platform is installed

So while creating a project in the Platformio-ide I get the following error:

PIO Core Call Error: The next files/directories have been created in C:\Users\mbressler\Documents\PlatformIO\Projects\LPCXpresso54114
 platformio.ini - Project Configuration File
 src - Put your source files here
 lib - Put here project specific (private) libraries Error: [06/12/18 15:27:50] Processing lpc54114 (platform: nxplpc; board: lpc54114; framework: mbed)

 PackageManager: Installing toolchain-gccarmnoneeabi @ >=1.60301.0
 Downloading...
 Unpacking...
 CorePackageManager: Installing tool-scons @ ~2.20501.4
 Error: Please read http://bit.ly/package-manager-ioerror
 Warning! Package Mirror: HTTPSConnectionPool(host='dl.bintray.com', port=443): Max retries exceeded with url: /platformio/dl-packages/tool-scons-2.20501.4.tar.gz (Caused by SSLError(SSLEOFError(8, u'EOF occurred in violation of protocol (_ssl.c:726)'),))
 Looking for another mirror...
 Downloading...
 Unpacking...
 tool-scons @ 2.20501.4 has been successfully installed!
 Verbose mode can be enabled via `-v, --verbose` option
 PLATFORM: NXP LPC > NXP LPCXpresso54114
 SYSTEM: LPC54114J256BD64 100MHz 192KB RAM (256KB Flash)
 DEBUG: CURRENT(cmsis-dap) ON-BOARD(cmsis-dap) EXTERNAL(jlink)
 Cannot find the configuration file for your board! Please read instructions here C:\Users\mbressler\.platformio\packages\framework-mbed\platformio\README.txt
 [ERROR] Took 106.30 seconds

The README.txt contains:

# Config generator for mbed framework instalation steps:
1. Install a generic virtualenv management tool named Tox
 - [sudo] pip install tox
2. Run Tox config:
 - tox
3. Check folder "variants" for your target

Running tox in cmd.exe in that directory leads me to the following error:

C:\Users\mbressler\.platformio\packages\framework-mbed\platformio>tox
GLOB sdist-make: C:\Users\mbressler\.platformio\packages\framework-mbed\platformio\setup.py
python inst-nodeps: C:\Users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\dist\piombedgenerator-1.0.0.zip
python installed: appdirs==1.4.3,beautifulsoup4==4.6.0,certifi==2018.4.16,chardet==3.0.4,colorama==0.3.9,enum34==1.1.6,fasteners==0.14.1,funcsigs==1.0.2,functools32==3.2.3.post2,future==0.16.0,fuzzywuzzy==0.16.0,idna==2.7,intelhex==2.2.1,intervaltree==2.1.0,Jinja2==2.10,jsonschema==2.6.0,junit-xml==1.8,lockfile==0.12.2,MarkupSafe==1.0,mbed-greentea==1.4.0,mbed-host-tests==1.3.1,mbed-ls==1.4.6,mock==2.0.0,monotonic==1.5,pbr==4.0.4,piombedgenerator==1.0.0,prettytable==0.7.2,pyelftools==0.24,pyOCD==0.10.0,pyserial==3.4,pywinusb==0.4.2,PyYAML==3.12,requests==2.19.0,six==1.11.0,sortedcontainers==2.0.4,urllib3==1.23,websocket-client==0.48.0
python runtests: PYTHONHASHSEED='518'
python runtests: commands[0] | pip install -r ../requirements.txt
Requirement already satisfied: colorama>=0.3.3 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 1)) (0.3.9)
Requirement already satisfied: PySerial>=2.7 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 2)) (3.4)
Requirement already satisfied: PrettyTable>=0.7.2 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 3)) (0.7.2)
Requirement already satisfied: Jinja2>=2.7.3 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 4)) (2.10)
Requirement already satisfied: IntelHex>=1.3 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 5)) (2.2.1)
Requirement already satisfied: junit-xml in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 6)) (1.8)
Requirement already satisfied: pyYAML in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 7)) (3.12)
Requirement already satisfied: requests in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 8)) (2.19.0)
Requirement already satisfied: mbed-ls>=0.2.13 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 9)) (1.4.6)
Requirement already satisfied: mbed-host-tests>=1.1.2 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 10)) (1.3.1)
Requirement already satisfied: mbed-greentea>=0.2.24 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 11)) (1.4.0)
Requirement already satisfied: beautifulsoup4>=4 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 12)) (4.6.0)
Requirement already satisfied: fuzzywuzzy>=0.11 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 13)) (0.16.0)
Requirement already satisfied: pyelftools>=0.24 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 14)) (0.24)
Requirement already satisfied: jsonschema>=2.6 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 15)) (2.6.0)
Requirement already satisfied: future>=0.16.0 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from -r ../requirements.txt (line 16)) (0.16.0)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from Jinja2>=2.7.3->-r ../requirements.txt (line 4)) (1.0)
Requirement already satisfied: six in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from junit-xml->-r ../requirements.txt (line 6)) (1.11.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from requests->-r ../requirements.txt (line 8)) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from requests->-r ../requirements.txt (line 8)) (2.7)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from requests->-r ../requirements.txt (line 8)) (1.23)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from requests->-r ../requirements.txt (line 8)) (2018.4.16)
Requirement already satisfied: appdirs>=1.4 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from mbed-ls>=0.2.13->-r ../requirements.txt (line 9)) (1.4.3)
Requirement already satisfied: fasteners in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from mbed-ls>=0.2.13->-r ../requirements.txt (line 9)) (0.14.1)
Requirement already satisfied: pyOCD>=0.8.1a1 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from mbed-host-tests>=1.1.2->-r ../requirements.txt (line 10)) (0.10.0)
Requirement already satisfied: mock in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from mbed-greentea>=0.2.24->-r ../requirements.txt (line 11)) (2.0.0)
Requirement already satisfied: lockfile in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from mbed-greentea>=0.2.24->-r ../requirements.txt (line 11)) (0.12.2)
Requirement already satisfied: functools32; python_version == "2.7" in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from jsonschema>=2.6->-r ../requirements.txt (line 15)) (3.2.3.post2)
Requirement already satisfied: monotonic>=0.1 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from fasteners->mbed-ls>=0.2.13->-r ../requirements.txt (line 9)) (1.5)
Requirement already satisfied: intervaltree in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from pyOCD>=0.8.1a1->mbed-host-tests>=1.1.2->-r ../requirements.txt (line 10)) (2.1.0)
Requirement already satisfied: enum34 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from pyOCD>=0.8.1a1->mbed-host-tests>=1.1.2->-r ../requirements.txt (line 10)) (1.1.6)
Requirement already satisfied: pywinusb>=0.4.0 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from pyOCD>=0.8.1a1->mbed-host-tests>=1.1.2->-r ../requirements.txt (line 10)) (0.4.2)
Requirement already satisfied: websocket-client in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from pyOCD>=0.8.1a1->mbed-host-tests>=1.1.2->-r ../requirements.txt (line 10)) (0.48.0)
Requirement already satisfied: pbr>=0.11 in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from mock->mbed-greentea>=0.2.24->-r ../requirements.txt (line 11)) (4.0.4)
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from mock->mbed-greentea>=0.2.24->-r ../requirements.txt (line 11)) (1.0.2)
Requirement already satisfied: sortedcontainers in c:\users\mbressler\.platformio\packages\framework-mbed\platformio\.tox\python\lib\site-packages (from intervaltree->pyOCD>=0.8.1a1->mbed-host-tests>=1.1.2->-r ../requirements.txt (line 10)) (2.0.4)
python runtests: commands[1] | python piombedgenerator/main.py
Traceback (most recent call last):
  File "piombedgenerator/main.py", line 12, in <module>
    import tools.build_api
ImportError: No module named tools.build_api
ERROR: InvocationError for command 'C:\\Users\\mbressler\\.platformio\\packages\\framework-mbed\\platformio\\.tox\\python\\Scripts\\python.EXE piombedgenerator/main.py' (exited with code 1)
___________________________________ summary ___________________________________
ERROR:   python: commands failed

Also tried following the instructions from http://docs.platformio.org/en/latest/faq.html#solution-3-run-from-terminal by running it all manually, but I get the following error which leads me back down the path I have already taken.

C:\Users\mbressler\Documents\PlatformIO\Projects\LPCXpresso54114>C:\Users\mbressler\.platformio\penv\Scripts\platformio run --target upload
[06/12/18 15:42:11] Processing lpc54114 (platform: nxplpc; board: lpc54114; framework: mbed)
-----------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: NXP LPC > NXP LPCXpresso54114
SYSTEM: LPC54114J256BD64 100MHz 192KB RAM (256KB Flash)
DEBUG: CURRENT(cmsis-dap) ON-BOARD(cmsis-dap) EXTERNAL(jlink)
Cannot find the configuration file for your board! Please read instructions here C:\Users\mbressler\.platformio\packages\framework-mbed\platformio\README.txt
============================================== [ERROR] Took 0.52 seconds ==============================================

Thank you for any help you can offer.

ivankravets commented 6 years ago

Sorry for the issue. Please open PIO IDE Terminal and type pio update. Create project again. It should work now.

marcbressler commented 6 years ago

Thank you for the incredibly quick response, that did the job.

What was the issue in the end?

ivankravets commented 6 years ago

It was our issue with a missed data in "mbed" packages.

Happy coding with PlatformIO!