[Zope-DB] Database Adapter issue
Ken
ken@digitalcomplications.com
Mon, 19 Aug 2002 22:11:45 -0700
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 ?
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