Hello
I use Platformio to update Marlin on my 3D printer. 2 weeks ago it worked perfectly and today I changed a Marlin parameter and when compiling I get this error:
ModuleNotFoundError: No module named 'platformio.managers.package':
File "C:\users\oscar\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 167:
env.SConscript(item, exports="env")
File "C:\Users\Oscar\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Oscar\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "D:\Oscar\Impresion 3D\Marlin\Marlin-2.0.6\Marlin 2.0.6 MKS Robin-V6-BMG\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 12:
from platformio.managers.package import PackageManager
Have you tried updating your PlatformIO installation (pio upgrade --dev) or reinstalling it completely (deleting C:\Users\<users>\.platformio completely, too)?
Hello
I have updated Platformio and I keep getting the same error, can’t import PackageManager.
But the weird thing is that other Marlin compilations and other projects with ESP8266 and Arduido compile fine.
That’s why installing everything I don’t know if it will be the solution
I ran into this exact error - turns out the problem is you need to update the Marlin source code. Doing a git pull on the branch to get the latest fixed the problem, reinstalling platformio did not. The problem is your platformio has updated at some point, but the Marlin code is using an older API.
It seems that the platformio.managers.package was removed - or at least trying to do import platformio works, import platformio.managers works, and import platformio.managers.package gives the error.
Possibly a bug in the Marlin version, but I see that Windows 10 has something to do with the problem. I have solved it by installing the Ubuntu subsystem on Windows 10 and compiling the same code but with platformio on Linux Ubuntu.
Hello
It is a problem with Marlin 2.6.0 since when updating Platformio to version 5 it gives the same error when compiling in linux as in Windows 10. I will test Marlin 2.6.1 to see if it works well and this incompatibility is solved.
Is there anything else that has to be changed in new configuration.h ?
After update I experience problem with RE-ARM board. Now when I upload firmware and connect re-arm to computer it doesn’t recognize SD card anymore and loses USB connection after couple of minutes.
I am having this issue with the 2.0.6.1 Marlin build for the board, This is my first time working with updating the firm ware and Im not sure what is going wrong.
I’m using Github Desktop and merged upstream into my branch, so Marlin (bugfix-2.0.x) should be updated with the latest updates as of just a few minutes ago. I’ve also tried to download both stable and bugfix from Github to my local machine and copied buildroot manually, but I still have the same error, except my missing module is ‘elftools’. I’m running PlatformIO 5.0.3. VSCode is also updated (v1.51.1). Any idea how to fix this?