Skip to content
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
ghost opened this issue Nov 27, 2013 · 3 comments
Closed

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

ghost opened this issue Nov 27, 2013 · 3 comments
Labels

Comments

@ghost
Copy link

@ghost ghost 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

@ghost
Copy link
Author

@ghost ghost 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

@ghost
Copy link
Author

@ghost ghost 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.

@ghost
Copy link
Author

@ghost ghost commented Dec 1, 2013

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


Released as 1.4.2.

@ghost ghost added minor bug labels Mar 29, 2016
@ghost ghost closed this Mar 29, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
0 participants