2012-11-12 03:21:51 |
ciel |
description |
/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/platform/sync_menu/linux.py
---
try:
from gi.repository import (
Dbusmenu,
SyncMenu,
)
use_syncmenu = True
except:
use_syncmenu = False
---
If this fails, according to
> UbuntuOneSyncMenu = UbuntuOneSyncMenuLinux if use_syncmenu else DummySyncMenu
it will fallback to DummySyncMenu. but
> class TransfersMenu(Dbusmenu.Menuitem):
will prevent it from loading.
---
NameError: name 'Dbusmenu' is not defined
---
which will result in IPCError.
Changing it to
> class TransfersMenu(object):
worked as a workaround.
By the way I'm curious in another point.
I have gir1.2-syncmenu-0.1 and gir1.2-dbusmenu-0.4. So the import shouldn't fail. In python console, it is working.
But in script:
---
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
from ._gi import _API, Repository
ImportError: cannot import name _API
---
So... the depending files of /usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/platform/sync_menu/linux.py are somehow broken? |
(snip)
By the way I'm curious in another point.
I have gir1.2-syncmenu-0.1 and gir1.2-dbusmenu-0.4. So the import shouldn't fail. In python console, it is working.
But in script:
---
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
from ._gi import _API, Repository
ImportError: cannot import name _API
---
So... the depending files of /usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/platform/sync_menu/linux.py are somehow broken? |
|