coercing to Unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KDE OpenObject Client |
Expired
|
Undecided
|
Unassigned |
Bug Description
I tried to create a binary file by py2exe as following:
setup py2exe
but I got this error message:
--- 2011-10-08T15:27:37 ---
Traceback (most recent call last):
File "Koo.py", line 47, in <module>
File "Koo\Common\
File "Koo\Common\
File "PyQt4\
File "PyQt4\
File "PyQt4\
File "xml\etree\
File "xml\etree\
TypeError: coercing to Unicode: need string or buffer, NoneType found
Is there anyway to fix it? Does it related to Ui.py?
---Ui.py----
import os
try:
from PyQt4 import uic
isUicAvailable = True
except:
isUicAvailabe = False
def uiToModule( filePath):
return os.path.split( filePath[:-3] )[-1]
if isUicAvailable:
def loadUiType( fileName ):
return uic.loadUiType( fileName )
else:
def loadUiType( fileName ):
module = uiToModule( fileName )
module = __import__( 'ui.%s' % module, globals(), locals(), [module] )
uiClasses = [x for x in dir(module) if x.startswith(
ui = eval( 'module.%s' % uiClasses[0] )
return (ui, None)
Changed in openobject-client-kde: | |
status: | New → Incomplete |
Strange, just built the installer and it worked for me without problems. When do you get the error, when building or when executing the application?