[Zope-DB] Database Adapter issue
Tom Dossis
td@yoma.com.au
Tue, 20 Aug 2002 15:44:48 +1000
Ken wrote:
> 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?
>
>
> Ken
>
>
>
>
>>Traceback (most recent call last):
>> File "/usr/local/www/Zope/lib/python/OFS/Application.py", line 531, in
>>import_product
>> 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
>
> 91,
>
>>in ?
>> from db import DB
>> File "/usr/local/www/Zope/lib/python/Products/ZPsycopgDA/db.py", line
>
> 99,
>
>>in ?
>> 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:
>
> http://www.ca.postgresql.org/docs/aw_pgsql_book/index.html
>
>
> Regards
> -Tom
>
>
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB@zope.org
> http://lists.zope.org/mailman/listinfo/zope-db
>