lmhale99 / atomman

Atomistic Manipulation Toolkit
Other
34 stars 40 forks source link

VERSION file missing after installing from github sources #4

Closed arn-all closed 5 years ago

arn-all commented 5 years ago

Hi, I encountered an error installing atomman from the github repo. The VERSION file was missing after installation. Let me know if I did something wrong. Thanks,

Steps

pip3 install git+https://github.com/lmhale99/atomman.git --user

Then in a python terminal, typing import atomman gives :

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/arnaud/.local/lib/python3.7/site-packages/atomman/__init__.py", line 17, in <module>
    with open(os.path.join(rootdir, 'VERSION')) as version_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/arnall/.local/lib/python3.7/site-packages/atomman/VERSION'

Complementary info

After doing a echo '1.2.3' > "/home/arnall/.local/lib/python3.7/site-packages/atomman/VERSION", I was able to import atomman with no error.

lmhale99 commented 5 years ago

The new MANIFEST.in file had the wrong type of slashes. Try installing it again and see if it works now.

arn-all commented 5 years ago

Fixed ! Thanks for the quick response