-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--upgrade fails #263
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copying last comment from #237:
Upgrading old versions I think can fail because this raises an error (old installs don't have .dat files):
Trace
`(base) [aml1005@login-e-13 cobaya]$ cobaya-install --upgrade planck_2018_lowl.EE
[install] Installing external packages at '/home/aml1005/git/cobaya/modules'
[install] The installation path has been written into the global config file: /home/aml1005/.config/cobaya/config.yaml
================================================================================
planck_2018_lowl.EE
[install] Checking if dependencies have already been installed...
[install] Version check failed: Could not read current version.
[install] Installing...
[clik]
clik
module loaded successfully from /rds/user/aml1005/hpc-work/modules/code/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clikTraceback (most recent call last):
File "/home/aml1005/git/cobaya/cobaya/likelihoods/base_classes/InstallableLikelihood.py", line 98, in is_installed
with open(os.path.join(path, _version_filename), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/rds/user/aml1005/hpc-work/modules/data/planck_supp_data_and_covmats/version.dat'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/aml1005/git/cobaya/cobaya/install.py", line 215, in install
success = install_this(path=general_abspath, **kwargs_install)
File "/home/aml1005/git/cobaya/cobaya/likelihoods/base_classes/planck_clik.py", line 207, in install
if force or not cls.is_installed(path=path, code=False, data=True):
File "/home/aml1005/git/cobaya/cobaya/likelihoods/base_classes/planck_clik.py", line 171, in is_installed
result &= native.is_installed(**kwargs)
File "/home/aml1005/git/cobaya/cobaya/likelihoods/base_classes/InstallableLikelihood.py", line 101, in is_installed
raise VersionCheckError("Could not read current version.")
cobaya.tools.VersionCheckError: Could not read current version.
[install] ERROR An unknown error occurred. Delete the external packages folder '/home/aml1005/git/cobaya/modules' and try again. Please, notify the developers if this error persists.
[install] ERROR Installation failed! Look at the error messages above. Solve them and try again, or, if you are unable to solve them, install the packages required by this component manually.
================================================================================
================================================================================
[install] ERROR The installation (or installation test) of some component(s) has failed:
Check output of the installer of each component above for precise error info.
[exception handler] ---------------------------------------
Traceback (most recent call last):
File "/rds/user/aml1005/hpc-work/anaconda2/bin/cobaya-install", line 11, in
load_entry_point('cobaya', 'console_scripts', 'cobaya-install')()
File "/home/aml1005/git/cobaya/cobaya/install.py", line 549, in install_script
"no_set_global", "skip", "skip_global", "debug", "upgrade"]})
File "/home/aml1005/git/cobaya/cobaya/install.py", line 278, in install
bullet + bullet.join(failed_components))
cobaya.log.LoggedError: The installation (or installation test) of some component(s) has failed:
Check output of the installer of each component above for precise error info.
`
The text was updated successfully, but these errors were encountered: