yig / PySPQR

Python wrapper for the sparse QR decomposition in SuiteSparseQR.
Creative Commons Zero v1.0 Universal
34 stars 27 forks source link

SuiteSparseQR_C.h: No such file or directory #11

Closed nazariyv closed 6 years ago

nazariyv commented 6 years ago

Cannot install your library. Installed SuiteSparse through conda like in the other issue. Did not work. In terms of how to install SuiteSparse through a link you provided in ReadME I do not know, there is no explanation either in your ReadME or their's web-page. Here is the error:

running install
running bdist_egg
running egg_info
writing sparseqr.egg-info/PKG-INFO
writing dependency_links to sparseqr.egg-info/dependency_links.txt
writing requirements to sparseqr.egg-info/requires.txt
writing top-level names to sparseqr.egg-info/top_level.txt
reading manifest file 'sparseqr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'sparseqr.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.6/sparseqr._sparseqr.c'
already up-to-date
building 'sparseqr._sparseqr' extension
gcc -pthread -B /home/nazariy/anaconda/envs/logging/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/suitesparse -I/home/nazariy/anaconda/envs/logging/include/python3.6m -c build/temp.linux-x86_64-3.6/sparseqr._sparseqr.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/sparseqr._sparseqr.o
build/temp.linux-x86_64-3.6/sparseqr._sparseqr.c:492:29: fatal error: SuiteSparseQR_C.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
dswah commented 6 years ago

i am seeing the same problem!

dswah commented 6 years ago

OK, i got it working 2 different ways. Note: i am running ubuntu 16.04 and py3.6

1

2

yig commented 6 years ago

@nazariyv What platform are you running on?

yig commented 6 years ago

@dswah I like the second version. Do you have a suggestion for the README?

dswah commented 6 years ago

@yig i guess the README already had the correct information, but it would have been good to clarify 2 things:

perhaps something can be done about the second point. is it possible for PySPQR to look for suitesparse some other way?

yig commented 6 years ago

I pushed a change to the README.

yig commented 6 years ago

It may be possible to have PySPQR look for suitesparse in more locations. Feel free to look into it and propose a change. I don't have time now.

nazariyv commented 6 years ago

@yig same as you, ubuntu 16.04 and python 3.6

sgbaird commented 3 years ago

Would be nice to see an update on this. Still an issue several years later.

sgbaird commented 3 years ago

Maybe relevant? https://stackoverflow.com/questions/67440802/point-cmake-to-proper-python-header-inside-conda-env

yig commented 3 years ago

This may have been fixed. Can someone please check if it is still an issue?

badalpardhi12 commented 2 years ago

This may have been fixed. Can someone please check if it is still an issue?

Not yet, still having the issue installing it on windows VS Code Ananconda env.