phn / pytpm

Python interface to the Telescope Pointing Machine C library.
http://phn.github.io/pytpm/
Other
11 stars 4 forks source link

No module tpm error on Python 3 #4

Closed cdeil closed 8 years ago

cdeil commented 9 years ago

I'm getting this error with Python 3:

$ python -c 'import pytpm'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/deil/Library/Python/3.4/lib/python/site-packages/PyTPM-0.7.1-py3.4-macosx-10.10-x86_64.egg/pytpm/__init__.py", line 15, in <module>
    from . import convert
  File "convert.pyx", line 1, in init pytpm.convert (src/convert.c:5305)
ImportError: No module named 'tpm'

Full log here: https://gist.github.com/cdeil/72ce7b0c44ba0c0ae32b#file-gistfile1-txt-L960

cdeil commented 9 years ago

I've attached a commit that fixes the issue for me.

phn commented 8 years ago

Hello,

Sorry for not responding to this PR. I had turned off Github notifications and didn't see it. The same with issue #5 that you had raised.

I am in the process of re-writing the module to make it just a Python interface to TPM rather than trying to make it an astrometry package. I will make sure that the new code works in Python 3 and Python 2.

Sorry for the inconvenience and thanks for reporting issue and submitting PR.

Sincerely, Prasanth