Discussion:
python question...
John P. Looney
2005-12-20 17:03:32 UTC
Permalink
I'm trying to rebuild the Zope SRPM from Zope.org. However, I'm having
problems with python (I also had problems trying to use the gargnome
script), so I think it's that I don't have some python development RPMs
installed. The error is:

bartender [0] rpm --rebuild Zope-2.5.1-1.src.rpm
Installing Zope-2.5.1-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.76156
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.80878
+ umask 022
+ cd /root/rpm/BUILD
+ cd Zope-2.5.1-src
+ echo Building Zope...
Building Zope...
+ /usr/bin/python2.1 wo_pcgi.py
'import site' failed; use -v for traceback

------------------------------------------------------------------------------
Deleting '.pyc' and '.pyo' files recursively under
/root/rpm/BUILD/Zope-2.5.1-src...
Done.
Traceback (most recent call last):
File "wo_pcgi.py", line 45, in ?
if __name__=='__main__': main(sys.argv[0])
File "wo_pcgi.py", line 32, in main
import compilezpy
File "/root/rpm/BUILD/Zope-2.5.1-src/inst/compilezpy.py", line 14, in ?
import compileall, os, sys
ImportError: No module named compileall
error: Bad exit status from /var/tmp/rpm-tmp.80878 (%build)

I have the following installed:

python-devel-2.2.1-1
python-xmlrpc-0.9.9_010226-4
python-libs-2.2.1-1
python-qp_xml-1.0-5
python-libxml2-2.4.22-1
python2-compat-1.0-2
python-doc-2.2.1-1
python-2.2.1-5

are there more packages I should install (there seem to be many).

John
--
_______________________________________
John Looney Chief Scientist
a n t e f a c t o t: +353 1 8586004
www.antefacto.com f: +353 1 8586014
Arkadiusz Miskiewicz
2005-12-20 17:03:32 UTC
Permalink
Post by John P. Looney
ImportError: No module named compileall
[***@arm mantis]$ rpm -qf /usr/lib/python2.2/compileall.pyc
python-modules-2.2.1-1
Post by John P. Looney
John
--
Arkadiusz Mi?kiewicz IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr
John P. Looney
2005-12-20 17:03:32 UTC
Permalink
Post by Arkadiusz Miskiewicz
Post by John P. Looney
ImportError: No module named compileall
python-modules-2.2.1-1
Nice one, thanks.

John
--
_______________________________________
John Looney Chief Scientist
a n t e f a c t o t: +353 1 8586004
www.antefacto.com f: +353 1 8586014
Marcin Chojnowski
2005-12-20 17:03:32 UTC
Permalink
Post by John P. Looney
Post by Arkadiusz Miskiewicz
Post by John P. Looney
ImportError: No module named compileall
python-modules-2.2.1-1
Nice one, thanks.
anyway you will not be able to recompile Zope with python because Zope
is not supporting python 2.2.

There will be unofficial support in 2.6 and official in 2.7 (end of
july)

Martii

Loading...