-
Notifications
You must be signed in to change notification settings - Fork 26
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
Python test failure - installation success unclear from examples #36
Comments
This doesn't help yet, but this will be on conda soon! |
@NiallJeffrey sorry for the delay. Have you managed to sort this out yet? If the problem persists, let me know and we can run a couple of quick tests to see if things are actually working. Note that if you're computing power spectra on a cut sky, you would not expect namaster and anafast to return the same answer (you probably know this, but just in case). |
@damonge I didn't need the code urgently, so I decided to wait for the conda version. |
Ahhhh sorry! The conda version is done!
should do the trick! |
This will give you the C version and the python package. |
@NiallJeffrey can you confirm if this solved your issue? |
I am afraid not. I admit not spending a great deal of time trying to solve it, but using the conda version I get "ImportError: No module named '_nmtlib'" and "Reason: image not found".
|
I think you need to make sure conda-forge is first in your channels as opposed to the anaconda defaults. The error here is not the namaster package. The relevant bit is here
which is related to something in your conda env. |
Ah great. I reordered my channels and updated and now this all works fine. I ran a quick test with cut sky and namaster returns the correct power spectrum. |
Great! Thanks a lot for reporting this. |
@damonge @beckermr Hi, so it appears that I'm running into the same issue noted above:
I tried the solution noted above re conda channels, so that this is what my
but I am still getting the same error. I have reinstalled the package (using As a reference, here's the install summary:
I'd really appreciate some help. |
Well cfitsio bumped the version of their library from 5 to 8. What I don't get is why conda is insisting on linking to the actual file and not the symlink that should prevent this error. @damonge do you understand how namaster is linking here? |
in the mean time you can install one version back of cfitsio and that will fix it |
This PR should fix the issue. The new package will be live in a few hours. |
Okay, I downgraded cfitsio to 3.410 and things work. Thanks so much! |
great! once you update your env again after the rebuild is done (~2 hours or so), you should get a new build of namaster and cfitsio that work together just fine. |
Sorry I was offline @beckermr , and thanks a lot for fixing this one. Can I check that this is now fixed? |
Hi @damonge @beckermr - it looks like I'm getting a related error on this. Having just updated to macOS Catalina I've had to reinstall anaconda and some other packages. I'm reinstalling namaster and install seems to work:
But importing pymaster gives a similar error as above
The channels in my .condarc seem to be as suggested above
Has the issue with cfitsio been solved yet or do I need to downgrade this to make things work? Any help would be great. |
Unclear. Plus the os upgrade is in the mix. Did you reinstall the Xcode command line tools? |
I've just opened Xcode and updated that and this didn't solve the problem |
Awesome thanks for checking! Try downgrading cfitsio and lets see if that helps. |
What's the easiest way to do this? And what version should I downgrade to? |
Try something like |
Yep, that worked :) thanks @beckermr ! |
Of course! So looking at your install above, you have one of the oldest versions of namaster on conda, The latest build should have build number (the single int at the end) of 4. See this page here: https://anaconda.org/conda-forge/namaster/files I don't get how the solver decided on that. |
You might also try forcing the entire env to upgrade if you want. |
Did you change the labels in your channels or something globally in conda? |
No, I've made no changes to my channels. Because of the macOS upgrade, my anaconda should just be the latest default installed one using the graphical install - with no changes made. |
hmmmm ok - well let's keep moving then. I might try and get the old packages marked as broken |
I've installed the C package, from which all tests apart from one (TEST 20/55 nmt:he_qdisc [SKIPPED]) passed. However, after the python setup, 22/48 unit tests fail.
It's difficult to tell from the readthedocs examples what the outputs plots are meant to look like (it would be good to plot them after the code snippets). When comparing with full sky anafast outputs, I get a completely different answer with NaMaster.
The install/testing output:
installation_output.txt
My installlation script:
export CFLAGS='-I/usr/local/Cellar/gsl/2.5/include/ -I/usr/local/Cellar/fftw/3.3.8/include/ -I/usr/local/Cellar/cfitsio/3.450/include/ -I/usr/local/Cellar/healpix/3.40/include/ -I/Users/ucapnje/Documents/software/libsharp/auto/include/'
export LDFLAGS='-L/usr/local/Cellar/cfitsio/3.450/lib/ -L/usr/local/Cellar/gsl/2.5/lib/ -L/Users/ucapnje/Documents/software/libsharp/auto/lib/ -L/usr/local/Cellar/healpix/3.40/lib/ -L/usr/local/Cellar/fftw/3.3.8/lib/ -L/Users/ucapnje/Documents/software/NaMaster-master/install_dir/lib/'
./configure --prefix=/Users/ucapnje/Documents/software/NaMaster-master/install_dir
make
make install
make check
export LDFLAGS='-L/usr/local/Cellar/cfitsio/3.450/lib/ -L/usr/local/Cellar/gsl/2.5/lib/ -L/Users/ucapnje/Documents/software/libsharp/auto/lib/ -L/usr/local/Cellar/healpix/3.40/lib/ -L/usr/local/Cellar/fftw/3.3.8/lib/ -L/Users/ucapnje/Documents/software/NaMaster-master/install_dir/lib/'
python setup.py install
python -m unittest discover -v
The text was updated successfully, but these errors were encountered: