This is a Python 2.6 thing.  2.6 is the default on Jaunty, but PyInstaller
does not officially support it.  I have a cheezy hack that makes things work
properly: search the bug tracker and you'll find it.
We really do need a Python 2.6 fix sooner rather than later....

2009/5/20 Andy Rudoff <[email protected]>

>
> I was able to recreate my issue with a small example.  The script
> below prints google's main page when run directly, but throws
> "LookupError: unknown encoding: ascii" when run through pyinstaller.
> And I confirmed that adding encodings.ascii to hiddenimports or
> even directly to the script below doesn't fix it.
>
> -andy
>
>
>
> #!/usr/bin/python
>
> import httplib
>
> conn = httplib.HTTPConnection('www.google.com')
> conn.request('GET', '/')
> resp = conn.getresponse()
> print resp.read()
>
> >
>


-- 
Jamie Kirkpatrick
07818 422311

--~--~---------~--~----~------------~-------~--~----~
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