Band structure plot
Moderator: bguster
Band structure plot
Hello all user,
i wana to plot band structure i have python in my pc but when i use this command to plot band structure: > python AbinitBandStructure.py file.out i get this error:bash: AbinitBandStructureMaker.py: command not found.
Would you please tell me why there is problem?
Best regards.
Mina.
i wana to plot band structure i have python in my pc but when i use this command to plot band structure: > python AbinitBandStructure.py file.out i get this error:bash: AbinitBandStructureMaker.py: command not found.
Would you please tell me why there is problem?
Best regards.
Mina.
-
- Posts: 271
- Joined: Sat Jan 16, 2010 12:05 pm
- Location: Dept. of Physics, University J. J. Strossmayer, Osijek, Croatia
- Contact:
Re: Band structure plot
Dear mina,
I think this means that AbinitBandStructure.py is not in your path (you can google out how to put it there). Or you can give an explicit path where it is when you issue the command line.
Igor
I think this means that AbinitBandStructure.py is not in your path (you can google out how to put it there). Or you can give an explicit path where it is when you issue the command line.
Igor
Re: Band structure plot
Dear ilukacevic,
Thank you for your help,i do that.i have linux debian on my pc and python but i dont have abinit in my pc. i run my job by abinit in server and then copy my job that has been run to my pc.now i copy AbinitBandStructureMaker.py in my pc too but i have that problem again.
Would you tell me what dose mean of path?
Best regards.
Mina.
Thank you for your help,i do that.i have linux debian on my pc and python but i dont have abinit in my pc. i run my job by abinit in server and then copy my job that has been run to my pc.now i copy AbinitBandStructureMaker.py in my pc too but i have that problem again.
Would you tell me what dose mean of path?
Best regards.
Mina.
-
- Posts: 271
- Joined: Sat Jan 16, 2010 12:05 pm
- Location: Dept. of Physics, University J. J. Strossmayer, Osijek, Croatia
- Contact:
Re: Band structure plot
You can find your answer here:
http://unix.stackexchange.com/questions/3809/how-can-i-make-a-program-executable-from-everywhere
Igor
http://unix.stackexchange.com/questions/3809/how-can-i-make-a-program-executable-from-everywhere
Igor
Re: Band structure plot
Dear ilukacevic,
Thank you for your help, i used your suggestions but now when i run: python AbinitBandStructureMaker.py myfile.out i have another error:
File "AbinitBandStructureMaker.py", line 16, in <module>
from Numeric import *
ImportError: No module named Numeric
i have python and python numpy on my pc too.
would you please guide me to solve this problem?
Best regards.
Mina.
Thank you for your help, i used your suggestions but now when i run: python AbinitBandStructureMaker.py myfile.out i have another error:
File "AbinitBandStructureMaker.py", line 16, in <module>
from Numeric import *
ImportError: No module named Numeric
i have python and python numpy on my pc too.
would you please guide me to solve this problem?
Best regards.
Mina.
Re: Band structure plot
Dear Mina,
I think you have Numeric Python code in Abinitbandstructure.py. You need to change Numeric to numpy simply. Before doing this you need to install numpy in your computer. That should work.
Suvas
I think you have Numeric Python code in Abinitbandstructure.py. You need to change Numeric to numpy simply. Before doing this you need to install numpy in your computer. That should work.
Suvas
Re: Band structure plot
Dear Suvas,
Thanks a lot for your help,i could plot band structure.
Best regards.
Mina.
Thanks a lot for your help,i could plot band structure.
Best regards.
Mina.