-
Notifications
You must be signed in to change notification settings - Fork 85
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
Exceptions related to weakref in pyhf 0.6.2 #1506
Comments
@alexander-held what does |
It's this one: import pyhf
model = pyhf.simplemodels.uncorrelated_background(
signal=[5.0], bkg=[10.0], bkg_uncertainty=[2.0]
) The reason that it is I am using Python 3.8 in these tests, and have not tried 3.7. |
The issue seems to be related to |
Thanks for this report @alexander-held. Yeah, I'm not sure why we hadn't seen this in tests before but this is definitley related to the python -m pip install --upgrade "click<8.0.1" giving |
Copying discussion from Slack, @kratsg points out:
|
@henryiii seems to think this is a bug with Click. @kratsg, as you were the one to look into this the most do you have a minimal failing example? If so, I can open up an Issue with Click. |
@kratsg just mentioned
Once this gets fixed we should probably do a patch release to fix this sooner than later. |
Description
With
pyhf
0.6.2 I see a long trace ofweakref
-related exceptions at the end of a program using certain parts ofpyhf
. I have not extensively tested which parts cause this behavior, but have so far observed it withpyhf.simplemodels.correlated_background
/pyhf.simplemodels.uncorrelated_background
. I can also confirm that other functionality likepyhf.set_backend("numpy")
does not trigger it.Expected Behavior
No stack of
weakref
exceptions after code finishes running.Actual Behavior
Large stack of
weakref
-related exceptions.Steps to Reproduce
Run a simple file using
pyhf.simplemodels.uncorrelated_background
, the example runs in apython:3.8-slim
container with Python 3.8.11. I see the same locally in a conda environment with Python 3.8.10 on Mac OS. Withpyhf
0.6.2 the stack of exceptions appears. When installingpyhf==0.6.1
and usingpyhf.simplemodels.hepdata_like
, I do not see any exceptions. When running viapython -m pdb test.py
locally to debug, I do no longer see the exception. The currentpyhf
master also shows the same issue.Checklist
git fetch
to get the most up to date version ofmaster
The text was updated successfully, but these errors were encountered: