question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

38.2.0 Breaks installs of several packages on 2.7 with UnicodeEncodeError parsing package METADATA

See original GitHub issue

Using setuptools==38.2.0 on Python 2.7.14, this setup.py will fail on any of the packages under install_requires with errors such as UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 4258: ordinal not in range(128). None of these happened under 38.1.0 for instance. Error is happening on this line: https://github.com/pypa/setuptools/blob/97ff22f31ace57f4eabb6f1e77c9c553de0d1c24/setuptools/wheel.py#L59

from setuptools import setup, find_packages

setup(
    name="test-setuptools-encoding-problem",
    version="1.0.0",
    packages=find_packages(),
    install_requires=[
        "requests==2.18.4",
        "eventbrite==3.3.3",
        "django_mathfilters==0.4.0",
        "django-countries==5.0",
    ]
)

Verified it doesn’t happen with Python 3.6.3 for instance.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
benoit-pierrecommented, Nov 26, 2017
1reaction
mgrdcmcommented, Nov 26, 2017

Thank you so much for the quick work @benoit-pierre!

Read more comments on GitHub >

github_iconTop Results From Across the Web

setuptools 7.0 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >
python - pip has problems with metadata - Stack Overflow
I'm running now: pip install -U pip and getting: (...) has inconsistent version: filename has '22.1.2', but metadata has '22.1.2' and pip goes ......
Read more >
upstart bug fix update - Oracle Linux Yum Server
Resolves: bug#1313574 - repoquery: fix --pkgnarrow=installed. - Resolves: bug#1280453 This update is available via the Unbreakable Linux Network (ULN) and ...
Read more >
Untitled
Fedora - Update sub-package requires main package for geoipupdate script - Don't download the database in %post (#1029807) - Don't download GeoLiteASNum as ......
Read more >
Untitled
Made native scripts conditional - Update to 2.7.6. ... Rebuild with gcc 4 - Ship wlite and Unicode data licenses, and Changelog -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found