NervanaSystems / neon

Intel® Nervana™ reference deep learning framework committed to best performance on all hardware
http://neon.nervanasys.com/docs/latest
Apache License 2.0
3.87k stars 811 forks source link

ImportError: cannot import name __version__ in NeonArgparser #321

Open robi56 opened 8 years ago

robi56 commented 8 years ago

I just install neon using this

git clone https://github.com/NervanaSystems/neon.git
cd neon && make sysinstall

and i import

from neon.util.argparser import NeonArgparser But it gives the follwing error message

Traceback (most recent call last):
      File "./model.py", line 29, in <module>
        from neon.util.argparser import NeonArgparser
      File "/usr/local/lib/python2.7/dist-packages/neon/util/argparser.py", line 31, in <module>
        from neon import __version__ as neon_version
    ImportError: cannot import name __version__
jennifermyers commented 7 years ago

Hi @robi56,

In neon 1.6. make sysinstall calls python setup.py install which generates neon/version.py.

Can you check whether neon/version.py was generated and if not, run python setup.py install?

Thanks, Jennifer