ZPyGreSQLDA can't find _pg ; community-membership product?
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
On Sat, 22 Jan 2000, Ert Dredge wrote:
Total newbie question here. First time using Zope or Python.
Welcome!
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.
There is the directory src inside ZPygreSQL DA. Go there and read instructions on how to build and install... Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Hiya. At 6:32 AM -0800 1/22/00, Oleg Broytmann wrote:
There is the directory src inside ZPygreSQL DA. Go there and read instructions on how to build and install...
Ah, I did try that, but I could never get the make to work, which is why I resorted to the RPM. That was the right pointer, though - thanks! I forgot to copy _pg.so to the ZPyGreSQL product directory. (That *does* seem a little counter-intuitive to me, though. Shouldn't Zope be able to find all of pythons' libraries?) Which brings me to my second question about a community-membership product. I'm looking at both GenericUserFolder and zGold + UserDb. My concern is that the access method for these two involves basic HTTP authentication and going into the "manage" system on Zope. I'm hoping to just have a little login/password form and cookies to figure out if someone is logged in, and leave them as a guest otherwise. Is this doable with the standard acl setup? - Ert / still investigating...
On Sat, 22 Jan 2000, Ert Dredge wrote:
That was the right pointer, though - thanks! I forgot to copy _pg.so to the ZPyGreSQL product directory. (That *does* seem a little counter-intuitive to me, though. Shouldn't Zope be able to find all of pythons' libraries?)
No, it shouldn't. Loading shared libraries is Operating System's job.
Which brings me to my second question about a community-membership product. I'm looking at both GenericUserFolder and zGold + UserDb. My concern is that the access method for these two involves basic HTTP authentication and going into the "manage" system on Zope. I'm hoping to just have a little login/password form and cookies to figure out if someone is logged in, and leave them as a guest otherwise. Is this doable with the standard acl setup?
UserDB can use cookies. GUF can be set up, but I think it is harder job. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Ert Dredge -
Oleg Broytmann