myaooo / pysbrl

Python Interface of the Scalable Bayesian Rule Lists
MIT License
19 stars 3 forks source link

Can not install pysbrl package #3

Open Tabib-Mazhar opened 4 years ago

Tabib-Mazhar commented 4 years ago

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 !

Loller94 commented 3 years ago

Hi Tabib-Mazhar Did you find a solution to this issue? I'm experiencing the same thing.

Tabib-Mazhar commented 3 years ago

Nope. Does not work on windows. Works only on linux.

werzum commented 1 year ago

FIY, for me installing libsgl with sudo apt-get install libgsl-dev fixed the issue. I found this by googling the specific "gsl_matrix.h" No such file or directory error and this SO answer.