[diffoscope] |pip install diffoscope| fails
Mike Grunweg
grunweg at web.de
Wed Sep 20 12:26:37 CEST 2017
Am 16.09.2017 um 12:24 schrieb Jérémy Bobbio:
> Mike Grunweg:
>> on my system, trying to install diffoscope using pip fails.
>>
>> STR:
>> 1. Create a new virtualenv, e.g. with |virtualenv TEMP|.
>> 2. Activate the virtualenv, e.g. with |source TEMP/bin/activate|.
>> 3. Run |pip install diffoscope| (in the very same terminal, i.e. in the
>> virtualenv just activated).
>>
>> Expected results:
>> Diffoscope is installed successfully and read to use.
>>
>> Actual results: Installation fails. I get the following log output
>>
>> $ pip install diffoscope
>> Collecting diffoscope
>> Downloading diffoscope-86.tar.gz (969kB)
>> 100% |████████████████████████████████| 972kB 581kB/s
>> Complete output from command python setup.py egg_info:
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "/tmp/pip-build-Ii2qtN/diffoscope/setup.py", line 31, in <module>
>> long_description=open('README.rst', encoding='utf-8').read(),
>> TypeError: 'encoding' is an invalid keyword argument for this function
> diffoscope requires Python >= 3.4. You are getting this error because
> most likely you are using Python 2. [...]
>
> Anyway, could you try again creating your virtualenv using `-p python3`?
Indeed, I was using Python 2. Trying the same steps above, but using
|--python=python3| for creating the virtualenv worked better, but I
still get an error:
$ pip install diffoscope
Downloading/unpacking diffoscope
Downloading diffoscope-86.tar.gz (969kB): 969kB downloaded
Running setup.py (path:/tmp/pip-build-gipyjy5h/diffoscope/setup.py)
egg_info for package diffoscope
Downloading/unpacking python-magic (from diffoscope)
Downloading python_magic-0.4.13-py2.py3-none-any.whl
Downloading/unpacking libarchive-c (from diffoscope)
Downloading libarchive_c-2.7-py2.py3-none-any.whl
Installing collected packages: diffoscope, python-magic, libarchive-c
Running setup.py install for diffoscope
File
"[redacted]/VENV_DIFFOSCOPE/lib/python3.4/site-packages/diffoscope/presenters/utils.py",
line 369
return cls(fmtstr, *range(nargs), *holes)
^
SyntaxError: invalid syntax
Installing diffoscope script to [redacted]/VENV_DIFFOSCOPE/bin
Successfully installed diffoscope python-magic libarchive-c
Cleaning up...
Thanks,
~Mike
More information about the diffoscope
mailing list