[New-bugs-announce] [issue30409] locale.getpreferredencoding doesn't return result

Sean McCully report at bugs.python.org
Fri May 19 23:41:44 EDT 2017


New submission from Sean McCully:

Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 312, in run
    wheel_cache
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 295, in populate_requirement_set
    wheel_cache=wheel_cache):
  File "/usr/lib/python2.7/site-packages/pip/req/req_file.py", line 84, in parse_requirements
    filename, comes_from=comes_from, session=session
  File "/usr/lib/python2.7/site-packages/pip/download.py", line 422, in get_file_content
    content = auto_decode(f.read())
  File "/usr/lib/python2.7/site-packages/pip/utils/encoding.py", line 31, in auto_decode
    return data.decode(locale.getpreferredencoding(False))
TypeError: decode() argument 1 must be string, not None

----------
components: Unicode
files: patchset.diff
keywords: patch
messages: 293995
nosy: ezio.melotti, haypo, seanmccully
priority: normal
pull_requests: 1767
severity: normal
status: open
title: locale.getpreferredencoding doesn't return result
versions: Python 2.7
Added file: http://bugs.python.org/file46877/patchset.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30409>
_______________________________________


More information about the New-bugs-announce mailing list