From: Jon T. <jon...@gm...> - 2008-02-14 08:14:53
|
I'm assuming it built successfully and that it fails on runtime. Is it possible that you're not running as the db2 instance user? Try running db2 commands from db2cmd window as the user that's trying to run the DB2 tests. If you cannot, that's a strong indicator :-) If that is the case - or possibly even if it isn't - try running <DB2_root_dir>/sqllib/db2profile and see if that fixes the problem. Jon PS: sorry about the double post sclim :-) On Wed, Feb 13, 2008 at 9:53 AM, <sc...@at...> wrote: > > > > Hi, > I have just installed PyDB2 by modifying the script setup.py. > 1. Add DB2_ROOT = "/opt/ibm/db2/V9.1" > 2. library_dirs=[dir_root_dir+'lib32'], > > But testing test_basic.py, receive the following error: > > Traceback (most recent call last): > File "test_basic.py", line 2, in ? > import DB2 > File "/usr/lib/python2.3/site-packages/DB2.py", line 10, in ? > import _db2 > ImportError: libdb2.so.1: cannot open shared object file: No such file or > directory > > > LIM SIN-CHEE > sc...@at... > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > PyDB2-discuss mailing list > PyD...@li... > https://lists.sourceforge.net/lists/listinfo/pydb2-discuss > > |