Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 04:13:48 GMT
From:      Mike Harding <mvharding@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184713: py-twisted isn't working -quite- right (failed imports)
Message-ID:  <201312120413.rBC4DmDB008014@oldred.freebsd.org>
Resent-Message-ID: <201312120420.rBC4K0Or001700@freefall.freebsd.org>

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

>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 "<stdin>", line 1, in <module>
 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!
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312120413.rBC4DmDB008014>