-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Uploading fails on macOS Big Sur #7763
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
Comments
Can you please give the latest git version a try and report back? We've update pyserial and esptool, both which might be able to compensate for Apple breaking serial ports w/o having to find a new portable Python3. |
Looks like this was indeed fixed in pySerial 3.5. I have not been able to successfully install the core using git version with the Arduino CLI, but I will install the IDE, try the latest git version, and see if it works. |
I followed the instructions in the docs to install the latest git version, but I am getting the following error when I try to compile:
Any idea how to fix this? Seems related to 979bbfe. |
Never mind, looks like it was being caused by the Boards Manager version also being installed. I can confirm that uploading works in the latest git version. 👍 |
@jaredrcleghorn Hello, I have the same problem as you. Can you tell me how to operate it? Thank you very much! |
@wjm0913 Are you using the Arduino CLI or IDE? And how did you install the core? |
@jaredrcleghorn |
@jaredrcleghorn |
I have the same issue, what is the correct way to fix this, I've installed everything from Arduino IDE |
This is not working for me. I have Big Sur version 11.3.1 but I don't have the "/System/Library/Frameworks/IOKit.framework/IOKit" directory installed. And no idea why this is not on my disk. Does anybody have an idea how to have this directory installed ? Is this related to the latest version ? I need to be able to upload again to the esp01. |
Basic Infos
Platform
Settings in IDE
Problem Description
Uploading fails on Big Sur. This seems to be due to the fact that this core depends on Python 3.7.2-post1; Big Sur support was not added until 3.9.1. Specifically, the
ctypes.util.find_library
function does not work in previous version of Python on Big Sur, and pyserial uses this function to import the IOKit and CoreFoundation libraries. You can confirm that this is the source of the problem by observing that the following change totools/pyserial/serial/tools/list_ports_osx.py
fixes the issue:(I did not come up with this fix; I found it on the Arduino Forum: https://forum.arduino.cc/index.php?topic=702144.0.) Is upgrading to Python 3.9.1 possible/feasible?
MCVE Sketch
Here is the sketch that I am trying to upload, but this problem seems entirely sketch-independent:
Debug Messages
The text was updated successfully, but these errors were encountered: