threeML / hawc_hal

HAWC Accelerated Likelihood - python-only framework for HAWC data analysis
BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

pip fails to install hawc_hal due to pytables #38

Closed henrikef closed 3 years ago

henrikef commented 3 years ago

I'm getting the following error installing hawc_hal with pip (this is with python 3.7.8, astromodels 2.0.0 and threeML 2.0.0 from conda):

ERROR: Could not find a version that satisfies the requirement pytables (from astromodels->hawc-hal==1.0) (from versions: none)
ERROR: No matching distribution found for pytables (from astromodels->hawc-hal==1.0)

I was able to work around this by using pip install --no-deps to install hawc_hal (and installing all dependencies manually).

However, the same error is now also causing the automated tests to fail.

Any idea where this is coming from? I do have pytables installed, but pip isn't picking up on it:

(st3ml) √ my3ML/hawc_hal $ pip list | grep pytables                                                                                                                    22:42:50
(st3ml) ?1 my3ML/hawc_hal $ conda list pytables                                                                                                                        22:42:55
# packages in environment at /Users/hfleisc1/opt/anaconda3/envs/st3ml:
#
# Name                    Version                   Build  Channel
pytables                  3.6.1            py37he95298d_3    conda-forge

Also, I don't find pytables mentioned anywhere in the hawc_hal dependencies.

henrikef commented 3 years ago

This seems to be a python 3 issue only... See https://travis-ci.org/github/threeML/hawc_hal/jobs/738193405#L1016 (install fails) and https://travis-ci.org/github/threeML/hawc_hal/jobs/738193403#L1121 (install succeeds).

henrikef commented 3 years ago

Solved with https://github.com/threeML/astromodels/pull/134