coercing to Unicode

Bug #870692 reported by Muhammad Bashir Al-Noimi
6
This bug affects 1 person
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\Common.pyc", line 77, in <module>
  File "Koo\Common\Ui.pyc", line 15, in loadUiType
  File "PyQt4\uic\__init__.pyc", line 156, in loadUiType
  File "PyQt4\uic\Compiler\compiler.pyc", line 66, in compileUi
  File "PyQt4\uic\uiparser.pyc", line 796, in parse
  File "xml\etree\ElementTree.pyc", line 862, in parse
  File "xml\etree\ElementTree.pyc", line 579, in parse
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_')]
        ui = eval( 'module.%s' % uiClasses[0] )
        return (ui, None)

Tags: koo
Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

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?

Changed in openobject-client-kde:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KDE OpenObject Client because there has been no activity for 60 days.]

Changed in openobject-client-kde:
status: Incomplete → Expired
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.