-
Notifications
You must be signed in to change notification settings - Fork 123
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
could not install on ubuntu 18.04 due to LaPy error #123
Comments
Hmm, we'll take a look. In the meantime you could try conda instead (similar to how we do it in the docker): https://github.com/Deep-MI/FastSurfer/blob/6724ae0039621282dd72523d167db2fb6e12d708/Docker/Dockerfile |
Thank you for the quick response 👍 I tried:
but ended up with this error:
I'll try using the docker version for now as a workaround. |
Hey, the error occurs because scikit-sparse needs numpy and scipy pre-installed. Scikit-sparse is a dependency in lapy. If you install it with pip like this, it should work: python3 -m pip install setuptools # (if not pre-installed inside the virtualenv)
python3 -m pip install numpy scipy cython
python3 -m pip install -U git+https://github.com/Deep-MI/LaPy.git#egg=lapy
python3 -m pip install -r requirements.txt # other FastSurfer requirements or alternatively for FastSurfer as a whole:
python3 -m pip install setuptools # (if not pre-installed inside the virtualenv)
python3 -m pip install numpy scipy cython
python3 -m pip install -r requirements.txt |
Thanks for your help with this. If I run this the lapy build works:
But this in requirements.txt
still leads to this error
If I install lapy outside of requirements.txt and then comment it out of requirements.txt the rest installs fine. Once I do that it seems to be running fine. I was able to use the docker version, so the native install isn't critical for me, but I'll leave this open in case someone knows how to fix the requirements.txt. |
We have updated LaPy (see Deep-MI/LaPy#7 ) and removed the scikit-sparse requirement there to avoid setting off pip. Installing with conda should have worked. If users want to use the faster Cholmod method, they need to install scikit-sparse in a separate step after numpy and scipy. Otherwise the code will fall back to LU decomposition which is a little slower. FastSurfer currently always request LU decomposition for consistency and to remove the indirect scikit-sparse dependency (see #124 ). |
The requirements.txt issue might be resolved by upgrading your pip version (for e.g. using I could only reproduce the error with a fairly old pip version (
|
Yes, I used the default python3-pip for ubuntu 18.04.
|
The problem is that the requirements file gets automatically created, so I think we do not have a way to change that line to be compatible to older pip versions? |
Yes, probably it's enough to specify in the readme a minimum version of pip that must be used. I don't know if it's possible, but it seems like you should be able to specify the pip version in requirements.txt. |
I think that will not work, as the pip version in requirements is going to be installed together with all other requirements (so they are installed by the old version of pip). |
Description
The pip install step failed with this error:
Steps to Reproduce
Starting with a fresh 18.04 instance running on a google cloud VM.
Results in the error above.
Expected Behavior
I'd like to be able to run on this or a similar OS on a VM.
Environment
This is the most recent commit of FastSurfer.
The text was updated successfully, but these errors were encountered: