I encountered an installation error when trying to install phonopy 1.10.5, but it seems that I was able to get around it by creating a blank "__nanoversion__.txt" file in the phono3py-1.10.5 folder:

username@computername:~$ wget https://sourceforge.net/projects/phonopy/files/phono3py/phono3py-1.10.5.tar.gz
...
username@computername:~$ tar xvfz phono3py-1.10.5.tar.gz
...
username@computername:~$ cd phono3py-1.10.5/
username@computername:~/phono3py-1.10.5$ python setup.py install --home=/home/username/phono3py-1.10.5
Note: "username" in the above line should be changed to what you use.

Traceback (most recent call last):
  File "setup.py", line 93, in <module>
    with open('__nanoversion__.txt') as nv:
IOError: [Errno 2] No such file or directory: '__nanoversion__.txt'

username@computername:~/phono3py-1.10.5$ touch __nanoversion__.txt
username@computername:~/phono3py-1.10.5$ python setup.py install --home=/home/username/phono3py-1.10.5
...
username@computername:~/phono3py-1.10.5$ gedit ~/.bashrc
Added (and saved) the following two lines at the end of the .bashrc:
export PYTHONPATH=$PYTHONPATH:~/phono3py-1.10.5/lib/python
export PATH=$PATH:~/phono3py-1.10.5/bin
Note: "~/phono3py-1.10.5" in the above two lines should be changed to where you installed phonopy (or phono3py).
username@computername:~/phono3py-1.10.5$ source ~/.bashrc
username@computername:~/phono3py-1.10.5$ cd example/NaCl-wien2k
username@computername:~/phono3py-1.10.5/example/NaCl-wien2k$ phonopy --wien2k -c NaCl.struct -d --dim="2 2 2"
        _
  _ __ | |__   ___  _ __   ___   _ __  _   _
 | '_ \| '_ \ / _ \| '_ \ / _ \ | '_ \| | | |
 | |_) | | | | (_) | | | | (_) || |_) | |_| |
 | .__/|_| |_|\___/|_| |_|\___(_) .__/ \__, |
 |_|                            |_|    |___/
                                      1.10.5

Python version 2.7.6
Spglib version 1.9.0
Creating displacements
Settings:
  Supercell: [2 2 2]
Spacegroup: Fm-3m (225)
Number of non-equivalent atoms in NaCl.structS-001: 24
Number of non-equivalent atoms in NaCl.structS-002: 24

disp.yaml and supercells have been created.
                 _
   ___ _ __   __| |
  / _ \ '_ \ / _` |
 |  __/ | | | (_| |
  \___|_| |_|\__,_|
_______________________________________________
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html

Reply via email to