Page 1 of 1
some error happens when runing simple example in Vevacious
Posted: 29. Aug 2016, 10:50
by Baldwin
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.
Re: some error happens when runing simple example in Vevacious
Posted: 29. Aug 2016, 11:02
by benoleary
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
Re: some error happens when runing simple example in Vevacious
Posted: 29. Aug 2016, 11:44
by Baldwin
Dear benoleary
I fix the fault and it works well.
thank u very much.
Re: some error happens when runing simple example in Vevacious
Posted: 15. Aug 2017, 19:36
by samyahaghi
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
Re: some error happens when runing simple example in Vevacious
Posted: 15. Aug 2017, 22:41
by Eliel
Dear Sam,
Have you by any chance accidentally deleted the file "__init__.py" in the cosmoTransitions folder?
Best,
E.
Re: some error happens when runing simple example in Vevacious
Posted: 16. Aug 2017, 00:51
by samyahaghi
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
Re: some error happens when runing simple example in Vevacious
Posted: 13. Jun 2018, 15:32
by jgiov
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
Re: some error happens when runing simple example in Vevacious
Posted: 13. Jun 2018, 16:08
by Eliel
Hi Giov,
You can find all previous verions of CosmoTransition here:
https://github.com/clwainwright/CosmoTr ... s/releases
Best,
E.