Closed EiffL closed 4 years ago
Looks like the problem comes from the find_eigen_dir
function, that re-imports numpy, apparently, that's not cool ^^'
It looks like you're using anaconda, in which case I'd recommend conda install galsim
rather than installing by hand. That will use the conda installation of Eigen, which is probably more reliable than using eigency (the fallback option if GalSim can't find Eigen anywhere else).
Ok, indeed that's a good point, didn't think of that. So I managed to install it nonetheless from source after cloning the repo and doing:
$ pip install --prefix=~/.local .
For some reason, pip install --prefix=~/local -e .
failed with the same error. I"m not sure what's the difference in terms of compile script.
Installing with conda is ok in this instance for me, but still looks like pip install will fail in some cases :-(
Which I guess, is a reminder for myself to actually solve #1056 ^^'
Unfortunately, I'm not sure that there is any action to take in GalSim for this issue. As you said, it seems to be a weird numpy bug where they don't properly guard something correctly for multiple imports. OK to close?
The same bug currently occurs on pythonanywhere.com (maybe only for recent accounts - those using Python 3.8?) and makes it nearly unusable. Appears to be rooted in this bug: https://github.com/numpy/numpy/issues/665
I think I have a workaround for this on #1086
I am encountering errors when trying to install GalSim on a fresh Python:3.7.5 NumPy:1.18.1 environment. From looking around on the internet it looks that it might be a known NumPy issue that arises when the numpy module gets reloaded from some reason. See: https://github.com/numpy/numpy/issues/14384
Here is what I see when installing GalSim:
I'll try to figure out what's happening but thought I might report first.