Solved!
I don't know why but if the library with unicode strings if  is
imported with __import__ it works.

On 12 Apr, 18:01, Simosito <[EMAIL PROTECTED]> wrote:
> Hi all.
> I'm trying to freeze an application that uses unicode chars (greek).
> When I run Configure.py it looks like everything's ok, but when I run
> Build.py there are some errors:
>
> wrote /home/simone/Desktop/pyinstaller/App/App.spec
> now run Build.py to build the executable
> checking Analysis
> building Analysis because out0.toc non existent
> running Analysis out0.toc
> Analyzing: support/_mountzlib.py
> Analyzing: support/useUnicode.py
> Analyzing: pydiary/App.py
> Syntax error in /home/simone/Desktop/pyinstaller/pydiary/lang_EL.py
> ('invalid syntax', ('/home/simone/Desktop/pyinstaller/pydiary/
> lang_EL.py', 9, 35, "txt_date_default=u'\xce\xb7\xce\xb7-\xce\xbc\xce
> \xbc-\xcf\x87\xcf\x87'\r\n"))
> Traceback (most recent call last):
>   File "Build.py", line 840, in <module>
>     build(sys.argv[1])
>   File "Build.py", line 77, in build
>     exec open(spec, 'r').read()+'\n'
>   File "<string>", line 2, in <module>
>   File "Build.py", line 113, in __init__
>     self.__postinit__()
>   File "Build.py", line 95, in __postinit__
>     self.assemble()
>   File "Build.py", line 183, in assemble
>     analyzer.analyze_script(script)
>   File "/home/simone/Desktop/pyinstaller/mf.py", line 379, in
> analyze_script
>     return self.analyze_r('__main__')
>   File "/home/simone/Desktop/pyinstaller/mf.py", line 299, in
> analyze_r
>     newnms = self.analyze_one(name, nm, imptyp)
>   File "/home/simone/Desktop/pyinstaller/mf.py", line 333, in
> analyze_one
>     mod = self.doimport(nm, ctx, fqname)
>   File "/home/simone/Desktop/pyinstaller/mf.py", line 400, in doimport
>     mod = director.getmod(nm)
>   File "/home/simone/Desktop/pyinstaller/mf.py", line 216, in getmod
>     mod = owner.getmod(nm)
>   File "/home/simone/Desktop/pyinstaller/mf.py", line 71, in getmod
>     co = compile(open(py[0], 'r').read()+'\n', py[0], 'exec')
>   File "/home/simone/Desktop/pyinstaller/pydiary/lang_EL.py", line 9
>     txt_date_default=u'ηη-μμ-χχ'
>                                                            ^
> SyntaxError: invalid syntax
>
> I've tried via console, McGUI.py and G4PI.
>
> I've added the utf-8 encoding on Build.py too.
>
> I really don't know how to fix that.
> And that's the first time I use PyInstaller.
> (And the first time I use greek letters too)
>
> Please help me.
>
> Best wishes,
> Simosito
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to