Having been two days with this problem, I solved it in less than an
hour since my previous post...

In my computer this problem was resolved doing this:
$ cd /usr/lib/python3.2/lib-dynload/
$ ln -s _sqlite3.cpython-32mu.so _sqlite3.so #as superuser or sudo'ed

Another way: (seems a workaround to me, but not sure)
adding _sqlite3 to the forced built-in list.

Thanks, and I hope it's useful for somebody.

On Fri, Jul 29, 2011 at 23:57, Alex Barcelo <alex.barc...@gmail.com> wrote:
> Hello, it was a while since I last used PyDev and now I see that it's
> so much better!
>
> I was checking some already working code I had and have a problem with
> sqlite3. I'm on a Ubuntu 11.04 and python3.2. Running Eclipse 3.5.2
> with PyDev 2.2.1
>
> PyDev says "Undefined variable from import: connect" when I do a
> harmless sqlite3.connect
> The program works fine, simply that messages appear there and it's
> very annoying (provided that it's an *Error*, not a warning...)
>
> If I use the same code for python2.7 then PyDev do not complain. Works
> fine in both versions.
>
> The path and folders are the same in both Python configurations (some
> /usr/lib/python* and some /usr/local/lib/python*).
>
> Somebody has the same problem? I haven't tried it in other systems or
> python/eclipse configurations (yet).
>

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to