On Wed, Nov 10, 2010 at 4:38 PM, Amaury Rodriguez <amaury.rodrig...@gmail.com> wrote: > Thanks Fabio. That got me through the first error, now I get: > > Traceback (most recent call last): > File "C:\Program > Files\eclipse\plugins\org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py", > line 1145, in <module> > debugger.run(setup['file'], None, None) > File "C:\Program > Files\eclipse\plugins\org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py", > line 945, in run > exec(compile(contents+"\n", file, 'exec'), globals, locals) #execute the > script > File "C:\workspace\split_rename\src\GetFromSFTP.py", line 9, in <module> > import SFTPClient > File "C:\workspace\split_rename\src\SFTPClient.py", line 7, in <module> > import paramiko > File "C:\Python27\Lib\site-packages\paramiko\__init__.py", line 69, in > <module> > from transport import randpool, SecurityOptions, Transport > File "C:\Python27\Lib\site-packages\paramiko\transport.py", line 371 > out = '<paramiko.Transport at %s' % hex(long(id(self)) & 0xffffffffL) > ^ > > Apparently a syntax problem. I'm using Python 2.7, and I'm sure it supports > this syntax because I can successfully run my program from the command line. > I declared 2.7 grammar and interpreter in Pydev options. > The error-ing code is part of the third-party library, which I'd rather not > modify. > > Any thoughts?
Maybe you have 2 available interpreters there and had the wrong one configured in pydev? To check which interpreter is running, you can do: import sys;print(sys.executable). Cheers, Fabio ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ pydev-code mailing list pydev-code@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-code