You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cobaya-cosmo-generator stopped working in version 2.0.
Error message with python2:
Traceback (most recent call last):
File "/home/lh561/.virtualenvs/py27env/bin/cobaya-cosmo-generator", line 11, in<module>
load_entry_point('cobaya', 'console_scripts', 'cobaya-cosmo-generator')()
File "/home/lh561/Documents/Projects/CobayaPrj/cobaya/cobaya/cosmo_input/gui.py", line 291, in gui_script
window = MainWindow()
File "/home/lh561/Documents/Projects/CobayaPrj/cobaya/cobaya/cosmo_input/gui.py", line 59, in __init__
modules = get_available_modules(kind)
File "/home/lh561/Documents/Projects/CobayaPrj/cobaya/cobaya/tools.py", line 148, in get_available_modules
if __init__filename and os.path.getsize(__init__with_path):
File "/home/lh561/.virtualenvs/py27env/lib/python2.7/genericpath.py", line 57, in getsize
return os.stat(filename).st_size
OSError: [Errno 20] Not a directory: '/home/lh561/Documents/Projects/CobayaPrj/cobaya/cobaya/samplers/__init__.py/__init__.py'
QClipboard: Unable to receive an event from the clipboard manager in a reasonable time
To check whether this might be due to the python version I tried it with python3, but only got:
Segmentation fault
The repetition of /__init__.py seems to cause the problem. Glancing at cobaya/tools.py there were too many changes for me to easily spot what might have caused this, i.e. I guess this'll be easier for those familiar with the changes made.
The text was updated successfully, but these errors were encountered:
My bad: there was a last minute change that I didn't test in Python 2. Thanks for the report!
Fixed in master, but not uploaded to PyPI yet, so please pull from GitHub.
Also, unless you have a really good reason to use Python 2 (e.g. compatibility with old external code), I'd really recommend you switching to Python 3: end of life of Python 2 is in 4 months!
The cobaya-cosmo-generator stopped working in version 2.0.
Error message with python2:
To check whether this might be due to the python version I tried it with python3, but only got:
The repetition of
/__init__.py
seems to cause the problem. Glancing atcobaya/tools.py
there were too many changes for me to easily spot what might have caused this, i.e. I guess this'll be easier for those familiar with the changes made.The text was updated successfully, but these errors were encountered: