Dear Professor Gavin,
Thank you for your suggestion, but for my case I am working with wien2k14, also
you said that I need to use wien2wannier, should I compiled and use it with
BerryPi?
I appreciate for your answer.
Regards,
Halim
Le Vendredi 8 septembre 2017 11h45, Gavin Abo <[email protected]> a
écrit :
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" <[email protected]> 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@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 <[email protected]> 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" <[email protected]> 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 <[email protected]> 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
> > [email protected]
> > http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> > SEARCH the MAILING-LIST at:
> > http://www.mail-archive.com/[email protected]/index.html
>
> _______________________________________________
> Wien mailing list
> [email protected]
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> SEARCH the MAILING-LIST at:
> http://www.mail-archive.com/[email protected]/index.html
>
>
>
> _______________________________________________
> Wien mailing list
> [email protected]
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> SEARCH the MAILING-LIST at:
> http://www.mail-archive.com/[email protected]/index.html
_______________________________________________
Wien mailing list
[email protected]
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:
http://www.mail-archive.com/[email protected]/index.html
_______________________________________________
Wien mailing list
[email protected]
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:
http://www.mail-archive.com/[email protected]/index.html
_______________________________________________
Wien mailing list
[email protected]
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:
http://www.mail-archive.com/[email protected]/index.html
_______________________________________________
Wien mailing list
[email protected]
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:
http://www.mail-archive.com/[email protected]/index.html