Bug 1029082

Summary: bdist_rpm NameError: global name 'get_python_version' is not defined
Product: [Fedora] Fedora Reporter: Mads Kiilerich <mads>
Component: pythonAssignee: Tomas 'Sheldon' Radej <tradej>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: bkabrda, dmalcolm, ivazqueznet, jonathansteffan, mstuchli, tomspur, tradej
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-2.7.5-9.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-16 07:00:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mads Kiilerich 2013-11-11 15:56:55 UTC
Description of problem:

$ python setup.py bdist_rpm
...
Traceback (most recent call last):
  File "setup.py", line 85, in <module>
    **setup_kwargs
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.py", line 28, in run
    _bdist_rpm.run(self)
  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):

python-libs-2.7.5-8.fc20.x86_64

Applying the fix from http://bugs.python.org/issue18045 fixes the problem.

Comment 1 Fedora Update System 2013-11-13 10:24:48 UTC
python-2.7.5-9.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-2.7.5-9.fc19

Comment 2 Fedora Update System 2013-11-13 10:24:58 UTC
python-2.7.5-9.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-2.7.5-9.fc20

Comment 3 Fedora Update System 2013-11-14 03:31:57 UTC
Package python-2.7.5-9.fc19:
* 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:
https://admin.fedoraproject.org/updates/FEDORA-2013-21248/python-2.7.5-9.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-11-16 07:00:07 UTC
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.

Comment 5 Fedora Update System 2013-11-24 03:43:03 UTC
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.