hyperion-rt / hyperion

Hyperion Radiative Transfer Code
http://www.hyperion-rt.org
BSD 2-Clause "Simplified" License
52 stars 26 forks source link

astropy.extern no longer packages six with it #219

Closed dnarayanan closed 4 years ago

dnarayanan commented 4 years ago

so this fails:

  File "/home/desika.narayanan/miniconda3/envs/pd4env/lib/python3.6/site-packages/hyperion/model/model.py", line 12, in <module>
    from astropy.extern import six
ImportError: cannot import name 'six'

easy fix in code to just do an import six but i don't know where to have hyperion automatically download six and install it in both the source and conda package in order to issue a pull request.

saangel commented 4 years ago

Yup, encountered the same when importing aplpy. Had to manually modify several packages to import six directly

battersbot commented 4 years ago

same! (with importing aplpy)

See related issue (and the fix that worked for me) here: https://github.com/aplpy/aplpy/issues/443

dnarayanan commented 4 years ago

@lmowla found that these are the scripts that have to be modified:

alpha_disk.py
ambient_medium.py
bipolar_cavity.py
conf_files.py
dust_type.py
filter.py
flared_dis.py
image.py
model_output.py
model.py
power_law_envelope.py
sed.py
ulrich_envelope.py
validator.py
astrofrog commented 4 years ago

Fixed by @jwise77 in #220

dnarayanan commented 4 years ago

this issue isn't updated in the conda installation - would it be possible to rebuild the conda install quickly?

privong commented 4 years ago

Seconding the conda package update request. I'm still getting the same error from a version installed today via conda.

dnarayanan commented 4 years ago

would it be possible to get the conda install updated?

astrofrog commented 4 years ago

I’ll try and take a look shortly!

dnarayanan commented 4 years ago

thanks!

dyasutomo commented 3 years ago

FYI, I still have this issue with conda installation of astropy.

xnaxe29 commented 3 years ago

Me too. I am still facing this problem with conda installation Python 3.6.13, conda 4.10.3, astropy 4.0.2