Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile Marlin-2.1.x-MPMDv2 #7

Open
piberry opened this issue Aug 1, 2023 · 1 comment
Open

Unable to compile Marlin-2.1.x-MPMDv2 #7

piberry opened this issue Aug 1, 2023 · 1 comment

Comments

@piberry
Copy link

piberry commented Aug 1, 2023

Hi!
I´m trying to compile Marlin-2.1.x-MPMDv2 in VS Code with Platformio v3.3.1 and Auto Build Marlin
v2.1.45, also tried with older versions of Platformio and a sugested fix (copy over marlin.py from latest marlin or manually edit the file to add .copy) but it always fails with the same error. Please help, thanks!

Edit: I can compile the default branch (2.1.x) without any problem.

RuntimeError: deque mutated during iteration:
File "C:\Users\user.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 182:
env.SConscript(env.GetExtraScripts("post"), exports="env")
File "C:\Users\user.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\user.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Marlin-2.1.x-MPMDv2\buildroot\share\PlatformIO\scripts\WEEDOR83.py", line 5:
for define in env['CPPDEFINES']:

@piberry piberry changed the title Unable to compile Unable to compile Marlin-2.1.x-MPMDv2 Aug 1, 2023
@piberry
Copy link
Author

piberry commented Aug 2, 2023

I was able to fix the issue after a lot of trial and error. Here is what worked for me.
In PlatformIO, open PlatformIO Core CLI and enter:

pip uninstall platformio
pip install "platformio==6.1.6"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant