I’ve had zero issues for 2 years and all of a sudden I can’t build Marlin anymore. I spent nearly 5 days straight trying to fix this, hoping someone here can shed some light.
OS:
Both Macs are running Catalina 10.15.5
Steps:
- Installed VSCode on another mac
- Installed PalformIO IDE
- Downloaded Marlin2.0X
- Built using the check mark (default build env)
Result: Successful build with 2 warnings
On my main machine:
- Uninstalled all home brew or other python installs
- Reinstalled Python 3.8.3 and then used App Cleaner to remove it and VS Code
- Deleted the hidden files .platformio and .vscode in my home directory
- Deleted .zsh profile
- Deleted .bash profile (no longer use it but, hey, can’t hurt)
- Checked my private frameworks to make sure there were no Python stragglers (there weren’t)
- exceuted “Echo $Path” in Terminal to make sure no weird paths were still exported
- Rebooted
- Downloaded VSCode from Microsoft and installed it
- Opened VSCode and installed PlatformIO IDE
- Restarted VSCode as instructed by PIO installation
- Tried to build Marlin2.0x as downloaded
- Failed with these errors:
Fatal Python error: deletion of interned string failed
If I build again I get:
AttributeError: 'WeakSet' object has no attribute 'data':
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1346:
_exec_main(parser, values)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1309:
_main(parser)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1091:
nodes = _build_targets(fs, options, targets, target_top)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1283:
jobs.run(postfunc = jobs_postfunc)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Job.py", line 111:
self.job.start()
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Job.py", line 381:
task = self.taskmaster.next_task()
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Taskmaster.py", line 938:
node = self._find_next_ready_node()
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Taskmaster.py", line 828:
for child in chain(executor.get_all_prerequisites(), children):
File "/Users/Michael/.platformio/penv/lib/python2.7/_abcoll.py", line 605:
v = self
<i>File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Util.py", line 1256:
return UserList.__getitem__(self, i)
File "/Users/Michael/.platformio/penv/lib/python2.7/abc.py", line 132:
if subclass is not None and subclass in cls._abc_cache:
File "/Users/Michael/.platformio/penv/lib/python2.7/_weakrefset.py", line 75:</i>