On May 13, 1:03 am, Giovanni Bajo <[email protected]> wrote: > On dom, 2009-05-10 at 21:13 +0000, Pyinstaller wrote: > > > > > When run on the build system ''as an > > executable'', we get the following output: > > No, this is wrong: you can see that it is importing "encodings" > from /usr/lib, instead of using the version within the executable. >
True - and this may be a different issue, or the same one. At any rate - if you run the executable on the build system, it doesn't pick up the module from the executable but that doesn't lead to errors. > What happens if you instead swap the last two lines in your sample > program, that is: > >[snip] > > Does it work now? > -- No. In fact my original program did only the print - see the code posted in this thread: http://groups.google.com/group/PyInstaller/browse_frm/thread/c1cf872963c50f98 which is reproduced below: def main(): print repr(u'\u2029'.encode('utf-8')) if __name__ == "__main__": main() The above code fails with the same error as the previous code. I only did the "import encodings; print dir(encodings);" etc. as a debugging aid. Regards, Vinay Sajip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
