[Twisted-web] Error importing reactor from twisted.internet

PAPPU Sai Venkatakrishnan saidesertrose2004 at gmail.com
Thu Dec 7 08:21:40 CST 2006


I am not sure about that. I also thought about the same and deleted the file
in scripts once. But once I import the module in twisted the compiled module
gets created.

Hey thank you, just  noticed that there was file named twisted I created
before installing the framework. Python was trying to compile that instead
of the framework. Now I deleted it and it is working fine. Sorry mistake on
my side must have looked better.

Thank you :-)

Regards,
Sai


On 12/7/06, Christopher Armstrong <radix at twistedmatrix.com> wrote:
>
> On 12/7/06, PAPPU Sai Venkatakrishnan <saidesertrose2004 at gmail.com> wrote:
> > Hi,
> > I am newly learning twisted use it in my development projects. I
> installed
> > twisted in my machine imported the reactor from twisted.internet.
> >
> > But I got an error stating internet.protocol is not present.
> >
> > Traceback (most recent call last):
> >   File "<pyshell#2>", line 1, in -toplevel-
> >     from twisted.internet import reactor
> >   File "C:\Python24\Scripts\twisted.py", line 1, in
> > -toplevel-
> >     from twisted.internet.protocol import protocol
> > ImportError: No module named internet.protocol
>
> The file "C:\Python24\Scripts\twisted.py" shouldn't be there. What is
> it? Python is mistaking it for the "twisted" package.
>
> --
> Christopher Armstrong
> International Man of Twistery
> http://radix.twistedmatrix.com/
> http://twistedmatrix.com/
> http://canonical.com/
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20061207/1943557f/attachment.htm


More information about the Twisted-web mailing list