software-center-gtk3 crashed with UnicodeEncodeError in set_description(): 'ascii' codec can't encode character u'\xe8' in position 9: ordinal not in range(128)

Bug #822915 reported by Fabio Marconi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hello
Trying to install a program, it crash.
Thanks
Fabio

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: software-center 4.1.12
ProcVersionSignature: Ubuntu 3.0.0-8.10-generic 3.0.1
Uname: Linux 3.0.0-8-generic x86_64
Architecture: amd64
Date: Mon Aug 8 22:16:44 2011
ExecutablePath: /usr/share/software-center/software-center-gtk3
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center-gtk3
ProcEnviron:
 SHELL=/bin/bash
 LANG=it_IT.UTF-8
PythonArgs: ['/usr/bin/software-center-gtk3']
SourcePackage: software-center
Title: software-center-gtk3 crashed with UnicodeEncodeError in set_description(): 'ascii' codec can't encode character u'\xe8' in position 9: ordinal not in range(128)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
visibility: private → public
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
Revision history for this message
Victor Vargas (kamus) wrote :

I got a similar traceback when I was trying to get more information for an application:

Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/utils.py", line 94, in wrapper
    f(*args, **kwargs)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/softwarepane.py", line 324, in on_application_activated
    vm.display_page(self, SoftwarePane.Pages.DETAILS, self.state, self.display_details_page)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 150, in display_page
    callback(page, view_state)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/softwarepane.py", line 654, in display_details_page
    self.app_details_view.show_app(view_state.application)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview_gtk.py", line 1425, in show_app
    skip_update_addons=(type(self.app)==DebFileApplication))
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview_gtk.py", line 1254, in _update_all
    self._update_app_description(app_details, appname)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview_gtk.py", line 1149, in _update_app_description
    self.desc.set_description(description, appname)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/description.py", line 1121, in set_description
    desc = GObject.markup_escape_text(desc)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 31: ordinal not in range(128)

Changed in software-center (Ubuntu):
importance: Undecided → Medium
description: updated
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

njin@njin-K8NF4G-SATA2:~$ G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind -v --tool=memcheck --leak-check=full --num-callers=40 --log-file=valgrind.log software-center-gtk3
EM's: 17 15 21
12903
2011-08-09 21:35:18,079 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/db/database.py', 169, 'open')'
2011-08-09 21:35:18,050 - root - WARNING - failed to add sca db Couldn't stat '/home/njin/.cache/software-center/software-center-agent.db' (File o directory non esistente)
2011-08-09 21:35:46,265 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2011-08-09 21:36:09,596 - softwarecenter.ui.gtk3.app - INFO - software-center-agent finished with status 1
2011-08-09 21:41:19,610 - softwarecenter.backend.spawn_helper - WARNING - exit code 1 from helper
2011-08-09 21:41:19,640 - softwarecenter.backend.spawn_helper - WARNING - got error from helper: 'ERROR:__main__:exhibits
Traceback (most recent call last):
  File "/usr/share/software-center/piston_get_scagent_available_apps.py", line 173, in <module>
    piston_reply = scaclient.exhibits(lang=args.lang)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/validators.py", line 41, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 106, in wrapper
    body = func(self, *args, **kwargs)
  File "/usr/share/software-center/softwarecenter/backend/piston/scaclient_pristine.py", line 55, in exhibits
    'exhibits/%s/' % (lang))
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 243, in _get
    headers=headers)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 401, in _request
    body = handler.handle(response, body)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/failhandlers.py", line 59, in handle
    raise APIError('%s: %s' % (response['status'], response), body)
APIError: 404: {'status': '404', 'content-length': '11312', 'via': '1.1 software-center.ubuntu.com', '-content-encoding': 'gzip', 'vary': 'Cookie,Accept-Encoding', 'server': 'Apache/2.2.14 (Ubuntu)', 'etag': '"2500bc29f759ce6ea41453bc0e17014a"', 'date': 'Tue, 09 Aug 2011 19:39:24 GMT', 'content-type': 'text/html; charset=utf-8'}
'
2011-08-09 21:47:21,415 - softwarecenter.backend - WARNING - _on_trans_error: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/defer/__init__.py", line 474, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/core.py", line 1055, in _set_property
    self._set_locale(value)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/core.py", line 726, in _set_locale
    (lang, encoding) = locale._parse_localename(locale_str)
  File "/usr/lib/python2.7/locale.py", line 421, in _parse_localename
    code = normalize(localename)
  File "/usr/lib/python2.7/locale.py", line 358, in normalize
    fullname = localename.translate(_ascii_lower_map)
TypeError: character mapping must return integer, None or unicode

Ucciso

Revision history for this message
Matthew McGowan (mmcg069) wrote :

Should be fixed in trunk, this was similar to Bug#823363

Changed in software-center (Ubuntu):
status: New → Fix Committed
Revision history for this message
Kiwinote (kiwinote) wrote :

software-center (4.1.15) oneiric; urgency=low

  [ Michael Vogt ]
  * software-center-gtk3, software-center:
    - fix PYTHONPATH when running from a local repo
    - add "--dummy-backend" option start will start a fake
      aptdaemon in a private dbus for interactive testing of the
      installation/removal
  * softwarecenter/backend/spawn_helper.py:
    - make "--debug-filter softwarecenter.backend.spawn_helper"
      more useful
    - ensure that the io source is removed after any pending
      reads are flushed
  * software-center:
    - fix startup with no PYTHONPATH
  * softwarecenter/gmenusearch.py:
    - port to use gir1.2-gmenu-3.0
  * softwarecenter/ui/{gtk,gtk3}/views/appdetailsview_gtk.py:
    - updated for gir1.2-gmenu-3.0
  * softwarecenter/ui/gtk3/widgets/exhibits.py:
    - show hand cursor if the exhibit has package_names
  * setup.py:
    - fix AUTHORS file merging

  [ Matthew McGowan ]
  * lp:~mmcg069/software-center/appdetails-tweaks:
    - add a pretty frame around the thumbnail in the detailsview.
  * lp:~mmcg069/software-center/bugfix-823233:
    - fix so that markup is actually rendered by the submit_label
      when submitting usefulness (LP: #823233)
  * fix the annoying ascii codec error, #823363 <--
  * add some checks to ensure the exhibits list contains exhibits and
    then some further checks within _render_exhbit_at_cursor to ensure
    the cursor is within the bounds of the exhibits_list

  [ Kiwinote ]
  * data/ui/gtk3/SoftwareCenter.ui,
    softwarecenter/ui/gtk3/app.py:
    - few more tweaks to the about dialog
  * softwarecenter/db/application.py:
    - import version_compare on demand to make deb files work (LP: #824692)
  * softwarecenter/ui/gtk/appview.py,
    softwarecenter/ui/gtk3/widgets/cellrenderers.py:
    - fix listviews in rtl setups (pango reverses LEFT and RIGHT itself)
  * softwarecenter/ui/gtk3/app.py:
    - fix rtl mode for testing
  * softwarecenter/ui/gtk3/views/appdetailsview_gtk.py:
    - correctly show/hide website button

Date: Wed, 17 Aug 2011 10:21:25 +0200

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
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.