Hi, I am coming back into ESP32 projects after a long break and I seem to failing at the first hurdle. When I try and compile with the latest IDE (2.2.1) on Mac and a brand new ESP32 board, I get the following error: Python Quit Unexpectedly and the following error message compiling even the simplest code:
dyld[65942]: dyld cache ‘(null)’ not loaded: syscall to map cache into shared region failed
dyld[65942]: Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Referenced from: <D02A15A3-73CB-D46A-4CF7-376BA2DCA340> /Library/Frameworks/Python.framework/Versions/3.4/Resources/Python.app/Contents/MacOS/Python
Reason: tried: ‘/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation’ (no such file), ‘/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation’ (no such file, no dyld cache), ‘/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation’ (no such file)
signal: abort trap
Compilation error: signal: abort trap
Can someone point me in the right direction. I am sure it is a rookie mistake!
Hi.
It seems a similar issue to the one referred here: https://stackoverflow.com/questions/70809158/dyld-cache-system-library-dyld-dyld-shared-cache-x86-64h-not-loaded-syscall
I also found this: https://nektony.com/tips/dyld-library (I’m not sure if this will work because I don’t usually work on a MAC computer) but you can try it.
Usually, I don’t use Arduino IDE version 2 because it still has some bugs especially for the ESP32. I would recommend using the legacy version 1.8.X.
Let me know if you were able to solve the issue with the resources that I’ve sent you.
Regards,
Sara
Sara, you guys are awesome. This worked.
There was only one Python version in the Framework folder (3.4) so I deleted that and all started working.
Many thanks for you very swift help.
Keep up the good work!
David