Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » eclipse + pydev (python) on ubuntu 10.4(err: "undefined variable from import" - PATH/dependencies problem?)
eclipse + pydev (python) on ubuntu 10.4 [message #551619] Sun, 08 August 2010 07:47 Go to next message
Oren  is currently offline Oren Friend
Messages: 1
Registered: August 2010
Junior Member
I'm not sure if that's the right place for this type of question but I couldn't find an answer anywhere else...

I'm working with python in eclipse. Usually there are no problems and everything works ok even with external modules. However, using the cx_Oracle module (it's an API that connects to Oracle DB) - the editor presents an error "undefined variable from import". This error is presented for statements that call methods from the module. Strangely, the import line seems OK with no error (typically, i i import some non-existent module i see a "unresolved import" err.

The script runs perfectly from the command line so it's not a general python/module/path issue.

It seems to me that it is some problem with the Eclipse configuration but I can't seem to find the problem (as said, no problems with other python scripts via eclipse).

Any ideas where/what to look for? what setting might be missing/clashing?

Thanks!




Re: eclipse + pydev (python) on ubuntu 10.4 [message #783454 is a reply to message #551619] Wed, 25 January 2012 18:43 Go to previous message
Rob Jamison is currently offline Rob JamisonFriend
Messages: 1
Registered: January 2012
Junior Member
I confirmed your issue with "Unresolved import: defaultdict" -- PyDev Problem
when calling:
import cx_Oracle as cx
Additionally, each time a cx.method is called in my program I get:
Undefined variable from import: makedsn -- PyDev Problem


env:
Python 2.7.2
Eclipse Platform 3.7.0.I20110613-1736
PyDev for Eclipse 2.2.4.2011110216
Linux 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linu (11.10)
Previous Topic:JBoss Enterprise Applications
Next Topic:ECLIPSE = JAVA+WEB+SENCHA.TOUCH ???
Goto Forum:
  


Current Time: Fri Apr 19 20:34:41 GMT 2024

Powered by FUDForum. Page generated in 0.07957 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top