-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
macOS Big Sur Support #518
Conversation
Added macOS Big Sur support, as Big Sur removes access to Apple's Frameworks to the user, making os.path.isfile() fail. os.path.isfile reads differently than direct file access. The user doesn't have access to the Frameworks because of this -> https://www.reddit.com/r/MacOSBeta/comments/hfknpa/is_corefoundation_missing_for_everyone_on_big_sur/
Added macOS Big Sur support, as Big Sur removes access to Apple's Frameworks to the user, making os.path.isfile() fail. os.path.isfile reads differently than direct file access. The user doesn't have access to the Frameworks because of this -> https://www.reddit.com/r/MacOSBeta/comments/hfknpa/is_corefoundation_missing_for_everyone_on_big_sur/
Update list_ports_osx.py
macOS Big Sur Support, as Big Sur removes access to Frameworks to the user, making os.path.isfile() fail. os.path.isfile reads as the user, but the user doesn't have access to the Frameworks because of this ->
I made this edit because I am on Big Sur, and I was attempting to use my ESP8266 NodeMCU 1.0 in Arduino IDE, but it was complaining. So I did a deep dive into the python code and learned about the new changes, and added what I learned into the code. |
Same change as this one, pyserial@bb073a7
Can someone confirm that this will not break support for older MacOS releases? I guess the paths to the libraries did not change, but to be sure... |
@zsquareplusc how about to move it under try/except? If
does not work, then
In any case, I don't think that this PR is the best solution for this issue but it's good as a temporary workaround. We have over 1,000,000 developers for @platformio and all macOS users will be affected :( |
It looks like an issue with CPython python/cpython#21241 @JoelOsler could you adapt your PR to try/except as I described above? It will work on built-in macOS Big Sur' Python 3 and with the future Python versions that have a fix. Thanks! |
That PR (21241) has a test that suggests that IOKit can be in one of two locations, so a hardcoded path may not work on all versions of MacOS. |
Could we also iterate over
? |
try different paths before using find_libary() related to #518
looking at https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html i believe the short form of |
beta release is available, please see #528 |
Added macOS Big Sur support, as Big Sur removes access to Apple's Frameworks to the user, making os.path.isfile() fail.
os.path.isfile reads differently than direct file access.
The user doesn't have access to the Frameworks because of this -> https://www.reddit.com/r/MacOSBeta/comments/hfknpa/is_corefoundation_missing_for_everyone_on_big_sur/