OpenLP does not start due to mimetypes bug

Bug #1154059 reported by Phill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Status tracked in Trunk
2.0
Fix Released
High
Phill
Trunk
Invalid
High
Phill

Bug Description

OpenLP 2.0.1 on Windows using an alphabet other than Latin

This is caused by a bug in mimetypes in the Python library: http://bugs.python.org/issue9291 and stops OpenLP from starting.

It happens when another program (appears to be mainly iTunes) creates registry keys in another encoding other than Latin-1.

2013-03-11 19:19:09,450 root ERROR Traceback (most recent call last):
  File "<string>", line 44, in <module>
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core", line 344, in main
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core", line 150, in run
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core.ui.mainwindow", line 588, in __init__
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core.ui.media.mediacontroller", line 60, in __init__
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core.ui.media.mediacontroller", line 125, in check_available_media_players
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core.ui.media.phononplayer", line 72, in __init__
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\mimetypes", line 355, in init
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\mimetypes", line 259, in read_windows_registry
  File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\mimetypes", line 249, in enum_types
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)
None

See: http://support.openlp.org/issues/1911

Related branches

tags: added: support-system
Revision history for this message
Phill (phill-ridout) wrote :

I'm going to assume that this does not affect 2.2 as its py3 and unicode as well as the linked bug affecting py2.7

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.