TV card not detected with dvb-daemon 0.2.5

Bug #886466 reported by FrenchNux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME DVB Daemon
Fix Committed
Undecided
Unassigned
pygobject
Won't Fix
Medium

Bug Description

Ubuntu 11.10 64b

Hi,
I installed gnome-daemon 0.2.5 ppa version, because totem-plugins-dvb doesn't work on oneiric bud tv card detected.
with PPA version, my tv card doesn't detect and i have some issues in terminal :

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 69, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 69, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 69, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)

Revision history for this message
FrenchNux (christophe-pauc) wrote :

My TV Card : Pinnacle PCTV 310i

Revision history for this message
Sebastian Pölsterl (sebp) wrote :

Thanks for reporting this issue.

Looks an issue with the encoding. Does gnome-dvb-setup work correctly (in standard and expert mode) or does a similar issue occur with it as well. You might also edit the references file DeviceGroupsView.py and add "print device.name" after line 63.

Revision history for this message
FrenchNux (christophe-pauc) wrote :

christophe@christophe-P5Q-DELUXE:~$ gnome-dvb-setup
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Error: (u'gstdvbsrc.c(733): gst_dvbsrc_open_frontend (): /GstPipeline:/GstDvbSrc:test_dvbsrc:\nsystem error: P\xe9riph\xe9rique ou ressource occup\xe9',)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 123, in __async_result_handler
    result_callback(obj, self._unpack_result(ret), real_user_data)
  File "/usr/lib/pymodules/python2.7/gnomedvb/DVBModel.py", line 38, in groups_handler
    result_handler([DeviceGroup(path) for path in paths])
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/wizard/pages/AdaptersPage.py", line 170, in registered_handler
    self.__model.get_all_devices(result_handler=devices_handler)
  File "/usr/lib/pymodules/python2.7/gnomedvb/DVBModel.py", line 56, in get_all_devices
    result_handler(devs)
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/wizard/pages/AdaptersPage.py", line 205, in devices_handler
    self.show_error(error)
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/wizard/pages/AdaptersPage.py", line 113, in show_error
    text += "\n<i>%s</i>" % error
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 75: ordinal not in range(128)

Revision history for this message
FrenchNux (christophe-pauc) wrote :

i add "print device.name" after line 63 in file DeviceGroupsView.py.

when i run gnome-dvb-control in terminal :

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Error: (u'gstdvbsrc.c(733): gst_dvbsrc_open_frontend (): /GstPipeline:/GstDvbSrc:test_dvbsrc:\nsystem error: P\xe9riph\xe9rique ou ressource occup\xe9',)

Revision history for this message
FrenchNux (christophe-pauc) wrote :

real log when i run gnome-dvb-control with "device.name" in DeviceGroupsView.py

christophe@christophe-P5Q-DELUXE:~$ gnome-dvb-control
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Philips TDA10046H DVB-T
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
Philips TDA10046H DVB-T
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
Philips TDA10046H DVB-T
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)

Revision history for this message
FrenchNux (christophe-pauc) wrote :

comment #3 is wrong

when i run gnome-dvb-setup :

- in normal mode : no error but my tv card not detected.
- in expert mode : no error and my tv card is detected

Revision history for this message
FrenchNux (christophe-pauc) wrote :
Revision history for this message
Sebastian Pölsterl (sebp) wrote :

This is a weird issue, since the byte 0xc2 would be "Â" in utf8 and I don't see where this comes from.

You could try dissecting the string on line 67 and 68 to find exactly the part that causes this issue.

Revision history for this message
FrenchNux (christophe-pauc) wrote :

exemple DeviceGroupsView.py modified :
            # translators: first is device's name, second its type
            text = _("<b>%s (%s)</b>\n") % (device.name, device.type)
     print "line n67", text
            text += "<small>%s</small>" % (_("Adapter: %d, Frontend: %d") % (device.adapter,
                device.frontend))
     print "line n68", text

Results:
christophe@christophe-P5Q-DELUXE:~$ gnome-dvb-control
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
line n67 <b>Philips TDA10046H DVB-T (DVB-T)</b>

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
line n67 <b>Philips TDA10046H DVB-T (DVB-T)</b>

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
line n67 <b>Philips TDA10046H DVB-T (DVB-T)</b>

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
line n67 <b>Philips TDA10046H DVB-T (DVB-T)</b>

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)
line n67 <b>Philips TDA10046H DVB-T (DVB-T)</b>

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/preferences/DeviceGroupsView.py", line 70, in get_description_data
    device.frontend))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 17: ordinal not in range(128)

Revision history for this message
Sebastian Pölsterl (sebp) wrote :

Could you please open /usr/lib/pymodules/python2.7/gnomedvb/__init__.py and
change the line "_ = t.gettext" to"_ = t.ugettext". Check if that helps.

Revision history for this message
FrenchNux (christophe-pauc) wrote :

gnome-dvb-control works but same issue with scheduleview

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gnomedvb/ui/widgets/ScheduleView.py", line 99, in _get_description_data
    description = "<b>%s</b>\n%s<small><i>%s: %s</i></small>" % (title, short_desc, _("Duration"), duration)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)
Traceback (most recent call last):

Revision history for this message
Sebastian Pölsterl (sebp) wrote :

The bug was fixed upstream. Together with the changes proposed here, everything should work as expected now.

Changed in gnome-dvb-daemon:
status: New → Incomplete
status: Incomplete → Fix Committed
Changed in pygobject:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in pygobject:
status: Fix Released → Incomplete
Changed in pygobject:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.