Closed KelSolaar closed 11 years ago
Python seems to change the default encoding to "ascii" instead of keeping "utf-8" when the application is frozen using Py2App or Pyinstaller.
Stack Trace _________________________________ 0 <type 'exceptions.UnicodeEncodeError'> 1 2 Traceback (most recent call last): 3 .. File "<string>", line 299, in <module> 4 .. File "<string>", line 296, in main 5 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\engine.py", line 1860, in run 6 .... RuntimeGlobals.engine = engine(None, componentsPaths, requisiteComponents, visibleComponents) 7 .. File "<string>", line 171, in __init__ 8 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\engine.py", line 425, in __init__ 9 .... hasattr(interface, "onStartup") and interface.onStartup() 10 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/core/collectionsOutliner\collectionsOutliner.py", line 738, in onStartup 11 .... self.__view.restoreModelSelection() 12 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\components\core\collectionsOutliner\views.py", line 285, in restoreModelSelection 13 .... return self.selectIndexes(indexes) 14 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\ui\views.py", line 383, in selectIndexes 15 .... return self.selectViewIndexes(indexes, flags) 16 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\umbra\ui\views.py", line 371, in selectViewIndexes 17 .... self.selectionModel().select(selection, flags) 18 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/core/collectionsOutliner\collectionsOutliner.py", line 875, in __view_selectionModel__selectionChanged 19 .... self.__iblSetsOutliner.refreshNodes.emit() 20 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/core/iblSetsOutliner\iblSetsOutliner.py", line 1258, in __model__refreshNodes 21 .... self.setIblSets() 22 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4/sibl_gui/components/core/iblSetsOutliner\iblSetsOutliner.py", line 1844, in setIblSets 23 .... attributesFlags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)) 24 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\components\core\database\nodes.py", line 302, in __init__ 25 .... IblSetNode.__initializeNode(self) 26 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\components\core\database\nodes.py", line 315, in __initializeNode 27 .... self.updateToolTip() 28 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\components\core\database\nodes.py", line 357, in updateToolTip 29 .... self.databaseItem.time) or Constants.nullObject, 30 .. File "C:/Program Files/HDRLabs/sIBL_GUI 4\sibl_gui\ui\common.py", line 258, in getFormatedShotDate 31 .... LOGGER.debug("> Formating shot date with '{0}' date and '{1}' time.".format(date, time)) 32 UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 0: ordinal not in range(128)
Python seems to change the default encoding to "ascii" instead of keeping "utf-8" when the application is frozen using Py2App or Pyinstaller.