p3p / pio-nxplpc-arduino-lpc176x

Apache License 2.0
4 stars 13 forks source link

Missing package module! #7

Closed ZhuDaHai closed 3 years ago

ZhuDaHai commented 3 years ago

Getting this error in Platformio as of today. Looks like the release branch was updated a couple days ago and possible broke this.

The current working directory D:\DaHai\Documents\JGMaker A6\Marlin-2.0.6 will be used for the project.

The next files/directories have been created in D:\DaHai\Documents\JGMaker A6\Marlin-2.0.6
include - Put project header files here
lib - Put here project specific (private) libraries
src - Put project source files here
platformio.ini - Project Configuration File
Error: Processing LPC1769 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/release.zip; board: nxp_lpc1769; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Verbose mode can be enabled via `-v, --verbose` option
ImportError: No module named package:
  File "C:\users\dahai\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 167:
    env.SConscript(item, exports="env")
  File "C:\Users\DaHai\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 541:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\DaHai\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 250:
    exec _file_ in call_stack[-1].globals
  File "D:\DaHai\Documents\JGMaker A6\Marlin-2.0.6\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 12:
    from platformio.managers.package import PackageManager
p3p commented 3 years ago

PlatformIO has recently released PlatformIO version 5 which will be autoupdated to and I think this may be an incompatibility between PlatformIO 5 and the version of Marlin you are trying to compile, the error appears to be in buildroot\share\PlatformIO\scripts\common-dependencies.py which is part of Marlin not this platform, Make sure you are using the most recent release of Marlin, (or if you feel brave the bugfix-2.0.x branch).