-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pkg_resources: UnboundLocalError: local variable 'dist' referenced before assignment #702
Comments
Fixed by #703. Sorry about that, and thanks for catching it! |
No worries, that was a mean one, probably wouldn't have noticed it either. Thanks for the quick fix! |
Thanks for fixing this, just hit it myself. I see that 25.1.2 includes this fix and is tagged on github but isn't released on pypi? If you're expecting to get that onto pypi soon I can probably avoid having to go through all my install scripts pinning the setuptools version. Any idea when that might happen? |
Hmm. PyPI releases are meant to be automatic from tagged versions. Let's see what happened. Aah, so it built and tests passed, but the upload failed because I forgot to bump the versions in the code (by running I'll push out a release momentarily. |
I expect the release to go out with this job. |
Great, it's out, thanks! |
When trying to run my package's tests frozen via cx_Freeze on Windows, I just got this:
full traceback:
This seems to be introduced in #698 (cc @minrk) and happens when the
for dist in working_set:
above doesn't assign todist
becauseworking_set
is empty.The text was updated successfully, but these errors were encountered: