[mod_python] Problems using Postgres 7.1 from mod_python

Jørgen Frøjk Kjærsgaard jfk at informaticon.dk
Wed Aug 22 15:02:21 EST 2001


Tirsdag 21. August 2001 10:40 skrev Bo Lorentsen:
> Jørgen Frøjk Kjærsgaard wrote:
> > I'm having problems using a Postgres 7.1 database under FreeBSD 4.3 [...]
>
> Are your sure you dont mix two differant postgres libs [...]

PyGreSQL 3.1 doesn't seem to work on FreeBSD with Python 2.1.1 at all. I got 
one step closer to a solutioin by upgrading to PyGreSQL 3.2. I still get an 
error when importing, though:

[Wed Aug 22 14:58:28 2001] [error] PythonHandler mod_python.publisher:   File 
"/usr/local/lib/python2.1/site-packages/mx/DateTime/__init__.py", line 40, in 
? class modinit:
[Wed Aug 22 14:58:28 2001] [error] PythonHandler mod_python.publisher:   File 
"/usr/local/lib/python2.1/site-packages/mx/DateTime/__init__.py", line 50, in 
modinit_DT)
[Wed Aug 22 14:58:28 2001] [error] PythonHandler mod_python.publisher:   File 
"/usr/local/lib/python2.1/copy_reg.py", line 16, in pickle raise 
TypeError("copy_reg is not intended for use with classes")
[Wed Aug 22 14:58:28 2001] [error] PythonHandler mod_python.publisher: 
TypeError: copy_reg is not intended for use with classes

This error doesn't occur when using PyGreSQL without mod_python. I only have 
one version of everything installed, so it's not because a wrong version of 
something is accessed from mod_python.

regards,

Jørgen Frøjk Kjærsgaard, Systemkonsulent (Systems Consultant)
Informaticon ApS * Web: www.informaticon.dk * Tlf: +45 8672 0093
Internet programmering * Systemudvikling på Linux, FreeBSD og PalmOS



More information about the Mod_python mailing list