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

Downgrade bundled Python to 3.9.13 on Windows #367

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

justinlampley
Copy link
Collaborator

The current bundled version of python for windows, 3.11 alpha, does not work with the Platform IO 1.1.2 installer, so downgrade the bundled python for windows to 3.9.13.

Tested on Windows 10 and in a Windows 11 dev environment VM.

On Windows 11, there is an error when installing platformio in regards to the wheel package, but it doesn't seem to affect platform io or building the firmware and it occurs on all the versions of python I tried.

  Building wheels for collected packages: platformio
  Building wheel for platformio (setup.py): started
  Building wheel for platformio (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  python setup.py bdist_wheel did not run successfully.
  exit code: 1
  
  [590 lines of output]
  running bdist_wheel

...

error: could not create 'build\bdist.win-amd64\wheel\.\platformio\project\integration\tpls\eclipse\.settings\org.eclipse.cdt.core.prefs.tpl': No such file or directory
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Running setup.py clean for platformio
  ERROR: Failed building wheel for platformio
Failed to build platformio

...

PlatformIO Core has been successfully installed into an isolated environment `C:\Users\User\.platformio\penv`!

I have also included a PowerShell script that creates a portable version of python, which will make it easier to change versions if we need to do so again.

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

Successfully merging this pull request may close these issues.

2 participants