-
Notifications
You must be signed in to change notification settings - Fork 47
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
Pickling the AmiciObjective requires an AMICI installation with HDF5 support #703
Comments
Did you install
Feel free to post an issue over at https://github.com/AMICI-dev/AMICI/issues |
It didnt work. Using pip install -v amici, I get this: Using pip 21.1.3 from /home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/pip (python 3.9) |
Ah that didn't actually re-install amici. |
Okay, the important info is unfortunately missing here. In which location are your HDF5 libraries installed? (if using something Debian-based:
That is easy to fix: Just delete |
Doing this, gives me the following error! Using existing amici model in folder /home/harshita/PycharmProjects/Project_ICL_pyPESTO/amici_models/Boehm_JProteomeRes2014. |
See #701 (comment) |
In this issue, the problem was in PEtab file which is getting generated. But here I am not getting any error on using linter(#701 (comment)) The files in this problem are different. Currently, I am using Benchmark Models Boehm JProteome problem. And the files are the same. |
The only difference is I have generated a folder named "amici models" again, as suggested by you above because it was giving an error. |
@harshitaojha: Can you please verify that you are using the most recent pypesto/amici/petab packages and model files. If things still don't work, please post a minimal reproducible example here. |
I verified the package versions, and they all were recent updates. It worked and I got these plots, attaching them below for your ref. Finally, I change the odes, parameters and the data for the project I am working on, I get the following error. I have emailed you and @yannikschaelte the necessary files to reproduce the model I was working on. Sorry, sharing it here is not under my purview. |
Reporting the result here for future reference: The problem was a parameter named (This is independent of the opening post on pickling and HDF5 support). |
I have libhdf5-serial-dev installed for hdf5 support of amici but still getting the following error.
Amici version = 0.11.7
(can't use the updated amici version as I get error in that)
Traceback (most recent call last):
File "/home/harshita/PycharmProjects/Project_ICL_pyPESTO/pypesto_opti.py", line 55, in
result_powell = optimize.minimize(problem=problem,
File "/home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/pypesto/optimize/optimize.py", line 122, in minimize
ret = engine.execute(tasks, progress_bar=progress_bar)
File "/home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/pypesto/engine/multi_process.py", line 58, in execute
pickled_tasks = [pickle.dumps(task) for task in tasks]
File "/home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/pypesto/engine/multi_process.py", line 58, in
pickled_tasks = [pickle.dumps(task) for task in tasks]
File "/home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/cloudpickle/cloudpickle_fast.py", line 73, in dumps
cp.dump(obj)
File "/home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/cloudpickle/cloudpickle_fast.py", line 563, in dump
return Pickler.dump(self, obj)
File "/home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/pypesto/objective/amici.py", line 234, in getstate
amici.writeSolverSettingsToHDF5(
File "/home/harshita/anaconda3/envs/Project_ICL_lotkaVolterra/lib/python3.9/site-packages/amici/init.py", line 262, in writeSolverSettingsToHDF5
amici.writeSolverSettingsToHDF5(_get_ptr(solver), file, location)
AttributeError: ("module 'amici.amici' has no attribute 'writeSolverSettingsToHDF5'", 'Pickling the AmiciObjective requires an AMICI installation with HDF5 support.')
The text was updated successfully, but these errors were encountered: