[Zope-DB] Database Adapter issue
Tom Dossis
td@yoma.com.au
Tue, 20 Aug 2002 16:38:09 +1000
Tom Dossis wrote:
> Ken wrote:
>
>> 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.
>>
>>
>> ImportError:
>> /usr/local/www/Zope/lib/python/Products/ZPsycopgDA/psycopgmodule.so:
>> 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
>> ?
>
>
> It all depends on your zope startup script... it could be anything like..
> $INST_HOME/bin/python
> or
> /usr/bin/python
> or
> python
> or..
>
> If you're running Zope's python ($INST_HOME/bin/python), then your
> psycopg module should be installed somewhere like
> $INST_HOME/lib/python2.1/site-packages
>
> If your system python version is OK (2.1.3?) with zope 2.5.1 then you
> can start zope with /usr/local/bin/python and it should pickup the
> psycopg module in its site-packages.
>
> Also keep in mind - I know nothing about psycopg...
>
> -Tom
PS: You could try a symlink across the python site-packages for psycopg