[Twisted-Python] Problem with installing twisted 13.0 with Python 2.7 on 64 bit Win 7

Thomas Hervé therve at twistedmatrix.com
Tue Jun 18 02:07:39 MDT 2013


On Tue, Jun 18, 2013 at 8:12 AM, Weikai (Victor) Xie <xieweikai at gmail.com>wrote:

> Hi, folks,
>
> I was trying to install twisted 13.0 on my 64 bit win 7 but get some
> strange problem - there is no sub-packages available under twisted!
>
> Here is a screen copy:
>
> Python 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
> on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import twisted
> >>> twisted.web
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AttributeError: 'module' object has no attribute 'web'
> >>> dir(twisted)
> ['__builtins__', '__doc__', '__file__', '__name__', '__package__',
> '__path__', '__version__', '_checkRequirements', '_version', 'python', 'v
> ersion']
> >>> twisted.version
> Version('twisted', 13, 0, 0)
>
>
 That's not how import works. Try "import twisted.web". It'd be interesting
to see what's on your filesystem too (like
os.listdir(os.path.dirname(twisted.__file__))).

-- 
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20130618/8b589bc0/attachment.html>


More information about the Twisted-Python mailing list