I've now reinstalled this machine here at work, clean eclipse 3.2.1 fresh
downloaded from their site, plus 1.2.6 fresh off the pydev site... No
auto-completion still as well as marking incorrect syntax highlights..

############################################################################
from twisted.internet import reactor, protocol

class QuickDisconnectProtocol(protocol.Protocol):
   def connectionMade(self):
       print "Connected to %s" % self.transport.getPeer().host
       self.transport.loseConnection()

class BasicClientFactory(protocol.ClientFactory):
   protocol = QuickDisconnectProtocol

   def clientConnectionLost(self, connector, reason):
       print "Lost Connection %s" % reason.getErrorMessage()
       reactor.stop()

   def clientConnectionFailed(self, connector, reason):
       print "Connection failed %s" % reason.getErrorMessage()
       reactor.stop ()

reactor.connectTCP('www.google.com', 80, BasicClientFactory())
reactor.run()
#############################################################################

still gives me 6 errors using the above test script.
I've got /site-packages and /site-packages/twisted just like at home (where
it works now) and I've got 'twisted' added as a forced built-in. Any
suggestions?



On 2/10/07, Chris Hengge <[EMAIL PROTECTED]> wrote:

OK, well, the automatic thing that sets up System PYTHONPATH already has
c:\python24\Lib\site-packages, it always gets that automatically when I add
the interpreter. The poster before mine that I replied to said he added
twisted and thats why I was getting clarification. I've also tried adding
the word 'twisted' to the forced builtin libs. No success on the work
machine, but it works great here at home! Thanks so much! (I think my work
machine needs to be updated, but eclipse can't update through the proxy so I
have to bring the machine home for that.

On 2/10/07, Fabio Zadrozny <[EMAIL PROTECTED]> wrote:

>
>
> On 2/9/07, Chris Hengge < [EMAIL PROTECTED]> wrote:
> >
> > Could you be a little more specific to how you got it working?
> > I've got:
> > C:\Python24\Lib\site-packages\twisted
>
>
> Actually, that's not correct... you should have only
> C:\Python24\Lib\site-packages in the system pythonpath (twisted is already
> the module to be imported... so, the folder above is the one that must be in
> the pythonpath).
>
> >
>
> > under System PYTHONPATH
> >
> > and 'twisted' is now listed for the forced built-in
> >
> > Do I have to 'twisted\internet' to get reactor working? That could
> > take ALOT of work for all the modules =P
> >
> > There is ALOT more auto-completing now, but I still can't get it to
> > recognized reactor.run()
>
>
> I got it working here after adding 'twisted' to the forced builtins (
> reactor.run is there)... but I also did some changes in the cvs
> regarding code-completion, so, it may be because of those changes (as I
> don't have 1.2.6 here to test I'm not sure about it).
>
> Cheers,
>
> Fabio
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pydev-users
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to