From michael@daclubhouse.net Thu Apr 24 07:16:00 2003 From: michael@daclubhouse.net (Michael Fair) Date: Wed, 23 Apr 2003 23:16:00 -0700 Subject: [Zope-Perl] Standalone ZODB for Perl outside of Zope Message-ID: Hi all, I was wondering if there was any project to allow the embedding of the ZODB inside a Perl application? >From my research on OO persistence, there is currently nothing in the Perl world that has anything comparable to the ZODB for storing and retrieving objects. If I'm wrong about that, I would love to know what else is out there. Thanks, -- Michael -- From patrick@bigair.net.au Mon Apr 28 06:44:36 2003 From: patrick@bigair.net.au (Patrick Choi) Date: Mon, 28 Apr 2003 15:44:36 +1000 Subject: [Zope-Perl] installing Zope-Perl On Debian Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0311_01C30D9D.124C1B30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable All, I have tried installing zope-perl on Debian following ajlouie=92s how-to published on zope website but with no success. When I restart zope both PerlMetohd and PerlExternalMethod are broken with the following error messages. Import Traceback Traceback (most recent call last): File "/usr/lib/zope/lib/python/OFS/Application.py", line 541, in import_product product=3D__import__(pname, global_dict, global_dict, silly) File "/usr/lib/zope/lib/python/Products/PerlExternalMethod/__init__.py"= , line 14, in ? import perl ImportError: No module named perl Import Traceback Traceback (most recent call last): File "/usr/lib/zope/lib/python/OFS/Application.py", line 541, in import_product product=3D__import__(pname, global_dict, global_dict, silly) File "/usr/lib/zope/lib/python/Products/PerlMethod/__init__.py", line 1= 7, in ? import perl ImportError: No module named perl ZDBI_DA seems to be working=85 Does anyone have any ideas on fixing this? Regards, Patrick Choi BigAir Australia ------=_NextPart_000_0311_01C30D9D.124C1B30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

All,

 

I have tried installing zope-perl on Debian following = ajlouie’s how-to published on zope website but with no success.  When I restart zope both PerlMetohd and PerlExternalMethod are = broken with the following error messages.

 

Import Traceback<= /b>

Traceback (most recent call =
last):<=
/pre>
  File =
"/usr/lib/zope/lib/python/OFS/Application.py", line 541, in =
import_product<=
/pre>
    =
product=3D__import__(pname, global_dict, global_dict, =
silly)<=
/pre>
  File =
"/usr/lib/zope/lib/python/Products/PerlExternalMethod/__init__.py&qu=
ot;, line 14, in ?<=
/pre>
    =
import perl<=
/pre>
ImportError: No module named perl<=
/pre>

 

Import Traceback<= /b>

Traceback (most recent call =
last):<=
/pre>
  File =
"/usr/lib/zope/lib/python/OFS/Application.py", line 541, in =
import_product<=
/pre>
    =
product=3D__import__(pname, global_dict, global_dict, =
silly)<=
/pre>
  File =
"/usr/lib/zope/lib/python/Products/PerlMethod/__init__.py", =
line 17, in ?<=
/pre>
    =
import perl<=
/pre>
ImportError: No module named perl<=
/pre>

 

ZDBI_DA seems to be working… Does anyone have any ideas on = fixing this?

 

Regards,

 

Patrick Choi

BigAir Australia

 

 <= /p>

