sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
216 stars 112 forks source link

Low probability version issue #97

Closed nguy closed 8 years ago

nguy commented 8 years ago

I was having trouble with installation, receiving the following error:

Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    version.write_git_version()
AttributeError: 'module' object has no attribute 'write_git_version'

I discovered that I had an old package called version installed via pip. Since SHARPpy uses a less standard way to grab the version info (directly importing version through the setup.py at the beginning and therefore not in code directory) the "incorrect" system package version was being loaded instead of the SHARPpy package version script. Just to note many other packages use imports in the init.py file to avoid these conflicts and import the local version (of version in this case).

So I just wanted people to know the easy solution to this was to run pip uninstall version if you have the same situation.

tsupinie commented 8 years ago

I pushed a fix to the master branch that should eliminate name conflicts like that.

nguy commented 8 years ago

Thanks @tsupinie!