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

Re: [virt-tools-list] [PATCH 1/2] fix argument error when initializing LibvirtGlib



On 04/12/2013 08:38 AM, Guannan Ren wrote:
> Traceback (most recent call last):
>   File "./virt-manager", line 351, in <module>
>     main()
>   File "./virt-manager", line 332, in main
>     LibvirtGLib.init(None)
>   File "/usr/lib64/python2.7/site-packages/gi/types.py", line 43, in function
>     return info.invoke(*args, **kwargs)
> TypeError: init() takes exactly 2 arguments (1 given)
> 
> ---
>  virt-manager | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/virt-manager b/virt-manager
> index 0b8d58b..de80342 100755
> --- a/virt-manager
> +++ b/virt-manager
> @@ -329,7 +329,7 @@ def main():
>                                "disabling DBus service")
>  
>      # Hook libvirt events into glib main loop
> -    LibvirtGLib.init(None)
> +    LibvirtGLib.init(0, "")
>      LibvirtGLib.event_register()
>  
>      # At this point we're either starting a brand new controlling instance,
> 

On F18 this fails, though Dan's original GTK3 patch had the same code, so
LibvirtGLib must have fixed this up at some point.

What distro are you on? Maybe we can add a version check to catch this, and
error out otherwise.

- Cole


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