-
Notifications
You must be signed in to change notification settings - Fork 69
fix import error due to moving progress bar functions in latest pymc #542
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing because of the changed import -- my guess is we have to update a version pin?
|
@jessegrabowski Yes, the majority of tests are failing because of the version of PyMC used is <5.24.0 in the tests. There is one more issue with |
Could you pin |
Preliz needs to change it's import from compile_pymc to compile |
You can put a temporary xfail on the preliz test, and import inside the relevant test only |
preliz already fixed it and cut a release, but it's not out of conda-forge yet |
I see, then just wait 1/2 days? If you're confident everything is fixed feel free to merge |
@ricardoV94 I think something about the progress bar update is breaking pickling on windows. |
Maybe the custom sampler is broken? You can change the test to run with cores=1 to see the error message |
No error raised when cores=1 |
Odd can you reproduce locally? |
Yeah. It happens on windows because it defaults to |
And didn't happen before our changes? So odd |
The error appears to be an infinite recursion when trying to unpickle the inner function in Edit: Reverting that commit (and the preceding one) solves the issue 🤔 What was the motivation for those changes? |
Thank you @Dekermanjian ! |
Happy to help! I am glad this is resolved now! |
import progress bar functions from
pymc.progress_bar
instead ofpymc.util
This addresses the issue in #541
What I am not sure of though is what happens if a user wants to use the latest
pymc-extras
version withpymc<5.24.0
?