Xilinx / PYNQ

Python Productivity for ZYNQ
http://www.pynq.io/
BSD 3-Clause "New" or "Revised" License
1.95k stars 808 forks source link

os.uname not found #1423

Closed pramil-paudel closed 1 year ago

pramil-paudel commented 1 year ago

pip3 install --upgrade --upgrade-strategy only-if-needed pynq Collecting pynq Using cached pynq-3.0.1.tar.gz (63.0 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] Traceback (most recent call last): File "C:\Users\p522p287\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\p522p287\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p522p287\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p522p287\AppData\Local\Temp\pip-build-env-tvdkpfll\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p522p287\AppData\Local\Temp\pip-build-env-tvdkpfll\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires self.run_setup() File "C:\Users\p522p287\AppData\Local\Temp\pip-build-env-tvdkpfll\overlay\Lib\site-packages\setuptools\build_meta.py", line 488, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\p522p287\AppData\Local\Temp\pip-build-env-tvdkpfll\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup exec(code, locals()) File "", line 35, in AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'? [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

C:\Users\p522p287>python3

C:\Users\p522p287>python Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import os print(os.environ) environ({'ALLUSERSPROFILE': 'C:\ProgramData', 'APPDATA': 'C:\Users\p522p287\AppData\Roaming', 'COMMONPROGRAMFILES': 'C:\Program Files\Common Files', 'COMMONPROGRAMFILES(X86)': 'C:\Program Files (x86)\Common Files', 'COMMONPROGRAMW6432': 'C:\Program Files\Common Files', 'COMPUTERNAME': 'PHSX-3TP4CW3', 'COMSPEC': 'C:\WINDOWS\system32\cmd.exe', 'DRIVERDATA': 'C:\Windows\System32\Drivers\DriverData', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\Users\p522p287', 'LOCALAPPDATA': 'C:\Users\p522p287\AppData\Local', 'LOGONSERVER': '\\ADDC-ELL-LC-02', 'NUMBER_OF_PROCESSORS': '12', 'ONEDRIVE': 'C:\Users\p522p287\OneDrive', 'OS': 'Windows_NT', 'PATH': 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\p522p287\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\p522p287\AppData\Local\Programs\Python\Python311\;C:\Users\p522p287\AppData\Local\Programs\Python\Launcher\;C:\Users\p522p287\AppData\Local\Microsoft\WindowsApps;C:\Users\p522p287\AppData\Local\Programs\Git\cmd', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC', 'PROCESSOR_ARCHITECTURE': 'AMD64', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 151 Stepping 5, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '9705', 'PROGRAMDATA': 'C:\ProgramData', 'PROGRAMFILES': 'C:\Program Files', 'PROGRAMFILES(X86)': 'C:\Program Files (x86)', 'PROGRAMW6432': 'C:\Program Files', 'PROMPT': '$P$G', 'PSMODULEPATH': 'C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules', 'PUBLIC': 'C:\Users\Public', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\WINDOWS', 'TEMP': 'C:\Users\p522p287\AppData\Local\Temp', 'TMP': 'C:\Users\p522p287\AppData\Local\Temp', 'UATDATA': 'C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77', 'USERDNSDOMAIN': 'HOME.KU.EDU', 'USERDOMAIN': 'HOME', 'USERDOMAIN_ROAMINGPROFILE': 'HOME', 'USERNAME': 'p522p287', 'USERPROFILE': 'C:\Users\p522p287', 'WINDIR': 'C:\WINDOWS', 'ZES_ENABLE_SYSMAN': '1'})

############# It means os.uname doesn't support windows and eventually windowd doesn't support pynq.

Thanks