-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
[Bug]: 23.9rc0 "optional dependencies" imported #3473
Comments
Hi @abillscmu, could you try installing v23.9rc0 within a fresh virtual environment and post an error log? I could not reproduce the issue; installing in a virtual environment without any optional dependencies and then importing PyBaMM works fine for me. |
|
Thanks, I don't use |
I tried it, same thing |
To fix: some recommended ways of handling optional dependencies are via 1. The best way would be one wherein this can be done inside a single file, i.e., |
Looking into it, trying to reproduce it with conda. |
I was able to reproduce this locally, thanks so much for reporting this @abillscmu |
@abillscmu could you try executing a minimal example by installing pybamm from the linked PR? Everything should work now. |
yep, when installing from #3475 it seems to work, thanks |
PyBaMM Version
23.9rc0
Python Version
3.11
Describe the bug
There are a number of "optional dependencies" that are imported with pybamm on 23.9rc0, causing errors since they are not installed by default. This can obviously be solved by installing
pybamm[all]
but it's a bit weird to me thatpip install pybamm
, thenimport pybamm
doesn't just work.Not sure if this is a "real bug" or if it will be resolved when 23.9 is actually released. Feel free to close it if it will be resolved.
Steps to Reproduce
shell:
pip install pybamm==23.9rc0
python:
import pybamm
Relevant log output
No response
The text was updated successfully, but these errors were encountered: