Closed astro313 closed 6 years ago
I think this has to do with changes to numpy, and therefore it may be a real bug. However... I can't reproduce this error locally. Are you on the master version of pyradex? What version of numpy are you using?
Yes I am on master branch. I am using numpy 1.13.1. Which version should I try running pyradex?
I'm not sure. I'm on numpy 1.12. I tried both py2 and py3 with no error. Maybe this is a np 1.13 issue?
I tried numpy 1.12.0 and 1.12.1 but both versions gave me ImportError on import pyradex
*---------------------------------------------------------------------------*
*RuntimeError** Traceback (most recent call
last)*
*RuntimeError**: module compiled against API version 0xb but this version
of numpy is 0xa*
*---------------------------------------------------------------------------*
*ImportError** Traceback (most recent call
last)*
*----> 1* *import** pyradex*
*/Users/admin/anaconda/lib/python2.7/site-packages/pyradex/__init__.py** in
**<module>**()*
* 5* *from* *.* *import** utils*
* 6* *from* *.* *import** despotic_interface*
*----> 7* *from* *.* *import** radex*
* 8* *from* *.* *import** synthspec*
*/Users/admin/anaconda/lib/python2.7/site-packages/pyradex/radex/__init__.py**
in **<module>**()*
*----> 1* *from* *.* *import** radex*
*ImportError**: numpy.core.multiarray failed to import*
I ended up re-installing pyradex with python setup.py install_radex install_myradex build install
instead of python setup.py install_radex install_myradex install
. It's working now with numpy 1.12.1.
Thanks!
Hi,
I met with a problem similar to this, " File "/home/cham/anaconda2/lib/python2.7/site-packages/pyradex/base_class.py", line 127, in species self.molpath = os.path.join(self.datapath,species+'.dat')
File "/home/cham/anaconda2/lib/python2.7/site-packages/pyradex/core.py", line 614, in molpath self.radex.impex.molfile[:] = ""
IndexError: too many indices for array"
I tried to solve it following the suggestions here but it didn't work. I'll try with py3 first now.
py3 works fine. Thanks!
Hi Adam,
I installed pyradex on my Mac OSX without a problem but I couldn't run pyradex.Radex().
I am using python 2.7.12 on Mac OSX 10.11.6 (El Capitan). Here's the error message:
I looked at pyradex/core.py and found
not sure if this may be relevant?
Thanks, Daisy