[Zope-DB] Database Adapter issue
Mon, 19 Aug 2002 23:02:38 -0700
Hmm..Yep your probably right. I did install python on the system.
I uninstalled the adapter and reinstalled..Odd..
Here's the error now.. It's a bit different.
Undefined symbol "PyType_IsSubtype"
Wow.. I wonder how I manage to keep doing these silly things to myself :)
output of which python is /usr/local/bin. I am guessing that is the system
installed version. Where is the actuall python install that comes with Zope
From: Tom Dossis [mailto:firstname.lastname@example.org]
Sent: Monday, August 19, 2002 10:45 PM
Subject: Re: [Zope-DB] Database Adapter issue
> Thanks Tom,
> I have the module installed and it is located in Zope/lib/python
> That should work right ?
> Also, I can fire up python from my home directory, and type import psycopg
> and hit enter. I recieve no error so I am assuming that is finding it.
> Does this sound right ?
That's good. Are you and Zope running the same python? Zope comes with
it's own python installation and maybe your system has it's own?
>>Traceback (most recent call last):
>> File "/usr/local/www/Zope/lib/python/OFS/Application.py", line 531, in
>> product=__import__(pname, global_dict, global_dict, silly)
>> File "/usr/local/www/Zope/lib/python/Products/ZPsycopgDA/__init__.py",
>>line 92, in ?
>> import DA
>> File "/usr/local/www/Zope/lib/python/Products/ZPsycopgDA/DA.py", line
>> from db import DB
>> File "/usr/local/www/Zope/lib/python/Products/ZPsycopgDA/db.py", line
>> import psycopg
>>ImportError: No module named psycopg
> Have you installed the underlying python2.1-psycopg package/module?
> If so where? Looks like it's not in your Zope python path..
> From with the python interpreter the following command needs to work
> without error:
> import psycopg
> I use Postgres 7.1 to store faxes encoded in base64 which are >>2K
> (though I use the ZPoPyDA adaptor).
> The type 'TEXT' - provides for unlimited number of characters. A good
> online book can be found at:
> Zope-DB mailing list