Closed alikabeer32 closed 4 years ago
This is when I try to install jsonnet
pip install jsonnet
Collecting jsonnet
Using cached jsonnet-0.15.0.tar.gz (255 kB)
Building wheels for collected packages: jsonnet
Building wheel for jsonnet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-rdxd8xcw\\jsonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-rdxd8xcw\\jsonnet\\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\Ali\AppData\Local\Temp\pip-wheel-qhp24t5g'
cwd: C:\Users\Ali\AppData\Local\Temp\pip-install-rdxd8xcw\jsonnet\
Complete output (4 lines):
running bdist_wheel
running build
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Failed building wheel for jsonnet
Running setup.py clean for jsonnet
Failed to build jsonnet
Installing collected packages: jsonnet
Running setup.py install for jsonnet ... error
ERROR: Command errored out with exit status 1:
command: 'D:\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-rdxd8xcw\\jsonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-rdxd8xcw\\jsonnet\\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\Ali\AppData\Local\Temp\pip-record-rlns9qaa\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\anaconda3\Include\jsonnet'
cwd: C:\Users\Ali\AppData\Local\Temp\pip-install-rdxd8xcw\jsonnet\
Complete output (4 lines):
running install
running build
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-rdxd8xcw\\jsonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-rdxd8xcw\\jsonnet\\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\Ali\AppData\Local\Temp\pip-record-rlns9qaa\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\anaconda3\Include\jsonnet' Check the logs for full command output.
@alikabeer32 we don't officially support windows. Jsonnet has been a sticking point for windows users: https://github.com/allenai/allennlp/issues/612
We'd welcome contributions but are unlikely to prioritize this ourselves.
Is there a workaround ?
@MausamGaurav, @alikabeer32, for now you can pip install jsonnetbin
to avoid this warning/error.
My code:
Output:
As you can see I am getting the desired answer but it's SUPER slow compared to the demo on the allennlp site. I figure it has something to do with the warnings?
My OS: Windows 10 Python: 3.7.6
PS: I can't seem to be able to install jsonnet at all. Is it even available for windows?