-
Notifications
You must be signed in to change notification settings - Fork 339
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
rez-pip error with inconsistency between underscores and dashes #1159
Comments
Hi, I have the exact same issue with
|
The error also appear on Rez
I am unable to install |
thanks for highlighting this, will have a look soon |
@nerdvegas Thank you it works now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: Rez 2.97.0
OS: Windows 10
Python: 3.9.6
In trying to use
rez-pip -i typing_extensions
andrez-pip -i typing_inspect
, I was getting this error:I found that inside
convert_distlib_to_setuptools
, the check ofsetuptools_dist.key == installed_dist.key
was not working. The results frompkg_resources.find_distributions
had the name with a dash (typing-extensions
), and was being compared to the name with an underscore (typing_extensions
).Doing a
.replace('-', '_')
on both of them fixed the check and let me do the pip installs, though that's obviously not a good fix.If a fix is not possible, a custom error would be better, or perhaps if the
is_pure_python
check is not super important, could that default toTrue
in the case ofconvert_distlib_to_setuptools
returningNone
?The text was updated successfully, but these errors were encountered: