Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2017 12:44:47 -0800
From:      Glyph Lefkowitz <glyph@twistedmatrix.com>
To:        Axel Rau <Axel.Rau@Chaos1.DE>
Cc:        calendarserver-dev@lists.macosforge.org, python@FreeBSD.org
Subject:   Re: [CalendarServer-dev] calendarserver 9.0 incompatible with twisted 17.1.0 ?
Message-ID:  <E2A2C16D-F3AA-4ACC-87A1-A55A1440A640@twistedmatrix.com>
In-Reply-To: <FF57FE9C-4CAB-46F2-BFF4-527820583030@Chaos1.DE>
References:  <FF57FE9C-4CAB-46F2-BFF4-527820583030@Chaos1.DE>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Feb 19, 2017, at 9:04 AM, Axel Rau <Axel.Rau@Chaos1.DE> wrote:
>=20
> After upgrading twisted from 16.6.0 to 17.1.0 I=E2=80=99m getting:
>=20
> 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 =3D 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 =3D 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>=3D0.3.0' =
distribution was not found and is required by Twisted
> /usr/local/etc/rc.d/caldavd: WARNING: failed to start caldavd
>=20
> The FreeBSD twisted port, which my port depends on has following =
run-dependencies for 17.1.0:
> 	zope.interface>=3D3.6.0
> 	constantly>=3D15.1
> 	incremental>=3D16.10.1
> which  are satisfied.=20
>=20
> Is this another variant of the import race problem on FreeBSD?
>=20
> Not all twisted applications require Automat, hence it seems to be =
unconditionally required here:
> 	=
https://github.com/twisted/twisted/blob/a2200c3bf53beaa2763fe13bc6a670d7cf=
941dea/src/twisted/python/_setup.py =
<https://github.com/twisted/twisted/blob/a2200c3bf53beaa2763fe13bc6a670d7c=
f941dea/src/twisted/python/_setup.py>


This is happening well before import; Twisted added Automat as a =
dependency.  If the FreeBSD port of Twisted is installing Twisted 17.1.0 =
without Automat, then it is broken and needs to be fixed.

-glyph=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E2A2C16D-F3AA-4ACC-87A1-A55A1440A640>