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

Failed to install scikit-survival from source #247

Closed
mklcst opened this issue Feb 2, 2022 · 3 comments
Closed

Failed to install scikit-survival from source #247

mklcst opened this issue Feb 2, 2022 · 3 comments

Comments

@mklcst
Copy link

mklcst commented Feb 2, 2022

I am installing the scikit-survival package in Python. When I run the pip command

Code Sample to Reproduce the Bug

pip install scikit-survival 

I get an error on msbuild, I attach the elements of interest below:

Actual Results

Building wheels for collected packages: qdldl                                                                             
Building wheel for qdldl (setup.py) ... error                                                                           
error: subprocess-exited-with-error                                                                                                                                                                                                             
× python setup.py bdist_wheel did not run successfully.                                                                 
│ exit code: 1                                                                                                          
╰─> [24 lines of output]                                                                                                    
running bdist_wheel                                                                                                     
running build                                                                                                           
running build_ext                                                                                                       
-- Selecting Windows SDK version  to target Windows 10.0.22000.                                                         
CMake Error at CMakeLists.txt:4 (project):                                                                                
Failed to run MSBuild command:                                                                                                                                                                                                                    
MSBuild.exe                                                                                                                                                                                                                                   
to get the value of VCTargetsPath:                                                                                                                                                                                                                
Impossibile trovare il file specification                                                                                                                                                                                                                                                                                                                                                                                                                                                     
-- Configuring incomplete, errors occurred!                                                                             
See also "C:/Users/xyz/AppData/Local/Temp/pip-install-
uyja9anj/qdldl_c05b02902dbe43b69e2860ddcf14a11a/c/build/CMakeFiles/CMak
eOutput.log".                                                                                                  
Impossibile trovare il file specification                                                                                 
CMake Error: Generator: execution of make failed. Make command was: 
MSBuild.exe qdldlamd.vcxproj /p:Configuration=Release /p:Platform=x64 
/p:VisualStudioVersion=14.0 /v:m &&                                                                   
building 'qdldl' extension                                                                                              
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-
std=c++11' verr… ignorata                            qdldl.cpp                                                                                                               
c\qdldl/include/qdldl.h(5): fatal error C1083: Non Š possibile aprire 
il file inclusione: 'qdldl_types.h': No such file or directory                                                                                                            
error: command 'C:\\Program Files (x86)\\Microsoft Visual 
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x
64\\cl.exe' failed with exit code 2                                                                            
[end of output]                                                                                                                                                                                                                             

The issue is with MSbuild.exe. Do you know how it can be solved? I have installed both Visual Studio Community with Python extensions and Visual Studio Build Tools.

@sebp
Copy link
Owner

sebp commented Feb 2, 2022

That looks like a problem compiling qdldl, a dependency of OSQP, which is a dependency of scikit-survival. However, it's hard to tell what could prevent it from finding the qdldl_types.h header. It's odd that pip doesn't choose a pre-compiled wheel of qdldl, which is available on pypi. Are you using Python 3.10? If yes, osqp/qdldl-python#19 could be relevant.

@mklcst
Copy link
Author

mklcst commented Feb 3, 2022

Thank you for the suggestion. I've tried to install cvxpy-base but nothing has changed.

@sebp
Copy link
Owner

sebp commented Mar 5, 2022

conda packages for Python 3.10, including osqp and qdldl are now available. Please run
conda install -c sebp scikit-survival to install them.

@sebp sebp closed this as completed Mar 5, 2022
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