• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Python quit unexpectedly on compile ESP32

Q&A Forum › Category: ESP32 › Python quit unexpectedly on compile ESP32
0 Vote Up Vote Down
David Hughes asked 2 years ago

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!
 

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

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

0 Vote Up Vote Down
David Hughes answered 2 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Great.
I’m glad everything is working now.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.