On Tue, Jun 18, 2013 at 8:12 AM, Weikai (Victor) Xie <xiewei...@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
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python