[diffoscope] |pip install diffoscope| fails

Jérémy Bobbio lunar at debian.org
Sat Sep 16 12:24:48 CEST 2017


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.

What surprises me is that you didn't got a more explicit error message.
`setup.py` contains:

    try:
        assert sys.version_info >= (3, 4)
    except AssertionError:
        print("diffoscope requires at least python 3.4", file=sys.stderr)
        sys.exit(1)

Anyway, could you try again creating your virtualenv using `-p python3`?

-- 
Lunar                                .''`. 
lunar at debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20170916/aa20b9b3/attachment.sig>


More information about the diffoscope mailing list