-
-
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
Regression: Setuptools 3.7 installation fails with TypeError under pbr #213
Comments
Original comment by alex_gaynor (Bitbucket: alex_gaynor, GitHub: Unknown): It appears that 3.7 was the release which introduced this regression. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): I've thusfar been unable to replicate the failure. I've installed several packages (pytest, including py, sqlalchemy, and others) without failure (using easy_install against sdists). I suspect the regression may be related to pip. python-daemon fails to run on Windows and on Python 3. Is there another package that is maybe a little less opinionated on which the failure can be repeated? |
Original comment by therve (Bitbucket: therve, GitHub: therve): The bug is specific to python 2 though. The following patch seems the fix the issue for me: http://paste.openstack.org/show/82402/ |
Original comment by Ivoz (Bitbucket: Ivoz, GitHub: Ivoz): It's confusing to me why at line 367 here we want a text buffer on python 3 but specifically a bytes buffer on python 2. Why not just text buffer ( The current code definitely fails on being passed unicode install requirements. |
Original comment by lothiraldan (Bitbucket: lothiraldan, GitHub: lothiraldan): I can reproduce this bug with "pbr" package too, I downloaded it, run python setup.py egg_info and it crash. |
Original comment by jamezpolley (Bitbucket: jamezpolley, GitHub: jamezpolley): As well as python-daemon and pbr, I can reproduce this with virtualenvwrapper |
Original comment by kiall (Bitbucket: kiall, GitHub: kiall): Yes, it's a install time dep: https://bitbucket.org/dhellmann/virtualenvwrapper/src/58c2459e5b27e3876b99842f323222349d1b6ed1/setup.py?at=master |
Original comment by Ivoz (Bitbucket: Ivoz, GitHub: Ivoz): This seems like an idiomatic patch to me:
|
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): @Ivoz I applied the fix to 3.7, as that's where the regression occurred. I then merged that with the latest tip (4.0), assuming there would be little demand for 3.x support. Now that there's a report against 4.0, it's probably worth making a 3.8.1 release with this fix. |
"Fix" interoperability of `rfc822_escape` with stblib's `email` package
Originally reported by: alex_gaynor (Bitbucket: alex_gaynor, GitHub: Unknown)
Complete reproducer:
The text was updated successfully, but these errors were encountered: