Closed othmanalbahri1 closed 3 years ago
Dear Othman,
the error is related to the numpy version 1.11.3 installed in your environment. The function nancumprod was introduced in numpy version 1.12.0.
This issue can be solved by upgrading numpy:
conda remove --force numpy
pip install -U numpy
I noticed the installation failure of the dependencies from conda-forge and the installation procedure was updated in the documentation to fix this issue.
Thank you for contribution!
Hello,
Thank you for developing NeuTomPy. I've enjoyed working with it!
I am trying to do a set of reconstructions on a AWS server (Ubuntu 20.04 Server). I followed the installation instructions. Note that the following step took nearly two hours to finish:
conda install -c conda-forge ipython numpy numexpr matplotlib astropy tifffile opencv scikit-image read-roi mkl_fft scipy six tqdm pywavelets
I then tried to import NeuTomPy to test the installation:
import numpy as np
import neutompy as ntp
This results in the following error:
I've managed to reproduce this error on my local machine (Ubuntu 20.04). However, on Google Colab notebooks, it works fine.
My initial guess is that an incompatible version of
numpy
is installed but I can't find a list of dependency versions in the documentation. I've tried re-installingnumpy
but that hasn't helped.I've checked whether this is an issue with
numpy
itself but it is not. I installed numpy separately on a new conda environment and managed to callnancumprod
without any issues.>>> import numpy as np
>>> np.nancumprod(1)
array([1])
Here is a list of all the packages in this anaconda environment in which I run NeuTomPy:
I'd appreciate your thoughts on this.
Also, if you have a working anaconda environment, would you mind sharing your
yml
file?Thanks,
Othman