Re: [Pydev-code] Pydev and paramiko
Brought to you by:
fabioz
From: Amaury R. <ama...@gm...> - 2010-11-10 18:39:18
|
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? On Wed, Nov 10, 2010 at 12:28 PM, Fabio Zadrozny <fa...@gm...> wrote: > > In this case, you shouldn't add the directories Crypto and paramiko to > the pythonpath if you're going to import them (you should only have > C:\Python27\Lib\site-packages\ in the pythonpath in this case). > > Cheers, > > Fabio > > On Wed, Nov 10, 2010 at 2:59 PM, Amaury Rodriguez > <ama...@gm...> wrote: > > Hi, > > > > I installed paramiko and PyCrypto on my local python (Windows) and I'm able > > to use the libraries from the command line and the interpreter. > > How do I get Pydev to see these libraries? I tried adding the paths in > > Properties->PyDev PYTHONPATH->External Libraries, but the installation paths > > are: > > > > C:\Python27\Lib\site-packages\Crypto > > C:\Python27\Lib\site-packages\paramiko > > > > and neither has a module named after the library, like "paramiko.py", so I > > get an error in Eclipse saying "ImportError: No module named paramiko" > > > > Is there anyone who has experience with this? > > > > > > ------------------------------------------------------------------------------ > > 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 > > pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > ------------------------------------------------------------------------------ > 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 > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |