BU-hammerTeam / PyHammer

A Python Spectral Typing Suite
MIT License
53 stars 14 forks source link

syntax error in pyhammer #19

Closed stephtdouglas closed 7 years ago

stephtdouglas commented 7 years ago

when I try to run pyhammer, on the command line, I get the following error

  File "pyhammer.py", line 1, in <module>
    from pyhamimports import *
  File "/home/stephanie/code/python/PyHammer/pyhamimports.py", line 25, in <module>
    import numpy as np
ImportError: No module named 'numpy'

even though numpy is installed and I can access it in other scripts.

If I try to run in ipython, I get the following syntax error

  File "/home/stephanie/code/python/PyHammer/pyhammer.py", line 77
    print(i+1, ') Processing ', os.path.basename(fname), sep = '')
                                                             ^
SyntaxError: invalid syntax

I'm running from the PyHammer folder itself, and I have tried both the latest release version and the current github version. I'm running in Python 3.4

zephyr5050 commented 7 years ago

Can you specify what operating system/version you're running on? It looks linux-based at the very least, but it may be useful to know.

And can you specify whether or not you have multiple python versions installed on your computer?

Both of these are odd and seemingly unrelated errors, but neither of them should be caused by PyHammer itself. I'm suspecting that somehow there's an issue with your Python environment when you launch PyHammer.

stephtdouglas commented 7 years ago

I'm on Linux running in a Conda environment. It seems to have been a Anaconda problem, sorry about that.