------=_NextPart_000_0311_01C30D9D.124C1B30-- From jeremy@zope.com Mon Apr 28 17:16:11 2003 From: jeremy@zope.com (Jeremy Hylton) Date: 28 Apr 2003 12:16:11 -0400 Subject: [Zope-Perl] Re: Standalone ZODB for Perl outside of Zope Message-ID: <1051546571.16926.23.camel@slothrop.zope.com> > I was wondering if there was any project > to allow the embedding of the ZODB inside > a Perl application? I'm not aware of any such project. I expect a port of ZODB to Perl is a non-trivial project. The two biggest steps, I think, would be: - something like pickle to serialize objects - hooks to catch access to objects so that you can detect modifications and load objects on demand Is this something you're interested in doing? Or just something you wish someone would do ? > From my research on OO persistence, there is > currently nothing in the Perl world that has > anything comparable to the ZODB for storing > and retrieving objects. What are the best exsting solutions in the Perl world? Jeremy From michael@daclubhouse.net Mon Apr 28 19:10:28 2003 From: michael@daclubhouse.net (Michael Fair) Date: Mon, 28 Apr 2003 11:10:28 -0700 Subject: [Zope-Perl] Re: Standalone ZODB for Perl outside of Zope References: <1051546571.16926.23.camel@slothrop.zope.com> Message-ID: <000001c30db1$7dcf0e80$d1d07b43@cocacola> > > I was wondering if there was any project > > to allow the embedding of the ZODB inside > > a Perl application? > > I'm not aware of any such project. > > I expect a port of ZODB to Perl is a non-trivial project. The two > biggest steps, I think, would be: > > - something like pickle to serialize objects > - hooks to catch access to objects so that you can detect > modifications and load objects on demand > > Is this something you're interested in doing? Or just something you > wish someone would do ? Given my overall lack of Perl Zen it's not something I would be feel remotely comfortable leading a project on. So I guess that puts me in the "wish someone had done" category. However, as my skills improve it's something that I might be willing to take on - it's a highly interesting project - especially if you take on the replicated multimaster version of it. There's a toolkit called Spread that is designed to make these kinds of group communications as efficient as possible while still making gaurantees about message delivery that I would probably use. > > From my research on OO persistence, there is > > currently nothing in the Perl world that has > > anything comparable to the ZODB for storing > > and retrieving objects. > > What are the best exsting solutions in the Perl world? Class DBI, Alzabo, and MLDBM(MLDBM::O) are the ones that climb to the top of the stack, but none of them are anywhere near the caliber of the ZODB. I admit my search could not have been exhaustive, and there may have been projects that just didn't describe themselves using the keywords I was looking for (object persistence storage)... I hope that helps. -- Michael -- From jeremy@zope.com Mon Apr 28 19:49:29 2003 From: jeremy@zope.com (Jeremy Hylton) Date: 28 Apr 2003 14:49:29 -0400 Subject: [Zope-Perl] Re: Standalone ZODB for Perl outside of Zope In-Reply-To: <000001c30db1$7dcf0e80$d1d07b43@cocacola> References: <1051546571.16926.23.camel@slothrop.zope.com> <000001c30db1$7dcf0e80$d1d07b43@cocacola> Message-ID: <1051555769.17289.117.camel@slothrop.zope.com> On Mon, 2003-04-28 at 14:10, Michael Fair wrote: > > > I was wondering if there was any project > > > to allow the embedding of the ZODB inside > > > a Perl application? > > > > I'm not aware of any such project. > > > > I expect a port of ZODB to Perl is a non-trivial project. The two > > biggest steps, I think, would be: > > > > - something like pickle to serialize objects > > - hooks to catch access to objects so that you can detect > > modifications and load objects on demand > > > > Is this something you're interested in doing? Or just something you > > wish someone would do ? > > Given my overall lack of Perl Zen it's not something I > would be feel remotely comfortable leading a project on. There's still time to switch! You can start working on your Python Zen and actually use ZODB <0.2 wink>. > So I guess that puts me in the "wish someone had done" > category. However, as my skills improve it's something > that I might be willing to take on - it's a highly > interesting project - especially if you take on the > replicated multimaster version of it. There's a toolkit > called Spread that is designed to make these kinds of > group communications as efficient as possible while still > making gaurantees about message delivery that I would > probably use. I'm well aware of Spread, c.f. http://www.python.org/other/spread/. We use it for our Zope Replicated Storage product. Note that Spread would be useful for only a small piece of the ZODB problem -- a database involving multiple networked clients. The hard problems I mentioned above still need to get solved in the single process model. Jeremy From michael@daclubhouse.net Mon Apr 28 20:15:04 2003 From: michael@daclubhouse.net (Michael Fair) Date: Mon, 28 Apr 2003 12:15:04 -0700 Subject: [Zope-Perl] Re: Standalone ZODB for Perl outside of Zope References: <1051546571.16926.23.camel@slothrop.zope.com> <000001c30db1$7dcf0e80$d1d07b43@cocacola> <1051555769.17289.117.camel@slothrop.zope.com> Message-ID: > There's still time to switch! You can start working on your Python Zen > and actually use ZODB <0.2 wink>. I actually tried to get the whole project to move to Zope, but the "complete rewrite" idea got shot down pretty quickly. It's a Perl/CGI application and looks like it's going to stay that way for a while longer. > > There's a toolkit > > called Spread that is designed to make these kinds of > > group communications as efficient as possible while still > > making gaurantees about message delivery that I would > > probably use. > > I'm well aware of Spread, c.f. http://www.python.org/other/spread/. > We use it for our Zope Replicated Storage product. > > Note that Spread would be useful for only a small piece of the ZODB > problem -- a database involving multiple networked clients. The hard > problems I mentioned above still need to get solved in the single > process model. Ok - I haven't done it yet, so I'll trust you. :) I assumed that the Spread Toolkit was really just going to handle getting messages pssed around - nothing more - nothing less. I'd also need to read up on their "virtual synchrony" techniques to ensure that a process can determine which messages have been received and which haven't. One thing I hadn't done, but probably could is use the WebDAV mount client and just have Perl use the standard filesystem... I'd of course need to do more research... But at that point I'd probably just be using some distributed file system like CODA, NFSv4, CIFS, or Intermezzo. As you can tell, I've got a lot of learning to do. -- Michael --