some error happens when runing simple example in Vevacious
Moderator: benoleary
-
Baldwin
some error happens when runing simple example in Vevacious
Dear,
I just study how to use Vevacious. But when i try the simple examples included in Vevacious , some error happen like this :
warnings.warn(msg, UserWarning)
Traceback (most recent call last):
File "./Vevacious.py", line 23, in <module>
import VevaciousParameterDependent as VPD
File "/home//Vevacious/VevaciousParameterDependent.py", line 34, in <module>
import pathDeformation as CTPD
ImportError: No module named pathDeformation
Minimizing the one-loop potential, calculating the tunneling time or its upper bound, and printing the results took 0.16763 seconds.
Warning! "./MyResult.vout" was not produced!
Could you please point towards the possible solution? Thanks.
I just study how to use Vevacious. But when i try the simple examples included in Vevacious , some error happen like this :
warnings.warn(msg, UserWarning)
Traceback (most recent call last):
File "./Vevacious.py", line 23, in <module>
import VevaciousParameterDependent as VPD
File "/home//Vevacious/VevaciousParameterDependent.py", line 34, in <module>
import pathDeformation as CTPD
ImportError: No module named pathDeformation
Minimizing the one-loop potential, calculating the tunneling time or its upper bound, and printing the results took 0.16763 seconds.
Warning! "./MyResult.vout" was not produced!
Could you please point towards the possible solution? Thanks.
Re: some error happens when runing simple example in Vevacious
Hello, Baldwin.
This error looks like the error I expect when the path to CosmoTransitions has not been set correctly. The XML element ct_path needs to give the location of the file pathDeformation.py, which is in the CosmoTransitions directory.
To quote the README file:
"Once Vevacious is installed, it can be run as is, as long as the paths are set
correctly. Various parameters for each execution can be specified: for the
list, see the Vevacious/bin/VevaciousInitialization.xml file, where the
various tags <XYZ> can be over-ridden by being given as arguments
(e.g. --XYZ=ABC will over-ride whatever value is given between <XYZ> and
</XYZ> in the .ini file). A different initialization file can be given with
the option --input=other_filename as well (and direct arguments will over-ride
any given in that file too). The XML file shows what paths must be specified."
To quote the mentioned XML file:
"<!-- ct_path is the path to where pathDeformation.py & tunneling1D.py are
found. absolute paths such as /home/cosmotransitions/ can be used. -->"
I hope that this points you in the correct direction.
Regards,
Ben
This error looks like the error I expect when the path to CosmoTransitions has not been set correctly. The XML element ct_path needs to give the location of the file pathDeformation.py, which is in the CosmoTransitions directory.
To quote the README file:
"Once Vevacious is installed, it can be run as is, as long as the paths are set
correctly. Various parameters for each execution can be specified: for the
list, see the Vevacious/bin/VevaciousInitialization.xml file, where the
various tags <XYZ> can be over-ridden by being given as arguments
(e.g. --XYZ=ABC will over-ride whatever value is given between <XYZ> and
</XYZ> in the .ini file). A different initialization file can be given with
the option --input=other_filename as well (and direct arguments will over-ride
any given in that file too). The XML file shows what paths must be specified."
To quote the mentioned XML file:
"<!-- ct_path is the path to where pathDeformation.py & tunneling1D.py are
found. absolute paths such as /home/cosmotransitions/ can be used. -->"
I hope that this points you in the correct direction.
Regards,
Ben
-
Baldwin
Re: some error happens when runing simple example in Vevacious
Dear benoleary
I fix the fault and it works well.
thank u very much.
I fix the fault and it works well.
thank u very much.
-
samyahaghi
- Posts: 30
- Joined: 22. Jul 2017, 10:48
Re: some error happens when runing simple example in Vevacious
Dear all,
I get the following error when I run Vevacious:
################################################################################################
Finding all the tree-level extrema and parsing the results took 0.085356 seconds.
rm: cannot remove './Vevacious.pyc': No such file or directory
Traceback (most recent call last):
File "./Vevacious.py", line 23, in <module>
import VevaciousParameterDependent as VPD
File "/home/fly/Prog/Vevacious/VevaciousParameterDependent.py", line 34, in <module>
import pathDeformation as CTPD
File "/home/fly/Prog/CosmoTransitions-master/cosmoTransitions/pathDeformation.py", line 40, in <module>
from . import tunneling1D
ValueError: Attempted relative import in non-package
Minimizing the one-loop potential, calculating the tunneling time or its upper bound, and printing the results took 0.378332 seconds.
Warning! "/home/fly/Prog/Vevacious/Mymodel/MyResult.vout" was not produced!
Vevacious finished. Total running time was 0.475582 seconds.
################################################################################################
Can you help me to fix it? It seems the error is related to Python issues, but I am beginner in Python!
Cheers,
Sam
I get the following error when I run Vevacious:
################################################################################################
Finding all the tree-level extrema and parsing the results took 0.085356 seconds.
rm: cannot remove './Vevacious.pyc': No such file or directory
Traceback (most recent call last):
File "./Vevacious.py", line 23, in <module>
import VevaciousParameterDependent as VPD
File "/home/fly/Prog/Vevacious/VevaciousParameterDependent.py", line 34, in <module>
import pathDeformation as CTPD
File "/home/fly/Prog/CosmoTransitions-master/cosmoTransitions/pathDeformation.py", line 40, in <module>
from . import tunneling1D
ValueError: Attempted relative import in non-package
Minimizing the one-loop potential, calculating the tunneling time or its upper bound, and printing the results took 0.378332 seconds.
Warning! "/home/fly/Prog/Vevacious/Mymodel/MyResult.vout" was not produced!
Vevacious finished. Total running time was 0.475582 seconds.
################################################################################################
Can you help me to fix it? It seems the error is related to Python issues, but I am beginner in Python!
Cheers,
Sam
Re: some error happens when runing simple example in Vevacious
Dear Sam,
Have you by any chance accidentally deleted the file "__init__.py" in the cosmoTransitions folder?
Best,
E.
Have you by any chance accidentally deleted the file "__init__.py" in the cosmoTransitions folder?
Best,
E.
-
samyahaghi
- Posts: 30
- Joined: 22. Jul 2017, 10:48
Re: some error happens when runing simple example in Vevacious
Hi Eliel,
Thank you for your reply.
The problem was fixed. It was due to some new commands in last version of CosmoTransitions.
It works properly with CosmoTransitions-2.0a2.
If one would like to use last version, she/he should change new commands, which are of the form "from . import ---", to "import ---" in last version of CosmoTransitions.
Cheers,
Sam
Thank you for your reply.
The problem was fixed. It was due to some new commands in last version of CosmoTransitions.
It works properly with CosmoTransitions-2.0a2.
If one would like to use last version, she/he should change new commands, which are of the form "from . import ---", to "import ---" in last version of CosmoTransitions.
Cheers,
Sam
Re: some error happens when runing simple example in Vevacious
Hi Samyahaghi, and all
I have the same problem and I have been working on it but I couldn't fix it. On one hand I can't find the CosmoTransitions-2.0.2 version and on the other hand, as you suggested, I tried to change to new commands but it didn't work.
Please can you help? any suggestions? Which files in CosmoTransitions should I edit?
Thanks
Cheers,
Giov
I have the same problem and I have been working on it but I couldn't fix it. On one hand I can't find the CosmoTransitions-2.0.2 version and on the other hand, as you suggested, I tried to change to new commands but it didn't work.
Please can you help? any suggestions? Which files in CosmoTransitions should I edit?
Thanks
Cheers,
Giov
Re: some error happens when runing simple example in Vevacious
Hi Giov,
You can find all previous verions of CosmoTransition here: https://github.com/clwainwright/CosmoTr ... s/releases
Best,
E.
You can find all previous verions of CosmoTransition here: https://github.com/clwainwright/CosmoTr ... s/releases
Best,
E.