baudren / montepython_public

Public repository for the Monte Python Code
MIT License
65 stars 116 forks source link

cannot import name CosmoSevereError ? #18

Closed wilmarcardonac closed 10 years ago

wilmarcardonac commented 10 years ago

Running Monte Python v2.0.4

with CLASS v2.2.0

Testing likelihoods for: -> fake_planck_bluebook

Creating chains/lcdm/p/2014-04-22_1__2.txt

Traceback (most recent call last): File "montepython/MontePython.py", line 41, in sys.exit(run()) File "/.../montepython/montepython/run.py", line 40, in run import sampler File "/.../montepython/montepython/sampler.py", line 24, in from classy import CosmoSevereError, CosmoComputationError ImportError: cannot import name CosmoSevereError

baudren commented 10 years ago

This is weird - it means that Monte Python is trying to import an old version of classy, where this CosmoSevereError was not defined. The following should solve the problem, but I will put a better error message for future users.

and try again.