-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Not compiling using master HEAD on macOS #6490
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
Did you re-run "python get.py" to install the new toolchain required for head? You'll also need the usual "git submodule init" and "git submodule update" to ensure proper sub-git contents. |
yes I've did everything. |
The JSON should be pulling in the proper tarball with the python3 symlink in it:: Arduino/package/package_esp8266com_index.template.json Lines 178 to 184 in 5ca0bde
The referenced tarball does expand to the proper spot. so it looks like our install is somehow taking the tools dir from somewhere else. Odd, not sure what in the Arduino IDE could call that. |
I've now installed a clean Arduino, erased the ~/Library/Application Support/Arduino15 folder and installed again, same results here is my installation script
and the output
Still the same result there My System Python is installed via homebrew
returns
system python command invoke 2.7.10
and python3 command invokes 3.7.4
|
Thanks for the detailed dump. The key is the Basically the core, to support Windows and Linux, doesn't try and fork I have a hunch that the python3 symlink used is pointing to the wrong spot for Mac. Can you report what
Or, it could be that untarring symlinks does not work on MacOS and we need to use a wrapper instead. |
And to short-circuit things, does
If that's good, then a wrapper script could work here (and under any Linux-like OS) |
/usr/bin/env python3 --version |
Great, and the other info to see what's actually been installed? #6490 (comment) |
ls -l tools/python3 which python3 I'm online now and following here |
What exactly is in your tools directory, then? |
ok sorry here it goes in the right directory
|
|
Ah, there's the problem. OSX doesn't have a global You can do the same, simply |
Worked. thank you! |
Build a single sketch using a Travis-CI OSX instance to validate the toolchain works properly on Macs. Update the installed python3 symlink to point to the proper spot for OSX (Python3 is in /usr/local/bin, not /usr/bin). Fixes esp8266#6490
You can give #6492 a try. It adds a real OSX sketch compile to the CI and fixes the symlink. It's basically what you've already done. |
Good. It is working here
|
Build a single sketch using a Travis-CI OSX instance to validate the toolchain works properly on Macs. Update the installed python3 symlink to point to the proper spot for OSX (Python3 is in /usr/local/bin, not /usr/bin). Fixes #6490
Thanks for the fast feedback and confirmation! |
I was having the same problem, the way I fixed it was by following the following instructions from adafruit:
In addition to this, when installing the board manager, I installed version 2.5.2, NOT the latest version. The latest version continued giving me the same error. Hope this helps. |
Hate to do this, but I think this "fix" is actually a bug. The "fix" to the symlink described here is actually creating an undocumented dependency on homebrew. That's the only reason dimitre had python3 in /usr/local/bin. While homebrew is certainly popular, I don't think it's a good idea to assume the user has it set up. In fact, much of this stuff won't work without xcode command line tools installed anyway so once that's done, there's no need to rely on custom installations anyway. For those who are still getting the python3 error, the solution is either to go back to an earlier release of these tools (I think 2.5.2 maybe will precede the homebrew dependency) or else to fix the symlink yourself manually (the path in question is listed in the error message itself). |
This is not true on Mojave 10.14.6. Still trying to get things working there. |
Just to update things here : I've recently updated everything and it claim again it is missing python3. Again solved by making a symlink for python3 installation in tools/python3 folder so it is all good now. |
Please make sure you run the |
get.py didn't work for me. brew install python did. |
@earlephilhower I did it already, here is my install script
@bdwilson python3 installed via homebrew ok, and xcode-install already installed |
Thanks for the info, @dimitre . Does xcode not include python3 in the standard path? Basically, with the latest patch
So, if python3 is registered with the OS for general use, the OS itself (well, /usr/bin/env) will find it. What happens from a standard terminal when you run: Also, can you cat the |
Oh, @bdwilson , you need to install the real python3 yourself. Looks like Mac's getting dumbed down and not including any Python interpreter in later releases (whilst Windows is going to support Linux...it's an odd world). With your comment, it seems that Homebrew does install python3 and register it properly for the new |
Platform
Settings in IDE
Problem Description
No sketches are compiling using git master HEAD in macOS
here is the output in console in red
The text was updated successfully, but these errors were encountered: