[Zope-Perl] still struggling with Zope-Perl on Solaris Sparc

Harry Danilevsky hdanilevsky@siichi.com
Fri, 18 Aug 2000 17:36:40 -0500


OK, I built python+perl, and the tests all run fine.
I copied PerlMethod, PerlExternalMethod and ZDBI_DA
to $ZOPEROOT/lib/python/Products. Both PerlMethod and
PerlExternalMethod appear as "Broken" if I click on them,
here are the tracebacks:

PerlMethod Import Traceback

Traceback (innermost last):
  File "/opt/Zope-2.1.6-solaris-2.6-sparc/lib/python/OFS/Application.py",
line 387, in import_products
    product=__import__(pname, global_dict, global_dict, silly)
  File
"/opt/Zope-2.1.6-solaris-2.6-sparc/lib/python/Products/PerlMethod/__init__.p
y", line 69, in ?
    class PerlMethod(OFS.SimpleItem.Item, Persistent, Acquisition.Explicit,
  File
"/opt/Zope-2.1.6-solaris-2.6-sparc/lib/python/Products/PerlMethod/__init__.p
y", line 80, in PerlMethod
    manage_options=(
AttributeError: manage_options


PerlExternalMethod Import Traceback

Traceback (innermost last):
  File "/opt/Zope-2.1.6-solaris-2.6-sparc/lib/python/OFS/Application.py",
line 387, in import_products
    product=__import__(pname, global_dict, global_dict, silly)
  File
"/opt/Zope-2.1.6-solaris-2.6-sparc/lib/python/Products/PerlExternalMethod/__
init__.py", line 92, in ?
    class PerlExtMethod(OFS.SimpleItem.Item, Persistent,
Acquisition.Explicit,
  File
"/opt/Zope-2.1.6-solaris-2.6-sparc/lib/python/Products/PerlExternalMethod/__
init__.py", line 103, in PerlExtMethod
    manage_options=(
AttributeError: manage_options


With ZDBI_DA I had not much more luck either. I use Sybase,
and I set up a connection object using the string:
"sampleuser:samplepassword@dbi:Sybase:server=DVMT"

and I get "Invalid connection string" error.
Zope seems to parse this string correctly
(it prints "DBI Connect ['dbi:Sybase:server=DVMT', 'sampleuser',
'samplepassword'] ")
but doesn't give me a connection. dbi-test.py which comes with zope-perl
works fine. I don't think it's Sybase-related environment variables either,
because SybaseDA package works.

How do I debug this whole thing (sort of emulating Zope environment, but
outside of Zope) ?
I've been using Perl for a while, but Python is very new to me.


Harry Danilevsky
harry@siichi.com