[Wien] problem when running berrypi

Gavin Abo gsabo at crimson.ua.edu
Fri Sep 8 10:45:22 CEST 2017


I cannot recall if BerryPI works with Python 2.6.  You can try it, but 
maybe it doesn't work as section "8.2 BerryPI (Modern theory of 
polarization)" in the WIEN2k 17.1 usersguide on page 149 has:

"It consists of a set of Python scripts (*requires* *Python 2.7* and the 
NumPi library) and uses wien2wannier for the calculation of overlap 
integrals."

The current error, however, doesn't look like it is caused by Python 2.6.

In your config.py, there is:

#fix for location of python file locations when executing from the 
python commandline
DEFAULT_BIN_PATH=/home/ha/SRC_BerryPI/BerryPI

#Fix for python path to make sure it grabs the latest version
DEFAULT_PYTHON_PATH=/usr/bin/python

As Oleg mentioned, the current error will most likely be resolved if you 
edit it and add single quotes to those lines:

#fix for location of python file locations when executing from the 
python commandline
DEFAULT_BIN_PATH='/home/ha/SRC_BerryPI/BerryPI'

#Fix for python path to make sure it grabs the latest version
DEFAULT_PYTHON_PATH='/usr/bin/python'

On 9/7/2017 8:40 PM, halim said wrote:
> Dear Prof Oleg,
>
>
> Thank you for your suggestion, I don't work on personal computer and 
> Python2.6 version is installed.
> Is it ok? please find config.py as attached file.
>
> Your suggestion is very much appreciated.
>
> Looking forward for your answer.
>
> All my best,
>
> Halim
>
>
> Le Jeudi 7 septembre 2017 21h49, "Rubel, Oleg" <rubelo at mcmaster.ca> a 
> écrit :
>
>
> Ok. Can you reply with config.py file attached?
>
> I remember python being picky about single quote signs for the text 
> variable enclosures.
>
> ...
> #fix for location of python file locations when executing from the 
> python commandline
> DEFAULT_BIN_PATH='/home/rubel/BerryPI'
>
> #Fix for python path to make sure it grabs the latest version
> DEFAULT_PYTHON_PATH='/software/CentOS-6/tools/python-2.7.3/bin/python’
>>
> Also check
> [rubel at lg-1r14-n04 <mailto:rubel at lg-1r14-n04> GaN-W]$ which berrypi
>
> Here is what I have:
> alias berrypi='/software/CentOS-6/tools/python-2.7.3/bin/python 
> /home/rubel/BerryPI/berrypi'
>     /software/CentOS-6/tools/python-2.7.3/bin/python
>
> Thanks
> Oleg
>
> > On Sep 7, 2017, at 14:28, halim said <halim_said04 at yahoo.fr 
> <mailto:halim_said04 at yahoo.fr>> wrote:
> >
> > Dear Prof Oleg,
> >
> > Thank you for your answer. I changed the path in config.py and set 
> it  as in the mentioned folder, also the folder 
> home/ha/SRC_BerryPI/BerryPI
> > exists.
> >
> > The same error occurs after changing the path, please what to do to 
> solve the problem?
> >
> > I appreciate your help.
> >
> > Halim
> >
> >
> > Le Jeudi 7 septembre 2017 19h23, "Rubel, Oleg" <rubelo at mcmaster.ca 
> <mailto:rubelo at mcmaster.ca>> a écrit :
> >
> >
> > Please check that the folder /home/ha/SRC_BerryPI/BerryPI
> > really exists. Your error message suggests that it can be 
> /home/ha/WIEN2k/SRC_BerryPI/BerryPI
> > In this case you should edit DEFAULT_BIN_PATH in config.py
> >
> > I hope it will fix your problem
> > Oleg
> >
> > > On Sep 7, 2017, at 12:11, halim said <halim_said04 at yahoo.fr 
> <mailto:halim_said04 at yahoo.fr>> wrote:
> > >
> > > Dear Wien2k  users community,
> > >
> > > I am facing problem when running berrypi, i followed the example 
> of GaN, but i am getting this error. How to solve it.
> > >
> > > gan> berrypi -k6:6:6
> > > Traceback (most recent call last):
> > >  File "/home/ha/WIEN2k/SRC_BerryPI/BerryPI/berrypi", line 25, in 
> <module>
> > >    import submoduleProcess as b_PySubProcess
> > >  File "/home/ha/WIEN2k/SRC_BerryPI/BerryPI/submoduleProcess.py", 
> line 11, in <module>
> > >    from config import BERRY_DEFAULT_CONSOLE_PREFIX as DEFAULT_PREFIX
> > >  File "/home/ha/WIEN2k/SRC_BerryPI/BerryPI/config.py", line 14
> > > DEFAULT_BIN_PATH=/home/ha/SRC_BerryPI/BerryPI
> > >                      ^
> > > SyntaxError: invalid syntax
> > >
> > >
> > >
> > > I would be thankful for your suggestion and answer to solve the 
> problem.
> > >
> > > Looking forward your answer.
> > >
> > > Halim Said
> >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Wien mailing list
> > > Wien at zeus.theochem.tuwien.ac.at 
> <mailto: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
> >
> > _______________________________________________
> > Wien mailing list
> > Wien at zeus.theochem.tuwien.ac.at <mailto: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
>
> >
> >
> >
> > _______________________________________________
> > Wien mailing list
> > Wien at zeus.theochem.tuwien.ac.at <mailto: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
>
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at <mailto: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
>
>
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20170908/305d2b26/attachment.html>


More information about the Wien mailing list