<br><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 8:12 AM, Weikai (Victor) Xie <span dir="ltr"><<a href="mailto:xieweikai@gmail.com" target="_blank">xieweikai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi, folks,<div><br></div><div>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!</div><div><br></div><div>Here is a screen copy:</div>



<div><br></div><div><div>Python 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win32</div><div>Type "help", "copyright", "credits" or "license" for more information.</div>



<div>>>> import twisted</div><div><div>>>> twisted.web</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>AttributeError: 'module' object has no attribute 'web'</div>



<div></div></div><div>>>> dir(twisted)</div><div>['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '__version__', '_checkRequirements', '_version', 'python', 'v</div>



<div>ersion']</div><div><div>>>> twisted.version</div><div>Version('twisted', 13, 0, 0)</div></div><div><br></div></div></div></blockquote><div><br></div><div> 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__))).</div>
<div><br></div><div>-- </div><div>Thomas</div></div>