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

easy_install -i with local index does not work on python 3.3 #116

Closed
bb-migration opened this Issue Nov 27, 2013 · 3 comments

Comments

Projects
None yet
1 participant
@bb-migration

bb-migration commented Nov 27, 2013

Originally reported by: antti_haapala (Bitbucket: antti_haapala, GitHub: Unknown)


#!python

% easy_install -i `pwd`/eggs 
...
Searching for Babel
Reading file:/.../eggs/index/Babel/
...
venv33/lib/python3.3/site-packages/setuptools/package_index.py", line 1057, in local_open
    {'content-type':'text/html'}, StringIO(body))
TypeError: initial_value must be str or None, not bytes

@bb-migration

This comment has been minimized.

bb-migration commented Nov 27, 2013

Original comment by antti_haapala (Bitbucket: antti_haapala, GitHub: Unknown):


Ah, we did our local index using BasketWeaver, the reason is ofc that the open uses 'rb' to read the 'index.html'; I guess it should be 'r' on all platforms, and also in py2

@bb-migration

This comment has been minimized.

bb-migration commented Dec 1, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Corrected a TypeError when reading a local package index on Python 3. Fixes #116.

@bb-migration

This comment has been minimized.

bb-migration commented Dec 1, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Released as 1.4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment