hi Didrik, I am not sure if I understood the problem correctly but probably what you mean is that instead of fixing the code in iu.py you want a solution to the root cause. unicode support is there in python but that is not enabled by default. at the time of python installation you should enable that by configuring with the following argument
./configure --enable-unicode=ucs4 for details refer this link http://blog.wordaligned.org/articles/2007/01/03/narrow-python this will make your python supporting unicode (also referred as wide python installation)(thus your pyinstaller would be able to interpret the sys.pathin unicode), and in that case probably you wont get this error. let me know if that works or if this is what you are looking for. -Rishi On 8/2/07, Didrik Pinte <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm updating the Thuban binary created with pyinstaller. It works fine > except for the Extensions of Thuban. They are loaded thanks to a > method that adds the path to the user directory in to the sys.path. It > seems this path is added as unicode. > > Thus I receive the following exception : > > Traceback (most recent call last): > File "thuban\buildthuban\out1.pyz/Thuban.UI.application", line 103, > in read_st > artup_files > File "C:\build\pyinstaller-1.3\iu.py", line 312, in importHook > mod = _self_doimport(nm, ctx, fqname) > File "C:\build\pyinstaller-1.3\iu.py", line 382, in doimport > mod = director.getmod(nm) > File "C:\build\pyinstaller-1.3\iu.py", line 217, in getmod > mod = thing.getmod(nm) > AttributeError: 'unicode' object has no attribute 'getmod' > > I can correct the method but I guess that this problem could be > encoutered in other environment for iu.py. So, if someone knows how to > correct it, I would be interested. > > Didrik > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/PyInstaller?hl=en -~----------~----~----~----~------~----~------~--~---
