[Zope] ZPyGreSQLDA can't find _pg ; community-membership product?

Ert Dredge ert@atheist.com
Sat, 22 Jan 2000 00:18:10 -0800


Hiya.

Total newbie question here.  First time using Zope or Python.

I currently have a relatively standard community portal site written in
perl with a PostgreSQL datastore that I'm toying with porting over to Zope.
It's pretty much (1) users can register and (2) users can post profiles of
themselves for others to see.  Nothing too fancy, and I was hoping there
would be a relatively canned out-of-the-box implementation of such a beast
that I could poke at and see how it ticks.

So the first thing I did was try to get the postgres DA product working
since I knew I would have to use my data in my database, or at least suck
it out once.  But I'm running into trouble.  When I go to the product list
in the control panel, ZPyGreSQLDA is described as broken, with the complaint

  ZPyGreSQLDA Import Traceback

      File ".../Products/ZPyGreSQLDA/db.py", line 89, in ?
      import _pg, regex, sys, types
  ImportError: No module named _pg

However, if I just start up the python interpreter and execute "import _pg"
it returns without incident.  I installed the pygresql RPM and can see
_pg.so and pg.sy in the site-packages directory, and even symlinked them up
a directory to see if that would help.

Any thoughts?  I figure I'm just missing something obvious.


Second, does anyone have pointers about how to start diving into building a
little community site?  With an SQL DB in back?  I've been going around the
documentation for hours and haven't found anything conclusive, plus I'm
still pretty hazy on the way it appears zope.org uses zope's built-in user
management for membership registration...

Thanks!
- Ert