-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
esptool.py in 2.0.0 seems to require macOS 10.15 minimum, fails on 10.13 #5639
Comments
This will probably not solved since github actions runners oldest version which can be used is macos-10.15 |
Board: ESP32-C3 Dev Module
I just upgraded the Core to 2.0.0, and had the same issue. The reason that I upgraded from 1.0.6 to 2.0.0 because I had a new C3 board. However this issue is not only for C3, it basically block all the mac users from using ESP32 boards if the user is having an older mac machines from upgrading to 2.0.0. For other ESP32 boards, I can reverted back to 1.0.6 Core and everything works fine. But for C3, it only supported by Core 2.0.0, and I can't use C3 unless I upgrade to a new mac? Is there anyway that allows user to recompile the lib or using earlier version of python and macOS? |
My workaround was to create a Linux VM on my Mac (I use VMware Fusion) and use that for ESP32 and ESP8266 compilation and uploading. I can share the source folder between the two environments, so I can code and edit in macOS and just swipe to the VM for compilation and uploading. Not so bad. The reason I have not upgraded macOS on my system is the amount of free disk space required by the upgrade process. I would have to remove and reinstall all applications, backup and restore all my data, etc. Not worth the hassle or risk ... yet. esptool has its own repo (https://github.com/espressif/esptool) with instructions for working with the code. Maybe you could raise an issue there ? I will investigate too and try recompiling for 10.13, when I get some time. |
@Jason2866 is right. Arduino ESP32 used automatically built esptools by Github Actions running on MacOS 10.15. It means there is not any workaround to support 10.13 version. The fastest solution is to update your OS. I'm closing the issue, thanks for your contribution! |
Apple won't let me update my Macbook Pro, because it's too old. I'm stuck at High Sierra. 😞 You may not have meant it this way, but what you said comes off as, "Buy a new machine, or you're too poor to use our hardware." It would be nice if you could offer any helpful suggestion or workaround, since it is clear you are not intending to fix the issue. |
You could try using vmware or virtualbox to load Linux, and use that, or
bootup into a Linux environment.
David
…On Thu., Jan. 27, 2022, 19:34 Zachary J. Fields, ***@***.***> wrote:
The fastest solution is to update your OS.
Apple won't let me update my Macbook Pro, because it's too old. I'm stuck
at High Sierra. 😞
You may not have meant it this way, but what you said comes off as, "Buy a
new machine, or you're too poor to use our hardware."
It would be nice if you could offer any helpful suggestion or workaround,
since it is clear you are not intending to fix the issue.
—
Reply to this email directly, view it on GitHub
<#5639 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEDQST3ZTTIL5JP6FD7M7LUYIFGBANCNFSM5DSQQ2FA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I figured out my answer... It turns out,
Here is how they are building it in their CI: Here are the steps required to build it on your own machine:
* If you are having permissions issues when using |
@zfields Thanks for this solution. It certain better than the suggestion of buy a new Mac (upgrade MacOS) or using a VM. |
I'm having the same problem, trying to use esp32 2.0.2 on a Mac running High Sierra (10.13.6). I'm reluctant to go through the process of installing Homebrew. If someone made available a version of esptool compiled under High Sierra, would that solve the problem for users with older Macs? |
A different solution would be using Platformio (with VSC). There is no need for a compiled esptool since Platformio uses the python version. |
FWIW, you should not trust me, or anyone else who provides you a binary from the internet, but here you go: I created/compiled this using Python 3.9 on High-Sierra (10.13), so you will likely need to satisfy both of those requirements in order for this to work. If it doesn't work, then just follow the steps above. They are relatively painless and guarantee that you will create a binary compatible with your system. |
It is a good idea to use esptool.py v3.2 with Arduino core 2.0.2 and pyserial has to be >=v3.5 |
@zfields Thank you so much - it works, and you saved me a lot of hassle. Suggestion: perhaps Espressif could provide an official version as a service to users who don't have the latest Macs. Note for anyone else doing this: I got "permission denied" and had to do |
Thanks from me (the OP) too. Saves having to spin up a Linux VM. |
@zfields you are my hero <3 |
I managed to get this working with 2.0.0 on my High Sierra Mac by replacing esptool 3.1.0 with one kindly provided by @zfields, but after upgrading to 2.0.3-RC1 it seems to have stopped working again. I get:
|
When you upgrade it replaces the contents of the directory. Have you tried replacing |
Thanks for your comment. Yes, I copied across the one you provided. I noticed that the folder name has changed from 3.1.0 to 3.3.0. |
Ughhh... I know a recompile following the steps above would work, but I'm not sure it's necessary. Unfortunately, I don't have time to look at it at the moment. |
No problem; I'm grateful for the response anyway. It's a pity that espressif can't do it, to help people like me who don't have the latest hardware. |
I am willing to worship the person who repeats this process for us poor souls wanting to use 2.0.3+ on our old macbooks. I have an esp32s3 right here and can't believe this is happening :'-( @zfields do you want to be my hero again? |
Ok I made my own, which works with macos 10.13, this is esptool version 3.3.2 |
@marchingband thank you for helping us MacOS 10.13 users!
I assume you mean that when using the Arduino IDE you get:
Here's my solution to that. I confirmed that python3 is actually installed on my Mac by typing this in the Terminal, which gives the full path to it:
Edit the platform.txt file in: /Users/david/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5 Find the line:
Change python3 to the full path given in the "which python3" command earlier. In my case it becomes:
Then everything worked fine! |
That's amazing 😀 thank you for reporting back 🤍 us vintage Mac users gotta stick together! |
I can confirm that (with the updated link above) this esptool works for Arduino-esp32 versions 2.3 to 2.5, and using @technoblogy 's patch to platform.txt, works as it should from the IDE. |
Thanks for your answer, but I fail for follow error message: Then I try another method, I found esptool.py work well, so I make a soft link to this file and copy to the destination folder, it works Then back to the Arduino software and setting finally, Arduino IDE 2.1.0 works well. |
I've updated the procedure to reflect last changes from the ESP32 framework (v2.0.9) which includes esptool v4.5.1. These commands should be executed from within a terminal:
NOTE: this procedure has been tested in a real computer with MacOS Mojave (v10.14.6) and Python 3.11 installed via Macports (in my experience, brew is a pita with our older systems and macports provided a better general behaviour). |
For Mojave 10.14.6, I made some alterations for my situation (you might have to change "4.5.1" to whatever version you have)(I installed python3.11 and pip-3.11 with macports): pip-3.11 install pyinstaller I didn't seem to have a code signing issue mentioned above. |
There's a typo, /esptool/targets/stub_flasher should have had a dot . before: ./esptool/targets/stub_flasher , other than that it werks. I've done this in my mac running osx 10.13.6, and worked fine (the file that ends into /esptool-macos works) despite it throwing some errors about code signing. (Python3 installed with Macports) To install esptool 4.7.0 add intelhex to the line pip install ... |
For others who land here looking to get esp32 running in Arduino IDE on Mojave, here's what worked for me to overcome the sketch compilation failures. Note that I did not try any of the solutions mentioned earlier in this thread.
Environment
|
Thanks so much it worked for me on OSX 10.14.6, just by downgrading the board library to 1.0.6 nothing else needed. Beware that v 1.0.6 may not support some of the newer ESP32 boards. |
Hardware:
Board: ESP32 Dev Module
Core Installation version: 2.0.0
IDE name: Arduino IDE 1.8.15
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 460800
Computer OS: macOS 10.13.6
esptool.py seems to be built for macOS 10.15 minimum, so it fails on 10.13.x
The text was updated successfully, but these errors were encountered: