Character '&' is not valid inside an entity name

Bug #398160 reported by JuanC
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IntiPunku
Fix Committed
Critical
Unassigned

Bug Description

View an image folder with IntiPunku 0.51 :

/usr/lib/python2.6/dist-packages/inti/browser.py:439: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1: Character '&' is not valid inside an entity name
  def add_thumb(self, date, im, box_selection, c):
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 813, in album_changed_cb
    if self.im_select: self.image_changed_cb(None, self.im_select)
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 818, in image_changed_cb
    n = self.im_load.index(im)
ValueError: list.index(x): x not in list
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 813, in album_changed_cb
    if self.im_select: self.image_changed_cb(None, self.im_select)
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 818, in image_changed_cb
    n = self.im_load.index(im)
ValueError: list.index(x): x not in list

/usr/lib/python2.6/dist-packages/inti/browser.py:383: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1: Character '&' is not valid inside an entity name
  def load_thumbs(self):
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 813, in album_changed_cb
    if self.im_select: self.image_changed_cb(None, self.im_select)
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 818, in image_changed_cb
    n = self.im_load.index(im)
ValueError: list.index(x): x not in list
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 813, in album_changed_cb
    if self.im_select: self.image_changed_cb(None, self.im_select)
  File "/usr/lib/python2.6/dist-packages/inti/browser.py", line 818, in image_changed_cb
    n = self.im_load.index(im)
ValueError: list.index(x): x not in list

Revision history for this message
Mark Baas (mark-baas123) wrote :

This looks weird,this character was in a filename or album? What is your system language ?

Changed in intipunku:
importance: Undecided → Critical
status: New → Incomplete
Revision history for this message
JuanC (juanc1-deactivatedaccount-deactivatedaccount) wrote :

>>This looks weird,this character was in a filename or album?
I have an image that it's filename contains & character.

>>What is your system language ?
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

More error output :

/usr/lib/python2.6/dist-packages/inti/browser.py:481: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1: Character '&' is not valid inside an entity name
  label.set_markup("<b>%s</b>" % os.path.basename(os.path.splitext(im)[0]))
/usr/lib/python2.6/dist-packages/inti/browser.py:524: GtkWarning: Failed to set text from markup due to error parsing markup: Error on line 1: Character '&' is not valid inside an entity name
  self.table.attach(box, cnt_row, cnt_row+1, cnt_col, cnt_col+1, xoptions=gtk.SHRINK, yoptions=gtk.SHRINK)

Revision history for this message
Mark Baas (mark-baas123) wrote :

Fixed in bazaar, will be soon released into 0.52

Changed in intipunku:
status: Incomplete → Fix Committed
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.