Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

pydev and psycopg2 - weird behaviour

Question posted by: RossGK (Guest) on July 4th, 2008 07:45 PM

I've been using pydev for a short while successfully, and Django with
postgresql as well. psycopg2 is part of that behind the scenes I would
imagine, to make django work.

Now I'm trying to use psycopg2 in a non-Django program, I'm seeing some
weird behaviour

My "import psycopg2" is tagged in pyDev (eclipse) as "Unresolved Import:
psycopg2"

But when I run my code anyway, I seem to connect to the postgresql DB
okay. If I remove the import, and try it, it fails.

So it seems to use it, but thinks it's unresolved. Any idea what's
going on there?

Just to be sure it's installed right, I reinstalled with no change. I
also opened a python shell (cmd window in winXP environment) and on the
command line issued a psycopg2 connect request which succeeds as well.
So it mostly seems to be an erroneous report from pydev that it can't
resolve psycopg2 when it apparently can?

Your input appreciated...

Ross.
 
Not the answer you were looking for? Post your question . . .
189,879 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors