Closed hayalaso closed 3 years ago
How did you install hawc_hal/astromodels/threeML? I see it's referencing ROOT installed via ape, I wonder if that's a problem.
Does python -c "import hawc_hal"
work? How about python -c "import threeML"
?
Oh, can you also try python -c "import ROOT"
?
ALso, I've only tested this with python 3.7 so far. I just added another test for python 3.8.
(There's a partial outage for github actions right now though, so the automated tests aren't running ☹️ )
Importing things in the python terminal work fine. I installed the threeml package using the pip install git+https://stuff for threeml. I did install ROOT with ape, since I have things running now with py3 and aerie. It's root 6. I don't know if threeml is based on that?
Looks like the way aerie is installed by default is using root 5 which is then used when building threeml. Is the conda version using root 5?
I have root 6.22/06, apparently.
Is there a good reason you need to have aerie and threeML/HAL in the same environment? As I recall, there were other issues with that previously (not sure if they've been fixed now).
Here's how I've been installing HAL:
conda create --name new_hal -c conda-forge -c threeml numpy scipy matplotlib ipython numba reproject "astromodels>=2" "threeml>=2" root
conda activate new_hal
pip install --no-binary :all: root_numpy
pip install git+https://github.com/threeml/hawc_hal.git
(usual way, see README ), followed by
pip uninstall astromodels threeML -y
pip install git+https://github.com/threeml/astromodels.git
pip install git+https://github.com/threeml/threeML.git
(this should only be necessary until there's a new release of threeML on conda).
Well, since I'm trying to move things of aerie into py3, I figure it would make sense to have aerie and threeML/HAL in the same environment.
Closing this as everything seems to work in python3 now. Please re-open if there are any remaining issues.
I started a py3 environment to also move the HAWC software to python 3. I installed astromodels, threeml and hawc_hal. I tried this at the UMD cluster. (Linux 3.10.0-957.el7.x86_6)
When trying to run hawc_hal, the program stops. There's no concise error for a test analysis I try to run on the crab.
I cloned hawc_hal and installed it so that I could run tests. Running pytest:
Passed:
Failed:
Here's an example of one output