On 2/19/17 12:04, Axel Rau wrote:
> After upgrading twisted from 16.6.0 to 17.1.0 I’m getting:
> 
> Starting caldavd.
> Traceback (most recent call last):
>   File "/usr/local/bin/twistd", line 6, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 3019, in <module>
>     @_call_aside
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 3003, in _call_aside
>     f(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 3032, in _initialize_master_working_set
>     working_set = WorkingSet._build_master()
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 655, in _build_master
>     ws.require(__requires__)
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 963, in require
>     needed = self.resolve(parse_requirements(requirements))
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 849, in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'Automat>=0.3.0' distribution was not 
> found and is required by Twisted
> /usr/local/etc/rc.d/caldavd: WARNING: failed to start caldavd
> 
> The FreeBSD twisted port, which my port depends on has following 
> run-dependencies for 17.1.0:
>       zope.interface>=3.6.0
>       constantly>=15.1
>       incremental>=16.10.1
> which  are satisfied. 
> 
> Is this another variant of the import race problem on FreeBSD?
> 
> Not all twisted applications require Automat, hence it seems to be 
> unconditionally required here:
>       
> https://github.com/twisted/twisted/blob/a2200c3bf53beaa2763fe13bc6a670d7cf941dea/src/twisted/python/_setup.py

Hello Axel,

This is a known problem. Automat is not currently registered as a
dependency of the twisted port. There is an open PR [0] with a patch. In
the mean time, you could install the devel/py-Automat port manually to
satisfy Twisted. Automat was only added to the ports tree yesterday
morning [1], so it won't appear in the standard package repository for a
few more days.

[0] [PATCH] devel/py-twisted: Add missing dependency on devel/py-Automat
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217205

[1] https://svnweb.freebsd.org/changeset/ports/434330

Regards,
John

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to