Bug 462863 - virt-manager syntax error with python 2.4
Summary: virt-manager syntax error with python 2.4
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-19 12:28 UTC by Andrew Gillies
Modified: 2010-03-16 17:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-09-22 14:54:29 UTC
Embargoed:


Attachments (Terms of Use)
patch to nest the try/except in a try/finally (857 bytes, patch)
2008-09-19 12:28 UTC, Andrew Gillies
no flags Details | Diff

Description Andrew Gillies 2008-09-19 12:28:21 UTC
Created attachment 317188 [details]
patch to nest the try/except in a try/finally

The virt-manager rpm builds, but will not run on a system with python version < 2.5.  I am not sure this is intentional (the spec file specifies no python version dependency), but a single/small clause in domain.py is the sole cause of the problem (line 669 - the use of a 2.5 try/except/finally sequence).

As this seams to be the only place that makes the code dependent on python 2.5, I though I would raise it as a possible bug.

Version-Release number of selected component (if applicable):
virt-manager-0.6.0-1
python-2.4.3-21.el5
libvirt-0.4.5-1
python-virtinst-0.400.0

How reproducible:
always on a system with python < 2.5 (tested on centOS 5.2)

Steps to Reproduce:
rpm builds, but will not run on a system with python version < 2.5.  
  
Actual results:
Python syntax error at line 669 of domain.py

Expected results:
no syntax error

Additional info:

simple fix is to nest the try/except in a try/finally - everything works OK after this - see attached patch.

Comment 1 John Poelstra 2008-09-19 17:55:24 UTC
You have filed this bug against 'rawhide' yet all your references are to CentOS 5.2 (not maintained by Fedora.

Is this bug in Rawhide?

Comment 2 Cole Robinson 2008-09-19 17:58:12 UTC
I've moved this to the 'Virtualization' component which we use to track upstream virt bugs. This really isn't of particular interest to rawhide.

Comment 3 Andrew Gillies 2008-09-19 18:51:04 UTC
(In reply to comment #1)
> Is this bug in Rawhide?

Sorry for posting this in the wrong place.  Although I am running/testing virt-manager on both RHEL and Centos 5, I pulled the rpm spec file for the latest release from rawhide.  This will not be an issue for Fedora as it ships with python >2.4.

apologies again,

Comment 4 Cole Robinson 2008-09-22 14:54:29 UTC
Thanks! Applied upstream:

http://hg.et.redhat.com/virt/applications/virt-manager--devel?cs=a8cafeaa92a6

Closing this bug as UPSTREAM.


Note You need to log in before you can comment on or make changes to this bug.