From: bob a. <rd...@pa...> - 2002-05-27 21:23:41
|
On Monday, May 27, 2002, at 11:54 AM, Gerhard H=E4ring wrote: > * bob ackerman <rd...@pa...> [2002-05-25 20:47 -0700]: >> on openbsd 3.x (how do i find out?) > > Perhaps: uname -a OpenBSD shopip 3.1 GENERIC#59 i386 >> postgresql 7.1.3 >> python 2.2 >> pyPgSQL 2.0 >> >> i installed it, but when i did 'from pyPgSQL import libpq' >> python says 'No module libpq'. >> i can import pyPgSQL and i see libpq in its directory ok. > > So pyPgSQL works but you cannot import libpq on its own? yes, i could do 'from pyPgSQL import PgSQL'. it is just libpqmodule.so that couldn't be found. > >> i got around this by copying libpqmodule.so from there to = /usr/local/lib >> where my other libpq thingies are and i can now import libpq. > > Even more strange is that this works, as I don't think that > /usr/local/lib is in sys.path. you're right. it is not in sys.path. > > Could you please post the output of "from pyPgSQL import libpq" in an > interactive interpreter session when you start Python with "python = -v"? > You can use the "script" command for that if you like. well. that's interesting. i got: import pyPgSQL.libpq.libpq # dynamically loaded from=20 /usr/local/lib/python2.2/site-packages/pyPgSQL/libpq/libpqmodule.so so i took it out of /usr/local/lib and of course it still works. so what the heck. i looks like it was good as is. i don't know why it = didn' t find the module yesterday. so it's: 'never mind' and thanks. > Gerhard > -- > mail: gerhard <at> bigfoot <dot> de registered Linux user = #64239 > web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id = AD24C930 > public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 = C930 > reduce(lambda x,y:x+y,map(lambda=20 > x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b'))) > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Pypgsql-users mailing list > Pyp...@li... > https://lists.sourceforge.net/lists/listinfo/pypgsql-users > |