-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
arduino-esp32 projects fail on macOS 11 "Big Sur" #4408
Comments
me too :( |
When I compile and upload, -esptool is dependent on pyserial (you need to install pyserial latest version) and -Arduino's default preferences for ESPTool is binary file , it does not use the (esptool.py) source file. How to replace?... :)
|
Thank you for this solution. It works great. chmod +x /Users/XXXXX/Library/Arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py |
Does the executable work? If you open a command line and run it, do you get an error (perhaps about python2 not being installed)? We need a solution that can work on osx and big sur. |
@aungthawdar tried your solution and got this error
|
can you guys try the idf-release/v4.2 branch? It has updated esptool that should contain a fix |
@me-no-dev seems to be working with 4.2! Perfect Thnx! |
When I tried replacing esptool with esptool.py in the platform.txt file, I got the What am I doing wrong? What's the proper way to install the idf-release/v4.2 branch? |
It really works, and we have to combine the method with the command @robsworld provided. When compiling, remember to choose "ESP32 Arduino", NOT "ESP32 Arduino(in sketch book)", and have fun coding! |
@TimoWielink thanks for the confirmation :) I have updated the version in Master, so it will go out in 1.0.5 in a few days. |
@SpoonS2K https://pyserial.readthedocs.io/en/latest/pyserial.html Here is how to test, you've already installed serial or not.
Have a nice code. :P |
Thanks guys, just did the above and got it working on Big Sur for ESP32 in Arduino. There's also some playing about getting the CP210x driver working for Dev-Kit ESP32 variants, involving adding the Silicon Labs developed ID to kext in OSX. |
@tomtomhoward if you have updated to 4.2, then you should not have needed to change esptool. It is already a patched one. |
I wouldn't trust my take on it, I'm working at the limits of my knowledge here to be honest. I think I might have messed up the 4.2 install as my Documents folder is on iCloud Drive. |
Thank you so much for taking the time to explain! I did all this and got it to work. :) |
Thank all of you! I tried out different variants but still was not able to get it to work. I reinstalled the Arduino IDE and deleted all my library folders to start from a clean slate. As far as I have understood, the current main branch has already the Big Sur patch included, right? But I unfortunately still get the After doing the recommended fix by @aungthawdar I get also the Do you have any ideas or recommendations? Would be very much appreciated! |
@olivierbrcknr did you install from git? to your [sketchbook]/hardware/espressif/esp32 folder? |
Yes, I followed the repo's instructions for macOS |
could you check the esptool version? |
You can now also try to install 1.0.5-rc2 through the board manager using https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
So, I added the .json file you shared to reinstall it through the board manager. This didn't work, so I deleted and installed everything again to make sure I do not have any old file conflicting or accidentally being used, still the same error. I then figured out I had yet another python version, installed pyserial and serial there as well to test the esptool.py method again, but also no success. I have the esp32 library version |
hmmm that is strange. that version of esptool I read should be patched... I guess I need to figure out BigSur VM, because I can not now upgrade to it and risk messing up my work env :) |
No worries, I should have done the same ;) I will experiment a little more and try to figure out the issue, probably it's related to my individual settings/mess-ups. I will let you know if I solve it! |
In my opinion, whether it's latest ArduinoIDE / latest Arduino-esp32 version or not , dependency is python & pyserial. I suggest to https://opensource.com/article/19/5/python-3-default-mac for right python and pip version.
install python -m pip install pyserial Have a nice code. :P |
It would be preferable to have a version of the toolchain that just worked with the Python version installed as part of the OS. As it currently stands, installing esp32 library version 1.0.5-rc2 on OS 11 fails exactly the same way as version 1.0.4 does. Yes, one can install Homebrew, then install Python 3.7.x, then install pip3, and finally make the dotfile changes to run pyenv, but that's hardly a turnkey solution, especially by Arduino standards. And you'd only know about it if you'd followed this issue. Expect a lot of support requests if this convoluted path isn't straightened out. :-) For me, it's just a lot less bother to develop in a 10.15 VM atop OS 11, because I'd already gotten that working a couple of weeks ago on the first try, with no false steps and no weird error messages. But that's just me... |
given that mac uses a prepackaged python into binary, it should not care for what is on your OS. I find it strange that it does. Whatever the fix is, it should not require the user to install anything else, just like it is on anything but BigSur. Arduino does not differentiate between the versions, so we can not provide two files for mac. |
I´m not really good in using the terminal on mac. Thank you! |
@rOOOObin , XXXXX means XXX^2 => porn square (Just kidding). In your mac terminal, Cheers |
Me too. I was working until today when a botched library install (Blynk). I uninstalled Arduino (yeah, I know) bash: line 0: [: /Users/tim/xxx: binary operator expected Any suggestions? |
Yep, still having major issues after doing everything in here.... |
Some sketches fail with a bash error as I showed above and others with a "cp" FWIW On some scripts the problems go away if there are no comments at the top of the file... weird right? |
For a Mac Big Sur user on a 2015 Macbook Pro, the only solution that worked was to revert my OS to Catalina. Like I mentioned above, none of the suggested solutions worked for me, and I had confirmed PySerial was installed correctly, but not being utilized by Arduino's IDE. I had been having many many issues with Big Sur, so I'm actually happy to be back on Catalina. Hope this helps some poor Big Sur Soul fix their issues. |
So, I was able to get it working (apologies if you've already tried this or if I just overlooked it being posted on here). What I found is that Arduino natively uses Python 2.7 instead of the now-standard 3+ that most would have. So what was happening in my case was it was searching for pyserial FOR 2.7 instead. What I had to do was download pyserial, direct terminal to that folder, and then do a manual install for "python2" and now everything works. Note, I was on Big Sur 11.2 and now am on Big Sur 11.3 Beta so this should work for the most recent macOS. |
So would it not be much easier to change in the IDE to Phyton 3+, than nobody has to make a workaround? |
You would think, but I've not seen this possible anywhere. I believe Arduino themselves has control over this, but I could be wrong. |
Could you please detail a little bit how did you do this? |
Yeah! So you need to download pyserial (https://pypi.org/project/pyserial/) and unzip it. Put it on your desktop, or somewhere easy to navigate to in terminal. Open terminal and direct it to be inside the folder, and then type "sudo python2 setup.py install". This should initiate the download and then all you have to do it go back into Arduino and it should work. |
Thx luxnaut for this The library installed well. and I restarted the Arduino IDE Unfortunately, same error saying: Traceback (most recent call last): |
Hmmmm....I genuinely do not know then, I felt lucky to have this work for
me. I'll be sure to update if I find anything more. Sorry!
…On Mon, Feb 8, 2021 at 1:06 PM jdgarcia99 ***@***.***> wrote:
So, I was able to get it working (apologies if you've already tried this
or if I just overlooked it being posted on here). What I found is that
Arduino natively uses Python 2.7 instead of the now-standard 3+ that most
would have. So what was happening in my case was it was searching for
pyserial FOR 2.7 instead. What I had to do was download pyserial, direct
terminal to that folder, and then do a manual install for "python2" and now
everything works. Note, I was on Big Sur 11.2 and now am on Big Sur 11.3
Beta so this should work for the most recent macOS.
Could you please detail a little bit how did you do this?
Sorry but I'm still locked into this problem. I'm also in Big Sur 11.2
THX!!!!
Yeah! So you need to download pyserial (https://pypi.org/project/pyserial/)
and unzip it. Put it on your desktop, or somewhere easy to navigate to in
terminal. Open terminal and direct it to be inside the folder, and then
type "sudo python2 setup.py install". This should initiate the download and
then all you have to do it go back into Arduino and it should work.
Thx luxnaut for this
The library installed well. and I restarted the Arduino IDE
Unfortunately, same error saying:
Traceback (most recent call last):
File
"/Users/juande/Library/Arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py",
line 38, in
import serial
ModuleNotFoundError: No module named 'serial'
Found many libraries for "WiFi.h"
Used:
/Users/juande/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WiFi
Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi
exit status 1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4408 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIO7Q3EEYRY5KIYHASV4PFLS6A73ZANCNFSM4SLNSPFA>
.
|
It works! Following the instruction and modified file permission. |
Just for all big sur users as a future reference. |
Same error but my cloud folder is locally synced so it should see a local path. But this path has a space in the middle and the bash error reports only the path until the space. Maybe the error is here? |
Thanks valepe for the suggestion, you are right! Just remove any spaces of the folder/sub folders of the sketch's path and it works fine. No further actions needed. |
My hope is that they fix it anyway. Indeed it's an error. |
I just ran into this space in the path issue as well (OSX 10.14), leading to the somewhat cryptic "binary operator expected usage". thanks for the notes here! If I recall this didn't happen before but its been a few OSX versions... I just tried to compile the same code from a while back that was stored in a different folder, while the same code checked out to another path (with no spaces) was working fine. |
several months into this issue and SiLabs are still ignoring it and pretending the driver they released in September of last year works. It does not. 7 months now with horrible support shows me I will never integrate any Silabs products in any design. |
I followed this step to change my documentation, but I got a new error:. fork/exec /Users/Lerry/Library/Arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py: permission denied Does anyone know how to solve this one plz? |
please stop "hacking" :) Latest 1.0.6 release and current master branch both support BigSur. I develop on M1 mac here :) |
same here :( |
Hi, I am on Big Sur 11.4 I have a board with a I've install esp32 module v 1.0.6 via this location: https://dl.espressif.com/dl/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json I've installed the latest Silab 2102x driver from here: https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip This is my upload experience (while holding the button down on my device):
Aside from reinstalling all of this software for the 1000x time, or bashing head against the wall, is there anything I can do to debug this further? Also odd, the device presents two USB devices on osx, the one above and:
|
I have decided to write a summary for all those reading the post at a later time.
4.1) Paste the copied file into 4.2) Open
Those steps worked for me, I hope it helps :) |
Hardware:
Board: DOIT ESP32 DEVKIT V1
Core Installation version: esp32 1.0.3
IDE name: Arduino 1.8.12, 1.8.13
Flash Frequency: N/A
PSRAM enabled: N/A
Upload Speed: N/A
Computer OS: macOS 11.0 Beta (20A5384c) (and earlier betas, too)
Description:
Any attempt to compile an ESP32 project, even an empty one as shown below, fails with:
ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found
The same projects compile and run without problems on macOS 10.5.X.
See also https://forum.arduino.cc/index.php?topic=699989.0 for another report of the same problem.
Sketch:
Debug Messages:
The text was updated successfully, but these errors were encountered: