mommermi / callhorizons

a python interface to JPL HORIZONS ephemerides and orbital elements
MIT License
22 stars 9 forks source link

callhorizons fails under Python 3.5 (duh) #1

Closed JuanCab closed 8 years ago

JuanCab commented 8 years ago

Is it possible call horizons is not compatible with Python 3.5? I have a script that works fine under Python 2.7, but when I try to use it under Python 3.5 I get a reproducible error. I'd appreciate clarification on whether CALLHORIZONS 1.0.1 is Python 3.5 compatible.

I can reproduce the error in ipython as follows: $ python --version Python 3.5.1 :: Anaconda custom (x86_64) $ ipython --version 5.1.0 $ ipython In [1]: import callhorizons

In [2]: eros = callhorizons.query('Eros')

AttributeError Traceback (most recent call last)

in () ----> 1 eros = callhorizons.query('Eros') AttributeError: module 'callhorizons' has no attribute 'query'
JuanCab commented 8 years ago

This comes under the category of RTFM... didn't find the mention that it was only Python 2.7 compatible in the documentation, because, you know, it was only on the main page for the documentation. My error, sorry.

mommermi commented 8 years ago

Hi Juan,

no worries! But it's a good idea to make it compatible to Python 3.5 (I admit that I never thought about this...) Let me reopen this issue and I'll put it on my list for next week.

Michael

mommermi commented 8 years ago

@JuanCab callhorizons should now work with Python 3.5! Give it a try and let me know if it works for you. M