-
-
Notifications
You must be signed in to change notification settings - Fork 546
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]: v24.9.0 broken with [cite] optional dependency #4432
Comments
cc: @kratman who was working on this back in #4383. I don't know why this fails, though, because we test against this behaviour as well... |
Yeah I am looking into it |
Thanks! I guess we should release 24.9.1 with a fix by today? Also, we install all the optional dependencies when testing the wheels, too, which includes |
@BradyPlanden There must be a dependency issue, I can reproduce this with pip install 'pybamm[cite]' but not with pip install 'pybamm[all,cite]' |
I'm unable to reproduce with |
This is what I tried:
Edit: and couldn't reproduce it for a second time |
|
@kratman and @BradyPlanden, this is coming from an undeclared dependency on |
Unfortunately, |
The reason you do not see it with |
It looks like |
Yes, this is why we were installing |
Yeah we just need to swap out pybtex and make citations non-optional. The citations object is global, all the "check if it is installed" stuff is because we are hiding a dependency too |
I would be okay with making citations non-optional, too. I think the functionality is nice to have by default, since we encourage researchers to use |
PyBaMM Version
v24.9.0
Python Version
3.12
Describe the bug
Installing with optional
[cite]
dependency results with the below import error.Steps to Reproduce
python -m pip install 'pybamm[cite]'
produces the below error when runningimport pybamm
.Relevant log output
No response
The text was updated successfully, but these errors were encountered: