[Zope-DB] Trying to install psycopg

Russell Hires rhires@earthlink.net
Wed, 17 Oct 2001 23:05:20 -0400


I think anything that deals with the mxDateTime and the [Psycopg/PyGreSQL]DA 
is becoming a FAQ! I solved the PyGreSQLDA problem by putting the 
mxDateTime.h and mxh.h files into /usr/include and compiled away. Everything 
worked fine after that. I mentioned to the author of the PyGreSQLDA that he 
make a change to include these with his source, but nothing came of it. I'm 
hoping the solution I propose for one will work with the other. Try to make 
sure that you've got these two files included somewhere in your compile. (?) 

Russell

On Wednesday 17 October 2001 14:26, you wrote:
> Hi all,
>
> Hopefully this isn't a FAQ, please point me in the right direction if it
> is.  I'm not very familiar with Python, so please bear with me.  I've
> installed psycopg from psycopg-0.99.7.tar.gz which I obtained from
> http://initd.org/Software/psycopg.  The build went fine, but when I go
> into the control panel in zope, I get a broken package.  Here's the
> relevant output:
>
> Traceback (most recent call last):
>   File "/usr/share/zope/lib/python/OFS/Application.py", line 558, in
> import_product
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "/usr/share/zope/lib/python/Products/ZPsycopgDA/__init__.py",
> line 92, in ?
>     import DA
>   File "/usr/share/zope/lib/python/Products/ZPsycopgDA/DA.py", line 91,
> in ?
>     from db import DB
>   File "/usr/share/zope/lib/python/Products/ZPsycopgDA/db.py", line 98,
> in ?
>     import psycopg
> AttributeError: 'DateTime' module has no attribute 'mxDateTimeAPI'
>
> Seems DateTime module has no attribute mxDateTimeAPI.  Does anyone have
> a clue what I've done wrong?  Here are some versions of software
> installed:
>
> Zope Version  (Zope 2.4.1 (source release, python 2.1, linux2), python
> 2.1.1, linux2)
>
> Python Version  2.1.1 (#1, Aug 28 2001, 19:51:39) [GCC 2.96 20000731
> (Red Hat Linux 7.1 2.96-85)]
>
> System Platform  linux2
>
> I also installed the mx from egenix from this:
>
> egenix-mx-base-2.0.2-py2.1_1.i386.rpm
>
> Any ideas?  Thanks in advance!
>
> Cheers,
> Craig
> --
> Craig L. Ching
> Chief Product Architect
> IBM Certified Specialist, MQSeries
> IBM Certified Developer, MQSeries
> MQSoftware, Inc.
> (763) 546-9080
> www.mqsoftware.com
>
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB@zope.org
> http://lists.zope.org/mailman/listinfo/zope-db