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

Can not install pysbrl on windows #4

Open
Tabib-Mazhar opened this issue Jun 25, 2020 · 0 comments
Open

Can not install pysbrl on windows #4

Tabib-Mazhar opened this issue Jun 25, 2020 · 0 comments

Comments

@Tabib-Mazhar
Copy link

Code Sample, a minimal, complete, and verifiable piece of code

# Your code here
pip install pysbrl --no-binary=pysbrl 
I have also used 
pip install pysbrl but that also gets error while creating wheel. 

Problem description

ERROR: Command errored out with exit status 1:
command: 'C:\Users\Tabib\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Tabib\AppData\Local\Temp\pip-install-7t3xs1dx\pysbrl\setup.py'"'"'; file='"'"'C:\Users\Tabib\AppData\Local\Temp\pip-install-7t3xs1dx\pysbrl\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\Tabib\AppData\Local\Temp\pip-record-skjwp8mt\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Tabib\Anaconda3\Include\pysbrl'
cwd: C:\Users\Tabib\AppData\Local\Temp\pip-install-7t3xs1dx\pysbrl
Complete output (23 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\pysbrl
copying pysbrl\discretize.py -> build\lib.win-amd64-3.7\pysbrl
copying pysbrl\rule_list.py -> build\lib.win-amd64-3.7\pysbrl
copying pysbrl\sbrl.py -> build\lib.win-amd64-3.7\pysbrl
copying pysbrl\train.py -> build\lib.win-amd64-3.7\pysbrl
copying pysbrl\utils.py -> build\lib.win-amd64-3.7\pysbrl
copying pysbrl_init_.py -> build\lib.win-amd64-3.7\pysbrl
running build_ext
building '_sbrl' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\c
creating build\temp.win-amd64-3.7\Release\swig
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/local/include -I/usr/include -Ic/ -IC:\Users\Tabib\Anaconda3\include -IC:\Users\Tabib\Anaconda3\include -IC:\Users\Tabib\Anaconda3\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcc/pysbrl.c /Fobuild\temp.win-amd64-3.7\Release\c/pysbrl.obj -std=c99
cl : Command line warning D9002 : ignoring unknown option '-std=c99'
pysbrl.c
C:\Users\Tabib\AppData\Local\Temp\pip-install-7t3xs1dx\pysbrl\c\rule.h(33): fatal error C1083: Cannot open include file: 'gsl/gsl_matrix.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Tabib\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Tabib\AppData\Local\Temp\pip-install-7t3xs1dx\pysbrl\setup.py'"'"'; file='"'"'C:\Users\Tabib\AppData\Local\Temp\pip-install-7t3xs1dx\pysbrl\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\Tabib\AppData\Local\Temp\pip-record-skjwp8mt\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Tabib\Anaconda3\Include\pysbrl' Check the logs for full command output.
[this should also explain why the current behaviour is a problem and why the
expected output is a better solution.]

Expected Output

Actual Result, Traceback if applicable

Versions of Python, package at hand and relevant dependencies

python version 3.7.0 .
I also downgraded to 3.6 but that also did not solve the problem. I have installed visual studio build tools.
Thank you for reporting an issue !

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

1 participant