Python Error

Started by Daniel R. Andersonabout 23 years ago6 messagesgeneral
Jump to latest
#1Daniel R. Anderson
dan@mathjunkies.com

Hi,

I juts tried to load the python module instead of using c as a way to
program an interface with the client. I went into python and typed:

import pg

and I got:

/usr/libexec/ld.so: python: libpq-so.3.0: No such file or directory.

What am I doing wrong?

Thanks,

-Dan

#2Tamir Halperin
tamir@brobus.net
In reply to: Daniel R. Anderson (#1)
Re: Python Error

sounds like you're missing a symlink. I don't know enough to fix the problem but a symlink fixed a similar problem for me pertaining to the same file.

In my case it was because I didn't install crypto but was trying to work with pgsql and ssl.

Show quoted text

-----Original Message-----
From: Daniel R. Anderson [mailto:dan@mathjunkies.com]
Sent: Thursday, March 27, 2003 3:50 PM
To: pgsql-general
Subject: [GENERAL] Python Error

Hi,

I juts tried to load the python module instead of using c as a way to
program an interface with the client. I went into python and typed:

import pg

and I got:

/usr/libexec/ld.so: python: libpq-so.3.0: No such file or directory.

What am I doing wrong?

Thanks,

-Dan

---------------------------(end of
broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

#3Jeff Davis
pgsql@j-davis.com
In reply to: Tamir Halperin (#2)
Re: Python Error

On Thursday 27 March 2003 01:06 pm, Tamir Halperin wrote:

sounds like you're missing a symlink. I don't know enough to fix the
problem but a symlink fixed a similar problem for me pertaining to the same
file.

In my case it was because I didn't install crypto but was trying to work
with pgsql and ssl.

It's also possible that you don't have the postgresql development package
installed, although normally you couldn't build or install PyGreSQL without
those development libraries.

Regards,
Jeff

#4Daniel R. Anderson
dan@mathjunkies.com
In reply to: Tamir Halperin (#2)
Re: Python Error

Can you be more specific about the "postgresql development package"?
Just to make sure I got everything I downloaded postgresql, base, opts,
test, docs, and whatever else was in the ftp dir. Do I need to do a
seperate ./configure && make?

Thanks,

-Dan

Jeff Davis wrote:

Show quoted text

On Thursday 27 March 2003 01:06 pm, Tamir Halperin wrote:

sounds like you're missing a symlink. I don't know enough to fix the
problem but a symlink fixed a similar problem for me pertaining to the same
file.

In my case it was because I didn't install crypto but was trying to work
with pgsql and ssl.

It's also possible that you don't have the postgresql development package
installed, although normally you couldn't build or install PyGreSQL without
those development libraries.

Regards,
Jeff

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

#5Martijn van Oosterhout
kleptog@svana.org
In reply to: Daniel R. Anderson (#1)
Re: Python Error

On Thu, Mar 27, 2003 at 03:49:34PM -0500, Daniel R. Anderson wrote:

Hi,

I juts tried to load the python module instead of using c as a way to
program an interface with the client. I went into python and typed:

import pg

and I got:

/usr/libexec/ld.so: python: libpq-so.3.0: No such file or directory.

Do you have that file or anything like it? I have libpq.so.2.0. Note that if
you only have libpq.so you may need to run ldconfig (on linux anyway) to get
the symlinks created. If it's still not there, you probably don't have the
library at all.

--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/

Show quoted text

"the West won the world not by the superiority of its ideas or values or
religion but rather by its superiority in applying organized violence.
Westerners often forget this fact, non-Westerners never do."
- Samuel P. Huntington

#6Jeff Davis
pgsql@j-davis.com
In reply to: Daniel R. Anderson (#4)
Re: Python Error

On Thursday 27 March 2003 02:09 pm, Daniel R. Anderson wrote:

Can you be more specific about the "postgresql development package"?
Just to make sure I got everything I downloaded postgresql, base, opts,
test, docs, and whatever else was in the ftp dir. Do I need to do a
seperate ./configure && make?

I just noticed something form your original email:
your computer is looking for the filename: libpq-so.3.0
my computer has the filename: libpq.so.3.0

Something is definately wrong there. Could you list the version numbers of
postgresql and python that you're using?

Regards,
Jeff Davis