← Back to team overview

openlp-core team mailing list archive

[Bug 1093184] Re: UnicodeError, when importing presentation files with non-ASCII in file name

 

I just checked with trunk and the error doesn't appear anymore. It's
only in 2.0 branch.

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1093184

Title:
  UnicodeError, when importing presentation files with non-ASCII in file
  name

Status in OpenLP - Worship Presentation Software:
  Fix Committed

Bug description:
  *OpenLP Bug Report*
  Version: {u'full': u'2.0', u'version': u'2.0', u'build': None}

  --- Details of the Exception. ---

  When importing presentations, with a file name containing non-ASCII characters, a exception is thrown.
  Reproducable: always
  Reason: file list of the open dialog is passed as list of QString.

   --- Exception Traceback ---
  Traceback (most recent call last):
    File "/home/meinert/Qt/OpenLP/OpenLP 2.0/openlp/core/lib/mediamanageritem.py", line 347, in onFileClick
      self.validateAndLoad(files)
    File "/home/meinert/Qt/OpenLP/OpenLP 2.0/openlp/core/lib/mediamanageritem.py", line 401, in validateAndLoad
      self.loadList(full_list)
    File "/home/meinert/Qt/OpenLP/OpenLP 2.0/openlp/plugins/presentations/lib/mediaitem.py", line 185, in loadList
      if not os.path.exists(file):
    File "/usr/lib/python2.7/genericpath.py", line 18, in exists
      os.stat(path)
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 69: ordinal not in range(128)

  --- System information ---
  Platform: Linux-3.2.0-4-amd64-x86_64-with-debian-wheezy-sid
  Desktop: KDE SC

  --- Library Versions ---
  Python: 2.7.3rc2
  Qt4: 4.8.2
  Phonon: 4.6.0
  PyQt4: 4.9.3
  QtWebkit: 534.34
  SQLAlchemy: 0.7.8
  SQLAlchemy Migrate: 0.7.2
  BeautifulSoup: 3.2.1
  lxml: 2.3.2
  Chardet: 2.0.1
  PyEnchant: 1.6.5
  PySQLite: 1.0.1
  Mako: 0.7.0
  pyUNO bridge: 3.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1093184/+subscriptions


References