-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
PlatformIO detect wrong system type on Windows #4353
Comments
How is it possible? Please provide an output of |
|
def get_systype():
type_ = platform.system().lower()
arch = platform.machine().lower()
if type_ == "windows" and "x86" in arch:
arch = "amd64" if "64" in arch else "x86"
return "%s_%s" % (type_, arch) if arch else type_ return "%s_%s" % (type_, arch) if arch else type_ |
Is this a virtual machine? What is your CPU? |
It's my notebook, Ryzen 5 5700U |
Please type import platform
platform.architecture()
platform.machine() Please provide output. |
It seem like a python internal bug ---- update |
Yes, looks like a Python bug. Let me quickly make a fix on our side. Thanks for the report. |
Please re-test with Does it work now? |
I noticed that we use I do have a Windows arm device but I can't access to it now, so I can't give a help on this. * Now it's 1AM here, I will give feedback for new version tomorrow asap. |
work fine now |
WE are having the same issue, but in reverse. it is detecting as a windows_amd64, but I am running on intel |
It's actually correct. Most 64bit Intel processor should be determined as |
What kind of issue is this?
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Windows 10 Pro x64
PlatformIO Version (
platformio --version
): PlatformIO Core, version 6.1.1Description of problem
PlatformIO detect my system as
windows
instead ofwindows_amd64
, and could not install package from repo.Steps to Reproduce
Actual Results
Expected Results
should detect my system as
windows_amd64
and install package successfully.If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
No.
Additional info
The text was updated successfully, but these errors were encountered: