From owner-freebsd-python@freebsd.org Sun Feb 19 20:44:51 2017 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1EF5CCE50BF for ; Sun, 19 Feb 2017 20:44:51 +0000 (UTC) (envelope-from glyph@twistedmatrix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 029223A7 for ; Sun, 19 Feb 2017 20:44:51 +0000 (UTC) (envelope-from glyph@twistedmatrix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 01E1ACE50BE; Sun, 19 Feb 2017 20:44:51 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01881CE50BD for ; Sun, 19 Feb 2017 20:44:51 +0000 (UTC) (envelope-from glyph@twistedmatrix.com) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CBE263A6 for ; Sun, 19 Feb 2017 20:44:50 +0000 (UTC) (envelope-from glyph@twistedmatrix.com) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 68F9B20605; Sun, 19 Feb 2017 15:44:49 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 19 Feb 2017 15:44:49 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=6iCD8R0ULjQQbK 1QVrHTgFAW3P8=; b=nZsZRtxgRt9DLLwfFd/Gp+7jkUAmXKnVKZMJe9SXDxWn5W /GkW1S52/395RBvr9zsDebQvE7c6EXCoccgM4t+4jphgbm34ciVH3qf4SsiIieuj +nxf3FcdoS9Oom6GRP/pytfu/GatYjpYtKQbI2sh6M7Q7gDNeHcMYnzrowXHU= X-ME-Sender: X-Sasl-enc: JBoeb+7Xs7/D7NBzeJmUjZxKeftbv3DIg9KmkTl/EQKP 1487537089 Received: from milly.lan.glyph.im (unknown [192.77.237.68]) by mail.messagingengine.com (Postfix) with ESMTPA id CFAAA7E2B3; Sun, 19 Feb 2017 15:44:48 -0500 (EST) From: Glyph Lefkowitz Message-Id: Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [CalendarServer-dev] calendarserver 9.0 incompatible with twisted 17.1.0 ? Date: Sun, 19 Feb 2017 12:44:47 -0800 In-Reply-To: Cc: calendarserver-dev@lists.macosforge.org, python@FreeBSD.org To: Axel Rau References: X-Mailer: Apple Mail (2.3259) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2017 20:44:51 -0000 > On Feb 19, 2017, at 9:04 AM, Axel Rau 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 > from pkg_resources import load_entry_point > File = "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line = 3019, in > @_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 = 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=