-
-
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
installing coverage with python 3.5.2 on windows fails with UnicodeDecodeError #819
Comments
The UnicodeDecodeError is coming from the fact that there are binary executable files in the egg, but the code seems to be assuming the metadata is always text. In this case, the script_name is To make matters more complicated, easy_install is (soft) deprecated in favor of pip, eggs are deprecated in favor of wheels (not yet implemented in setuptools), and distlib is the preferred mechanism for generating executable wrappers, but not yet used by setuptools. What happens if you instead install the package using pip? My guess is it will ignore the |
Looks like there's a failing test capturing this failure, indicated in #594. |
@jaraco thanks for the hints and info. Sorry for not seeing the existing issue, I did try and search for similar problems though. It indeed works using The thing is I'm using Would the proposed workaround of catching the |
Yes, probably. It would be bad form to allow a function to return both bytes and text objects. Actually, that's what's wrong with the existing implementation. It's relying on the lenience of Python 2 to allow bytes and text objects to be interchangeable. Looking further down the chain, there's more and more about |
Yes, that workaround made things work for me on Python 3.5.x and all the packages in my buildout environments were installed normally without errors. Sorry I really don't know enough about setuptools' internals to emit an informed opinion on how |
Hi. I've just noticed that installing coverage on windows using python 3.5 and
easy_install
raised aUnicodeDecodeError
. I am not able to determine if it comes from coverage (bad encoding of package info? is that possible?) or setuptools itself. I have included what I have used to make the installation complete, but I have no idea if it would be the solution ...Please tell me if it's something I should rather report on the
coverage
side.To reproduce, use this on a Windows machine (I've tried on a Debian VM and it worked) with python 3.5.2 and setuptools 28.6.0:
Expected: coverage is installed correctly
Happens:
Workaround: change pkg_resources__init__.py in get_metadata from:
to:
The text was updated successfully, but these errors were encountered: