Red Hat Bugzilla – Bug 1029082
bdist_rpm NameError: global name 'get_python_version' is not defined
Last modified: 2013-11-23 22:43:03 EST
Description of problem:
$ python setup.py bdist_rpm
Traceback (most recent call last):
File "setup.py", line 85, in <module>
File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
File "/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.py", line 28, in run
File "/usr/lib64/python2.7/distutils/command/bdist_rpm.py", line 383, in run
pyversion = get_python_version()
NameError: global name 'get_python_version' is not defined
Version-Release number of selected component (if applicable):
Applying the fix from http://bugs.python.org/issue18045 fixes the problem.
python-2.7.5-9.fc19 has been submitted as an update for Fedora 19.
python-2.7.5-9.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-2.7.5-9.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
python-2.7.5-9.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
python-2.7.5-9.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.