Skip to content
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

Upgrade to v3.3.0 installs wrong Python version on Apple ARM #3949

Closed
Jason2866 opened this issue Jan 27, 2024 · 11 comments
Closed

Upgrade to v3.3.0 installs wrong Python version on Apple ARM #3949

Jason2866 opened this issue Jan 27, 2024 · 11 comments

Comments

@Jason2866
Copy link

@ivankravets
Upgrading installs a non native Python version on Apple Silicon. Instead of an Apple ARM python version a Apple x86 python version is installed. This brakes any use of native Apple ARM tools and toolchains.

Please provide a native Python version for Apple ARM.

@ivankravets
Copy link
Member

A temporary solution is to disable platformio-ide.useBuiltinPython setting. Remove ~/.platformio/penv and ~/.platformio/python3 folders. Restart VSCode.

@Jason2866
Copy link
Author

Just did this already to solve ;-)

@e7h4n
Copy link

e7h4n commented Mar 20, 2024

I got the same error, it really hard to find the root cause :(

@Jason2866
Copy link
Author

@ivankravets Any news, this is not a minor bug. It brakes every clean fresh installation on Apple ARM.
Building an portable Python seems not so hard. Tried this with Github Actions.
https://github.com/Jason2866/python-portable-darwin_arm

@ivankravets
Copy link
Member

@Jason2866 , thanks for the GH workflow! Great idea!

Could you update it to let GH prepare portable archives for x64 and arm? I’m owner of 2019 Intel-based MacBook Pro, I can test the x64 version.

Thanks!

@Jason2866
Copy link
Author

@ivankravets
Copy link
Member

Could you remove the following folders?

  • ~/.platformio/.cache
  • ~/.platformio/penv
  • ~/.platformio/python3

Please ensure that platformio-ide.useBuiltinPIOCore and platformio-ide.useBuiltinPython options are enabled in the PlatformIO IDE for VSCode.

Does it work now?

@Jason2866
Copy link
Author

Yes, it does work now!

@ivankravets
Copy link
Member

Thanks a lot for the idea with the GH actions 🙏

@Jason2866
Copy link
Author

@ivankravets Stumbled over this official Github repo https://github.com/actions/python-versions
Maybe you can use in future, avoiding double work?

@ivankravets
Copy link
Member

Their packages are OS-dependent and require superuser access. Indeed, we use official Windows packages from python.org and the only macOS packages are cross-compiled to portable format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants