problem getting started with pyDB2

J

jimburton

Hi, I'm using python 2.4, DB2 8.1 (with development libraries) on
ubuntu linux 5.10. I installed PyDB2 1.1 but when I try to connect to
any database I've got this:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/DB2.py", line 271, in __init__
self._db = _db2.connect(*args, **kwargs)
_db2.DatabaseError: ('I', -1, 'Invalid Handle')
After installing pydb2 I got errors about the missing file libdb2.so.1
so I copied this file from /opt/IBM/db2/V8.1/lib into /usr/lib - am I
now missing other libs? If so how do I let python know about the db2
libs?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top