[Python-modules-team] Bug#794461: RequirementParseError: Expected version spec in funcsigs; python_version<"3.3" at ; python_version<"3.3"

Vincent Bernat bernat at debian.org
Mon Aug 3 21:46:40 UTC 2015


 ❦  3 août 2015 23:13 +0200, Wolodja Wentland <w at babilen5.org> :

>> > When running cookiecutter the aforementioned error is encountered. The entire
>> > traceback is:
>> >
>> >   $ cookiecutter --help
> […]
>> >   pkg_resources.RequirementParseError: Expected version spec in funcsigs;python_version<"3.3" at ;python_version<"3.3"
>>
>> This seems to be a regression in python-mock. This spec string comes
>> From its requirements.txt. It seems that pkg-resources from Python 2.7
>> is unable to parse such a string. A workaround may be to invoke with
>> Python 3:
>>
>>     python3 $(which cookiecutter) --help
>>
>> Reassigning.
>
> It could also be a bug in python-funcsigs that python-mock depends on ever
> since a Depends was added to it in #794013 - I'll take a more detailed look
> tomorrow, but the error message seems to lend further credit to this
> hypethesis.

No, the bug is in python-mock. Edit
/usr/lib/python2.7/dist-packages/mock-1.3.0.egg-info/dependency_links.txt
and just put "funcsigs" as the first line and it will work. Maybe this
could be done in python-mock debian/rules. I don't know enough the egg
format to know the best way.
-- 
The better part of valor is discretion.
		-- William Shakespeare, "Henry IV"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20150803/89580033/attachment.sig>


More information about the Python-modules-team mailing list