Can anyone volunteer to help with a Python 2.5 / Python 2.4 code issue?
by Adam Williamson
Hi, guys. I've been working with a Bugzappers group community member,
Brennan Ashton, who has written a great tool in Python for generating a
range of graphical metrics of Bugzilla information, which would be very
useful to us. The tool is basically written and we have space provided
by Infrastructure to host it on a permanent basis, but unfortunately,
Infrastructure's servers all run RHEL and so have Python 2.4, while the
tool has a small but important section of code which relies on a Python
2.5-only function to work. Brennan's very busy at present and might not
have time to port the code to Python 2.4 for a while, so - as we want to
have it up and running ASAP - I thought I'd ask this list if anyone
would be kind enough to help out in tweaking the code to work on Python
2.4.
The code is all up in the Bugzappers git repository:
http://git.fedoraproject.org/git/triage.git
it's the 'triageweb' subdirectory, and some things in 'scripts' as well
I believe. If anyone would be kind enough to help, Brennan (in CC) can
point out the relevant bit of code that needs changing - I don't have
the reference myself, I'm afraid. Thanks, all!
--
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Fedora Talk: adamwill AT fedoraproject DOT org
http://www.happyassassin.net
14 years, 5 months
Problem using bdist_rpm with Fedora 10
by Stanley A. Klein
I tried to build java2python using bdist_rpm on Fedora 10 and got the
following errors:
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/python2.5/site-packages/java2python/__init__.pyo
/usr/lib/python2.5/site-packages/java2python/lib/__init__.pyo
/usr/lib/python2.5/site-packages/java2python/lib/defaultconfig.pyo
/usr/lib/python2.5/site-packages/java2python/lib/lexer.pyo
/usr/lib/python2.5/site-packages/java2python/lib/parser.pyo
/usr/lib/python2.5/site-packages/java2python/lib/sourcetypes.pyo
/usr/lib/python2.5/site-packages/java2python/lib/walker.pyo
error: command 'rpmbuild' failed with exit status 1
This had been an issue in the past, and the recommended solution was to
prepare a setup.cfg containing
[install]
optimize = 1
This had worked in the past, but it had no effect this time.
I found some discussion of the issue and some aspect of it is supposedly
addressed in a change to Fedora. I upgraded to the latest rpm packages
(version -4.6.1-1.fc10), but got the same behavior.
How can I proceed to do the build?
Thanks.
Stan Klein
14 years, 5 months