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

PIP Install Errors #95

Open
whitbydev opened this issue Jan 19, 2021 · 1 comment
Open

PIP Install Errors #95

whitbydev opened this issue Jan 19, 2021 · 1 comment

Comments

@whitbydev
Copy link

Building wheel for ujson (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\matt\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\setup.py'"'"'; file='"'"'C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Matt\AppData\Local\Temp\pip-wheel-i22n_1iy'
cwd: C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9
Complete output (14 lines):
Warning: 'classifiers' should be a list, got type 'filter'
running bdist_wheel
running build
running build_ext
building 'ujson' extension
creating build
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\lib
creating build\temp.win-amd64-3.9\Release\python
d:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -Ic:\users\matt\appdata\local\programs\python\python39\include -Ic:\users\matt\appdata\local\programs\python\python39\include -Id:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\ATLMFC\include -Id:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /Tc./lib/ultrajsondec.c /Fobuild\temp.win-amd64-3.9\Release./lib/ultrajsondec.obj -D_GNU_SOURCE
ultrajsondec.c
C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\lib\ultrajson.h(56): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
error: command 'd:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Failed building wheel for ujson
Running setup.py clean for ujson
Failed to build ujson
Installing collected packages: ujson, syllapy
Running setup.py install for ujson ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\matt\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\setup.py'"'"'; file='"'"'C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Matt\AppData\Local\Temp\pip-record-eobpo6yh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\matt\appdata\local\programs\python\python39\Include\ujson'
cwd: C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9
Complete output (14 lines):
Warning: 'classifiers' should be a list, got type 'filter'
running install
running build
running build_ext
building 'ujson' extension
creating build
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\lib
creating build\temp.win-amd64-3.9\Release\python
d:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -Ic:\users\matt\appdata\local\programs\python\python39\include -Ic:\users\matt\appdata\local\programs\python\python39\include -Id:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\ATLMFC\include -Id:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /Tc./lib/ultrajsondec.c /Fobuild\temp.win-amd64-3.9\Release./lib/ultrajsondec.obj -D_GNU_SOURCE
ultrajsondec.c
C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\lib\ultrajson.h(56): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
error: command 'd:\Data\apps\VS2019\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\matt\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\setup.py'"'"'; file='"'"'C:\Users\Matt\AppData\Local\Temp\pip-install-l0j0afpg\ujson_7ec301c0567b44aab36a8e2e995eace9\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Matt\AppData\Local\Temp\pip-record-eobpo6yh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\matt\appdata\local\programs\python\python39\Include\ujson' Check the logs for full command output.

@Kip-sh
Copy link

Kip-sh commented Oct 26, 2021

Bit late but this is a windows only issue, however, with wsl you can still use this package
i believe this package was never really intended to be ran on windows so using linux is your best option considering the inactivity of the dev

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

No branches or pull requests

2 participants