Re: virt-manager 0.6.0 under CentOS 5.2 (64-bit) gives Python syntax error (invalid syntax) with domain.py, line 669

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 17, 2008 at 01:18:34PM +0300, pekka.panula@xxxxxxxxxxxxx wrote:
> Hi
> 
> I updated virt-manager 0.6.0 and python-virtinst 0.400.0 and when i am 
> trying to start virt-manager i am getting Python syntax error:
> --------------------8<--------------
> Traceback (most recent call last):
>   File "/usr/share/virt-manager/virt-manager.py", line 346, in ?
>     main()
>   File "/usr/share/virt-manager/virt-manager.py", line 287, in main
>     from virtManager.engine import vmmEngine
>   File "/usr/share/virt-manager/virtManager/engine.py", line 31, in ?
>     from virtManager.connection import vmmConnection
>   File "/usr/share/virt-manager/virtManager/connection.py", line 36, in ?
>     from virtManager.domain import vmmDomain
>   File "/usr/share/virt-manager/virtManager/domain.py", line 669
>     finally:
>           ^
> SyntaxError: invalid syntax
> --------------------8<--------------

Looks like a python 2.5-ism crept into the codebase - there's a try,
except, finally all together. For python 2.4 you can either a try + except
or a try + finally, but not both.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux