keflavich / pyradex

Python interface to RADEX
BSD 3-Clause "New" or "Revised" License
18 stars 12 forks source link

can't "import pyradex" #28

Closed irc10216 closed 2 months ago

irc10216 commented 4 years ago

Hi, when I try to run pyradex, i get the following error (i have set the env variable RADEX_DATAPATH=/usr/local/pyradex/Radex/data/)

sahai@ppn:/<1>local/pyradex>python Python 2.7.16 (default, Apr 30 2019, 15:54:59) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import pyradex Traceback (most recent call last): File "", line 1, in File "pyradex/init.py", line 7, in from . import radex File "pyradex/radex/init.py", line 1, in from . import radex

(INFO ABOUT MY COMPUTER) python -c "import sys, astropy, numpy; print(sys.version); print(numpy.version,astropy.version)" 2.7.16 (default, Apr 30 2019, 15:54:59) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] ('1.15.1', u'2.0.8')

sahai@ppn:/<1>local/pyradex>gfortran --version GNU Fortran (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

keflavich commented 4 years ago

I suggest switching to python 3, as python 2 will be officially unsupported within a month.

Could you please reproduce the full error? I don't see any error message in the text you posted; it looks like you only included part of the traceback