<p>Hi Ross,</p><p>Usually that happens when some module contains too much runtime information and the static analysis cannot get it... You can probably fix that by adding 'psycopg2' to the list of builtin modules... See <a href="http://fabioz.com/pydev/manual_101_interpreter.html">http://fabioz.com/pydev/manual_101_interpreter.html</a> for information on how to configure that (look for forced builtins).<br>
</p><p>Cheers,</p><p>Fabio</p><br><div><span class="gmail_quote">On 7/4/08, <b class="gmail_sendername">RossGK</b> <Ross@nomail.spam.thanks> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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.<br>
<br>
Now I'm trying to use psycopg2 in a non-Django program, I'm seeing some weird behaviour<br>
<br>
My "import psycopg2" is tagged in pyDev (eclipse) as "Unresolved Import: psycopg2"<br>
<br>
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.<br>
<br>
So it seems to use it, but thinks it's unresolved. Any idea what's going on there?<br>
<br>
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?<br>
<br>
Your input appreciated...<br>
<br>
Ross.<br><span class="sg">
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.python.org/mailman/listinfo/python-list</a><br>
</span></blockquote></div><br>