[Wien] Import error, no module named numpy

pieper pieper at ifp.tuwien.ac.at
Mon May 22 11:10:04 CEST 2017


The Traceback error message is from python. Its trying to do what 
berrypi tells it to do, so module berrypi is found and probably 
installed ok.

However, berrypi wants python to import numpy - and that is not found. 
Most probably something went wrong when you installed numpy (or 
mathplotlib?).

Try in a terminal to run python and import the module manualy. Enter at 
your user prompt:

user-prompt:~> python
Python 2.7.12 (default, Jun 28 2016, 06:57:42) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy # math library
>>> 

This probably will not work as shown here for my terminal, meaning that 
numpy is either not installed, or in some unexpected place and you will 
have to point python to that place. You will have to look into what you 
did to install numpy (or a  module including it, like mathplotlib).

Martin Pieper


---
Dr. Martin Pieper
Karl-Franzens University
Institute of Physics
Universitätsplatz 5
A-8010 Graz
Austria
Tel.: +43-(0)316-380-8564


Am 20.05.2017 19:43, schrieb Jameela Fatheema:
> Dear all,
> 
> I am running wien2k version 14 on ubuntu 16.04
> 
> The purpose of my calculations is to get born effective charges for
> AlN.
> The scf has been run successfully for 1000 kpoints. And I am trying to
> run the command “berrypi -k 6:6:6” but I am getting the following
> error.
> 
> ubuntu at ubuntu-7G-Series:~/project/AlNitride/12may$ berrypi -k 6:6:6
> Traceback (most recent call last):
>  File "/home/ubuntu/WIEN2k_14/SRC_BerryPI/BerryPI/berrypi", line 20,
> in <module>
>  import numpy # math library
> ImportError: No module named numpy
> 
> I have tried to make sure that python , numpy , berrypi and wannier90
> have been installed correctly but the error remains.
> 
> I would like to know how to solve this problem. Kindly if anyone can
> help.
> 
> Thank you
> 
> Regards
> 
> Jameela Fatheema
> Department of Physics
> 
> University of Peshawar
> _______________________________________________
> Wien mailing list
> Wien at 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


More information about the Wien mailing list