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

Bug#612336: vusb-analyzer: doesn't start without python-gnome2: NameError: name 'gnomecanvas' is not defined

Source: vusb-analyzer
Version: 1.1-2
Severity: serious
Justification: Policy 3.5

In a clean chroot:

| $ vusb-analyzer --help
| Traceback (most recent call last):
|   File "./vusb-analyzer", line 13, in <module>
|     from VUsbTools import Views, Log, Diff, Decode
|   File "/usr/lib/vusb-analyzer/VUsbTools/Views.py", line 15, in <module>
|     from VUsbTools import Types, Style
|   File "/usr/lib/vusb-analyzer/VUsbTools/Types.py", line 20, in <module>
|     except gnomecanvas:
| NameError: name 'gnomecanvas' is not defined

It looks like gnomecanvas was indented to be optional, it's just nobody tested it:

| try:
|     import gnomecanvas
| except gnomecanvas:
|     print "Warning: You don't have gnome-canvas (or its python bindings) installed."
|     print "         The happy timing diagram will be disabled."
|     gnomecanvas = None

Jakub Wilk

Reply to: