python question...

John P. Looney john at antefacto.com
Tue Jun 4 18:46:25 CEST 2002


 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



More information about the pld-users-en mailing list