Open local-minimum opened 6 years ago
I seem to be getting the same error when idna is a requirement:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pkginfo/sdist.py", line 70, in read
return f.read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 609: ordinal not in range(128)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/py2deb/cli.py", line 200, in main
archives, relationships = converter.convert(arguments)
File "/usr/local/lib/python3.6/dist-packages/py2deb/converter.py", line 546, in convert
archive = package.convert()
File "/usr/local/lib/python3.6/dist-packages/py2deb/package.py", line 415, in convert
maintainer=self.debian_maintainer,
File "/usr/local/lib/python3.6/dist-packages/cached_property.py", line 35, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "/usr/local/lib/python3.6/dist-packages/py2deb/package.py", line 130, in debian_maintainer
maintainer = self.metadata.maintainer
File "/usr/local/lib/python3.6/dist-packages/cached_property.py", line 35, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "/usr/local/lib/python3.6/dist-packages/py2deb/package.py", line 169, in metadata
return UnpackedSDist(self.find_egg_info_file())
File "/usr/local/lib/python3.6/dist-packages/pkginfo/sdist.py", line 65, in __init__
filename, metadata_version=metadata_version)
File "/usr/local/lib/python3.6/dist-packages/pkginfo/sdist.py", line 12, in __init__
self.extractMetadata()
File "/usr/local/lib/python3.6/dist-packages/pkginfo/distribution.py", line 108, in extractMetadata
data = self.read()
File "/usr/local/lib/python3.6/dist-packages/pkginfo/sdist.py", line 73, in read
% (self.filename, e))
ValueError: Could not load /tmp/pip-accel-build-dir-8u96bxpo/idna/pip-egg-info/idna.egg-info/ as an unpacked sdist: 'ascii' codec can't decode byte 0xe2 in position 609: ordinal not in range(128)
I'm attempting to use
py2deb
for a python 3 project and I run into the following error:To reproduce make an empty project that just has the
requirements.txt
and no python code at all.The contents of
requirements.txt
:And for reference:
Attempting the same but for one of the other requirements such as
pymongo==3.5.1
works fine.This was run inside an Ubuntu 16.04 and a Ubuntu 18.04 docker image.
The build/install steps inside the container: