From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 12 04:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 018801C8 for ; Thu, 12 Dec 2013 04:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B7A07177A for ; Thu, 12 Dec 2013 04:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBC4K0QT001701 for ; Thu, 12 Dec 2013 04:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBC4K0Or001700; Thu, 12 Dec 2013 04:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 12 Dec 2013 04:20:00 GMT Resent-Message-Id: <201312120420.rBC4K0Or001700@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mike Harding Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90948171 for ; Thu, 12 Dec 2013 04:13:48 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7D05E175A for ; Thu, 12 Dec 2013 04:13:48 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBC4Dmm9008017 for ; Thu, 12 Dec 2013 04:13:48 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBC4DmDB008014; Thu, 12 Dec 2013 04:13:48 GMT (envelope-from nobody) Message-Id: <201312120413.rBC4DmDB008014@oldred.freebsd.org> Date: Thu, 12 Dec 2013 04:13:48 GMT From: Mike Harding To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/184713: py-twisted isn't working -quite- right (failed imports) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2013 04:20:01 -0000 >Number: 184713 >Category: ports >Synopsis: py-twisted isn't working -quite- right (failed imports) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 12 04:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Mike Harding >Release: 9.2 >Organization: >Environment: FreeBSD bsd.mvh 9.2-RELEASE-p2 FreeBSD 9.2-RELEASE-p2 #0 r258794M,,, >Description: If I install py-twisted, with python 2.7, the following line does not work (from the twisted examples) .. >How-To-Repeat: Install Python 2.7 install devel/py-twisted try the above import >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>> from twisted.internet.endpoints import TCP4ClientEndpoint, connectProtocol Traceback (most recent call last): File "", line 1, in ImportError: cannot import name connectProtocol Now, if I look in the library files, I do see 'def connectProtocol' and I see 'connectProtocol' in __all__ for the module. If I use a virtualenv to install twisted, the import works properly. It's a strange one!