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
When running the "HEOM 1d: Spin-Bath model, fitting of spectrum and correlation functions" tutorial on https://qutip.org/try-qutip/, it fails with the following error:
ModuleNotFoundError: No module named 'mpmath'
The error occurs because the notebook attempts to import the mpmath module, which is not available in the environment. It leads to further errors in the notebook (attached screenshot)
Open the "HEOM 1d: Spin-Bath model, fitting of spectrum and correlation functions" tutorial
Run the notebook
Error occurs in the setup section
I'm seeking guidance on the best approach to fix this issue:
Should I modify the notebook to work without mpmath?
Would it be possible to add mpmath to the environment?
I noticed in the try-qutip repository that there are environment configuration files (try-qutip-env.yaml, try-basic-env.yaml). It appears that the dependancy for mpmath is not included in this environment configuration, which would explain the import error when running the HEOM 1d notebook.
Can you add this dependancy or I am happy to add it. @Ericgig
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @Vanshaj0429! I needed to redeploy try-qutip to add the new qutip-qip release, so I added mpmath at the same time. Fortunately is a pure Python package so this was easy.
If you would like something to work on I created #8 which is about make the builds of try-qutip a bit more reproducible by adding lock files for the dependencies. It's not trivial work but you're welcome to take it on and open an pull request if you feel up to it.
Issue Description
When running the "HEOM 1d: Spin-Bath model, fitting of spectrum and correlation functions" tutorial on https://qutip.org/try-qutip/, it fails with the following error:
ModuleNotFoundError: No module named 'mpmath'
The error occurs because the notebook attempts to import the mpmath module, which is not available in the environment. It leads to further errors in the notebook (attached screenshot)
Details
from mpmath import mp
Reproduction Steps
I'm seeking guidance on the best approach to fix this issue:
I noticed in the try-qutip repository that there are environment configuration files (try-qutip-env.yaml, try-basic-env.yaml). It appears that the dependancy for mpmath is not included in this environment configuration, which would explain the import error when running the HEOM 1d notebook.
Can you add this dependancy or I am happy to add it. @Ericgig
The text was updated successfully, but these errors were encountered: