From hunt@zedxinc.com Fri Dec 7 17:47:21 2001 From: hunt@zedxinc.com (Aaron Hunt) Date: Fri, 7 Dec 2001 12:47:21 -0500 Subject: [Zope-Perl] pyperl Message-ID: <00fc01c17f47$390acfe0$1805000a@zedxinc.com> This is a multi-part message in MIME format. ------=_NextPart_000_00F9_01C17F1D.4FE0DB80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable When I try the compile pyperl1.0 on my linux machine I get the following = error mkdir blib mkdir blib/lib mkdir blib/lib/Python mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/Python mkdir blib/arch/auto/Python/Object mkdir blib/lib/auto mkdir blib/lib/auto/Python mkdir blib/lib/auto/Python/Object mkdir blib/man3 cp lib/Python.pm blib/lib/Python.pm cp Object.pm blib/lib/Python/Object.pm cp lib/Python/Err.pm blib/lib/Python/Err.pm /usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 = /usr/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap = /usr/lib/perl5/5.6.0/ExtUtils/typemap -typemap typemap Object.xs > = Object.xsc && mv Object.xsc Object.c gcc -c -I"/usr/include/python1.5" -fno-strict-aliasing -O2 -march=3Di386 = -mcpu=3Di686 -DVERSION=3D\"1.00\" -DXS_VERSION=3D\"1.00\" -fPIC = -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DMULTI_PERL Object.c In file included from Object.xs:10: ../lang_lock.h:67: parse error before `last_py_tstate' ../lang_lock.h:67: warning: data definition has no type or storage class make: *** [Object.o] Error 1 Thank you for any help Aaron Hunt AgFleet Manager www.agfleet.com 814-357-8494 ------=_NextPart_000_00F9_01C17F1D.4FE0DB80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
When I try the compile pyperl1.0 on my = linux=20 machine I get the following error
 
mkdir blib
mkdir blib/lib
mkdir=20 blib/lib/Python
mkdir blib/arch
mkdir blib/arch/auto
mkdir=20 blib/arch/auto/Python
mkdir blib/arch/auto/Python/Object
mkdir=20 blib/lib/auto
mkdir blib/lib/auto/Python
mkdir=20 blib/lib/auto/Python/Object
mkdir blib/man3
cp lib/Python.pm=20 blib/lib/Python.pm
cp Object.pm blib/lib/Python/Object.pm
cp=20 lib/Python/Err.pm blib/lib/Python/Err.pm
/usr/bin/perl=20 -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0=20 /usr/lib/perl5/5.6.0/ExtUtils/xsubpp  -typemap=20 /usr/lib/perl5/5.6.0/ExtUtils/typemap -typemap typemap Object.xs > = Object.xsc=20 && mv Object.xsc Object.c
gcc -c -I"/usr/include/python1.5"=20 -fno-strict-aliasing -O2 -march=3Di386 = -mcpu=3Di686    =20 -DVERSION=3D\"1.00\" -DXS_VERSION=3D\"1.00\" -fPIC=20 -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DMULTI_PERL Object.c
In file = included=20 from Object.xs:10:
../lang_lock.h:67: parse error before=20 `last_py_tstate'
../lang_lock.h:67: warning: data definition has no = type or=20 storage class
make: *** [Object.o] Error 1
Thank you for any help
 
Aaron Hunt
 
AgFleet Manager
www.agfleet.com
814-357-8494
------=_NextPart_000_00F9_01C17F1D.4FE0DB80-- From sowens@mirapoint.com Fri Dec 7 23:00:12 2001 From: sowens@mirapoint.com (sowens) Date: Fri, 7 Dec 2001 15:00:12 -0800 Subject: [Zope-Perl] Issues installing pyperl 1.0.1 on Linux 7.1 Message-ID: I have upgraded to Activestate Perl 5.6.1 and Python 2.2, Redhat 7.1 but I cannot install pyperl. Note: Per README.txt, I did not patch Perl or Python that should have patches included, and I did not install Distutils because it's included in Python 2.2. Here is my session: [Python-Object]# perl Makefile.PL Picking up pyton include files from "/usr/local/ActivePython-2.2/include/python2.2" Checking if your kit is complete... Looks good Writing Makefile for Python::Object [Python-Object]# make install gcc -c -I"/usr/local/ActivePython-2.2/include/python2.2" -DUSE_REENTRANT_API -D_POSIX_C_SOURCE=199506L -D_REENTRANT -fno-strict-aliasing -I/usr/local/in clude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.00\" -D XS_VERSION=\"1.00\" -fpic -I/usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-t hread-multi/CORE Object.c In file included from /usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/CORE/patchlevel. h:3, from /usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/CORE/perl.h:3540 , from Object.xs:5: /usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/CORE/BuildInfo.h :19:33: warning: nothing can be pasted after this token /usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/CORE/BuildInfo.h :19:53: warning: nothing can be pasted after this token In file included from /usr/local/ActivePython-2.2/include/python2.2/Python.h:58, from Object.xs:8: /usr/include/assert.h:44:16: warning: "assert" redefined /usr/local/ActivePerl-5.6/lib/5.6.1/i686-linux-thread-multi/CORE/perl.h:2187 :1: warning: this is the location of the previous definition In file included from /usr/local/ActivePython-2.2/include/python2.2/Python.h:60, from Object.xs:8: /usr/local/ActivePython-2.2/include/python2.2/pyport.h:382:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." make: *** [Object.o] Error 1 From sowens@mirapoint.com Fri Dec 7 23:10:58 2001 From: sowens@mirapoint.com (sowens) Date: Fri, 7 Dec 2001 15:10:58 -0800 Subject: [Zope-Perl] Issues installing pyperl 1.0.1 on Linux 7.1 In-Reply-To: Message-ID: I noticed a similar problem on an earlier thread back in April, where the guy downgraded to Python 2.0. Is this still an issue in December? I did not see any postings confirming his suspicions. In advance thanks for the help. Shawn Owens From m.musumeci@denali.it Mon Dec 10 18:24:07 2001 From: m.musumeci@denali.it (Massimo Musumeci) Date: Mon, 10 Dec 2001 19:24:07 +0100 Subject: [Zope-Perl] Z DBI Message-ID: <5.0.0.25.2.20011210192139.01b430c0@mail.greenhand.net> Hi to everyone, I installed pyperl and then zoperl and finally everything has gone ok. I can write perl method and they work fine. but I can't make DBI methods work. I create the DBI method and there is no error, but when i try a simple query it says "pack non pack sequence" error. What can be? thanks From musumeci@denali.it Mon Dec 10 18:24:38 2001 From: musumeci@denali.it (dr. Massimo Musumeci) Date: Mon, 10 Dec 2001 19:24:38 +0100 Subject: [Zope-Perl] DBI Message-ID: <5.0.0.25.2.20011210192420.01b48e50@mail.greenhand.net> Hi to everyone, I installed pyperl and then zoperl and finally everything has gone ok. I can write perl method and they work fine. but I can't make DBI methods work. I create the DBI method and there is no error, but when i try a simple query it says "pack non pack sequence" error. What can be? thanks From captvanhalen@yahoo.com Sat Dec 15 18:30:58 2001 From: captvanhalen@yahoo.com (Jeff Anderson) Date: Sat, 15 Dec 2001 10:30:58 -0800 (PST) Subject: [Zope-Perl] installing pyperl and Python::Object Message-ID: <20011215183058.33220.qmail@web13905.mail.yahoo.com> erg, I couldn't get Python::Object to install, and I have no idea where to start .... here is the error: [root@host]# make install gcc -c -I"/usr/include/python2.1" -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DMULTI_PERL Object.c In file included from Object.xs:10: ../lang_lock.h:67: parse error before `last_py_tstate' ../lang_lock.h:67: warning: data definition has no type or storage class make: *** [Object.o] Error 1 any pointers would be appreciated, jeffa __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com From gisle@ActiveState.com Sun Dec 16 02:36:52 2001 From: gisle@ActiveState.com (Gisle Aas) Date: 15 Dec 2001 18:36:52 -0800 Subject: [Zope-Perl] installing pyperl and Python::Object In-Reply-To: <20011215183058.33220.qmail@web13905.mail.yahoo.com> References: <20011215183058.33220.qmail@web13905.mail.yahoo.com> Message-ID: Jeff Anderson writes: > erg, I couldn't get Python::Object to install, > and I have no idea where to start .... > > here is the error: > [root@host]# make install gcc -c > -I"/usr/include/python2.1" -fno-strict-aliasing > -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.00\" > -DXS_VERSION=\"1.00\" -fPIC > -I/usr/lib/perl5/5.6.0/i386-linux/CORE > -DMULTI_PERL Object.c > In file included from Object.xs:10: > ../lang_lock.h:67: parse error before > `last_py_tstate' > ../lang_lock.h:67: warning: data definition has > no type or storage class > make: *** [Object.o] Error 1 > > any pointers would be appreciated, You need to build perl with the -Dusethreads option. Regards, Gisle From captvanhalen@yahoo.com Sun Dec 16 17:49:48 2001 From: captvanhalen@yahoo.com (Jeff Anderson) Date: Sun, 16 Dec 2001 09:49:48 -0800 (PST) Subject: [Zope-Perl] more pyperl problems Message-ID: <20011216174948.93046.qmail@web13902.mail.yahoo.com> Hi, this is really, really tough! I am a total newbie to installing Perl by hand, and trying to guess which directories to put 'what' where is frustrating. I intalled Perl5.7.2 with threads, and i installed Python::Object with: perl5.7.2 Makefile.PL PREFIX=/usr/local/lib/perl5/5.7.2 The module was placed in the directory /usr/local/lib/perl5/5.7.2/lib/site_perl/5.7.2/i686-linux-thread-multi when i tried the following: perl5.7.2 -MPython::Object -le 'print "hey"' i was chastised with: Can't locate Python/Object.pm in @INC ... so, i moved everything in the chosen directory: mv * /usr/local/lib/perl5/site_perl/5.7.2/i686-linux-thread-multi and ran the above one-liner again and got: Can't load '/usr/local/lib/perl5/site_perl/5.7.2/i686-linux-thread-multi/auto/Python/Object/Object.so' for module Python::Object: /usr/local/lib/perl5/site_perl/5.7.2/i686-linux-thread-multi/auto/Python/Object/Object.so: undefined symbol: PyExc_ArithmeticError at /usr/local/lib/perl5/5.7.2/i686-linux-thread-multi/DynaLoader.pm line 208. I am beginning to lose my fascination with Zope-Perl, please help. Oh yeah - when i try to install pyperl: python setup.py install i now get the following gcc error: running build_ext building 'perl2' extension gcc -g -O2 -D_FILE_OFFSET_BITS=64 -DHAVE_LARGEFILE_SUPPORT -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE -I/usr/include/python2.1 -c perlmodule.c -o build/temp.linux-i686-2.1/perlmodule.o -fno-strict-aliasing -DDL_HACK -DMULTI_PERL In file included from perlmodule.c:13: lang_lock.h:67: parse error before `last_py_tstate' lang_lock.h:67: warning: data definition has no type or storage class error: command 'gcc' failed with exit status 1 sorry to just past a bunch-o error messages, but i have no clue as to where to even begin to understand this process. Thanks to Mr. Aas for the answer to my previous question. jeffa __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com From Anthony.Hinsinger@univ-metz.fr Sun Dec 16 22:38:28 2001 From: Anthony.Hinsinger@univ-metz.fr (Anthony Hinsinger) Date: Sun, 16 Dec 2001 23:38:28 +0100 Subject: [Zope-Perl] problem with $self Message-ID: <001b01c18682$61972390$0100000a@birdbeat> hello, i've just installed pyperl and zoperl. it works fine, and it's a really good job !!!!! :) but i've a problem. i've tested a simple example : Id: test_perl Arguments: self Code: my $self = shift; my @res; for($self->objectIds()) { push(@res, $_); } return join("\n", @res); when hit "try it", zope said :self: Provided by Zope's ZPublisher internally and the perl code works. but, when i tried to call this object for a dtml-document by : it don't want to run. I've this error message : Error Type: PerlError Error Value: Can't call method "objectIds" on an undefined value at test_perl line 4. why ? it seems unable to get "self"... does anyone can help me ? Thanks, Anthony From captvanhalen@yahoo.com Mon Dec 17 16:59:48 2001 From: captvanhalen@yahoo.com (Jeff Anderson) Date: Mon, 17 Dec 2001 08:59:48 -0800 (PST) Subject: [Zope-Perl] disregard my last post Message-ID: <20011217165948.48449.qmail@web13908.mail.yahoo.com> Sorry about that - the error was literally in front of my nose! :D I finally got everything working, but i am still baffled by this: [jeffa@trinity perl]$ p57 -MPython -e exit Can't load '/home/jeffa/blead/perl/lib/site_perl/5.7.2/i686-linux-thread-multi/auto/Python/Object/Object.so' for module Python::Object: /home/jeffa/blead/perl/lib/site_perl/5.7.2/i686-linux-thread-multi/auto/Python/Object/Object.so: undefined symbol: PyExc_ArithmeticError at /home/jeffa/blead/perl/lib/5.7.2/i686-linux-thread-multi/DynaLoader.pm line 208. at /home/jeffa/blead/perl/lib/site_perl/5.7.2/i686-linux-thread-multi/Python.pm line 3 Compilation failed in require at /home/jeffa/blead/perl/lib/site_perl/5.7.2/i686-linux-thread-multi/Python.pm line 3. Compilation failed in require. BEGIN failed--compilation aborted. but, as long as this doesn't conflict with my Zope Perl scripts then i really don't mind Thanks for the help, and please forgive me for not RTFM'ing very much in the first place. jeffa __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com From jan@pc-sofa.de Sat Dec 29 17:16:58 2001 From: jan@pc-sofa.de (Jan Mechtel) Date: Sat, 29 Dec 2001 18:16:58 +0100 Subject: [Zope-Perl] Zoperl on Windows Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C19095.01298670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by post.webmailer.de id SAA08467 Hi everybody, I=92m trying to set up zoperl on my windows machine, I mainly follow the = howto of http://www.zope.org/Members/andym/InstallingWindows the one point I st= uck is: =93Untar zoperl and install it as a normal product.=94 So I download =93z= operl beta 5=94 from Active State, but the installation instructions for Window= s are very long and I get some errors, as I already spent some time on it I wou= ld like to know if this is the correct =93zoperl=94 product and whether the = given instructions are correct btw. I already have =93Script (perl)=94 avaible in ZMI but if I =93add=94= a script I always get =93Perl Error=94 Error Value: Can't locate loadable object for module Hack::Names in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:\math2web/lib/perl/Zope.pm line 184 Compilation failed in require at C:\math2web/lib/perl/Zope.pm line 184. I guess this has something to do with the =93make=94 of zoperl, which I c= an=92t to as described in the readme: - Build "zoperl": At the shell: > cd D:\tmp\Bifrost\zoperl > perl Makefile.PL > nmake install as there is no =84makefile.pl=93 included in the tar I downloaded any suggestion or hints are welcomed, thanks in advance and happy new yea= r Jan Mechtel ------------------------------- pc-sofa jan@pc-sofa.de Telefon: +49 (0)30 21469659 Fax: +49 (0)89 244341516 Oschatzer Ring 28 12627 Berlin Germany www.pc-sofa.de ------=_NextPart_000_0015_01C19095.01298670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi everybody,

I’m trying to set up zoperl on my windows machine, I mainly = follow the howto of http://www.z= ope.org/Members/andym/InstallingWindows the one point I stuck is:

 

“Unt= ar zoperl and install it as a normal product.” So I download = “zoperl beta 5” from Active State, but the installation instructions for Windows are very = long and I get some errors, as I already spent some time on it I would like to know = if this is the correct “zoperl” product and whether the given = instructions are correct

 

btw. I already have “Script (perl)” avaible in ZMI but if I = “add” a script I always get “Perl Error”

 

Error Value: Can't locate loadable object for module Hack::Names in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at = C:\math2web/lib/perl/Zope.pm line 184 Compilation failed in require at C:\math2web/lib/perl/Zope.pm line = 184.

 

I guess this has something to do with the “make” of = zoperl, which I can’t to as described in the readme:

- Build = "zoperl":

      = At the shell:

          > = cd D:\tmp\Bifrost\zoperl

          > = perl Makefile.PL

          > = nmake install

 <= /p>

as there is no „makefile.pl“ included in the tar I = downloaded

 

any suggestion or hints are welcomed, thanks in advance and happy new = year

Jan Mechtel

-------------------------------

pc-sofa

jan@pc-sofa.de

Telefon: +49 (0)30 21469659

Fax:     +49 (0)89 244341516

Oschatzer Ring 28

12627 Berlin

Germany

 

www.pc-sofa.de

 <= /p>

------=_NextPart_000_0015_01C19095.01298670--