-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
halotools.test_installation() fails #944
Comments
Not sure offhand, @MatteoSerafino - it looks like could be an incompatibility between halotools and different versions of astropy. How did you try to install the code? With pip, conda, or building from source? Did you use a virtual environment? Could you review what you did to install? To help identify the problem, could you include information about your python distribution and/or conda environment, and also version information for both halotools and astropy? @bsipocz or @eteq - do you know whether the existence of |
Sure. |
Sorry the one I suppose it's the related issue is the following: astropy/ccdproc#660 |
@MatteoSerafino - would it work for you to instead install the code from source with a later version of python? For example, the following conda environment should resolve the issue:
After creating the environment, you should be able to install the latest version of halotools as follows:
|
Dear Aphearin, and then $ conda activate ht3 |
Hmm, dang, sorry that didn't fix the problem. When you activate the |
I should have also asked: is it just the testing suite that is the problem? Or have you noticed other functionality impacted? If the lack of existence of |
Hi,
and indeed it is working. So it seems only the test is not working.
|
Great, ok, that's good to hear. Since the problem has to do with the existence of Based on the discussion in the Astropy issue you pointed to, it looks like if you modify the conda environment I previously sent you to use python 3.6.x, then this may be also resolve the problem with the test suite:
Although I think this should only be necessary if you want to run the test suite, and shouldn't have any impact on the source code behavior. Re:
Yes, the current version of the code raises a bunch of warnings about future compatibility. Fixing this is one of the last obstacles remaining before the v0.7 release. For now they should be harmless and can be ignored. I'll leave this issue open until I either resolve the installation problem, or at least add a note to the documentation. |
Ok, thank you. All the results are obtained by imposing the value of Δref(z)=200. |
The NFWProfile class accepts a
Alternatively, you can just drill down into the module subdirectories and import the standalone function, which has a
|
Hi @aphearin! I am commenting here since this is an issue I have been facing too. I recently re-installed Anaconda and all my packages due to a bug I had been facing and I was able to install the stable version of halotools (v0.6). When testing it, I ran into the same issue pointed out here with However, the
It was originally also not working for:
but I was able to fix it by manually going into the Should I, for now, just change the files connected to the packages I need until this warning has been resolved in v0.7? |
@MehnaazAsad - those two issues got fixed yesterday, so if you try to install the dev version from here, it should work. The alternative workaround is to downgrade your astropy install to <3.2 However it's interesting what you're saying about the deprecation. As it's a warning, it should not be a blocker to do any of the imports, they may be another issue somewhere else. |
@bsipocz Yes, I too found it strange that a warning was performing more like an error but making the same changes I made to get the other import to work fixed the issue. It still shows up as a warning when I try to import Despite fixing it, I installed the dev version. The |
Thanks for the fixes @bsipocz! There are a lot of annoying warnings I'm working on fixing so that I can finish and release v0.7. It's been pretty tedious, so in the meantime thanks for the patience @MehnaazAsad. |
Dear all,
I installed halotools as explained in the guide, step by step.
However, when the installation test always fails.
Here the exit on the terminal:
ImportError while loading conftest '/home/matteo.serafino/virtualenv/venv/lib/python3.5/site-packages/halotools/conftest.py'.
venv/lib/python3.5/site-packages/halotools/conftest.py:5: in
from astropy.tests.pytest_plugins import *
E ImportError: No module named 'astropy.tests.pytest_plugins'
4
It seems related to some changes on the astropy package.
How may I solve it?
The text was updated successfully, but these errors were encountered: