Re: [Py2exe-users] LookupError: unknown encoding: ascii

Brian,
On 24/07/2010 01:14, Brian Rowlands (Greymouth High School) wrote:
> Thanks for your response.
>
> I've commented out the two lines you mentioned that referenced
> encodings. I tried ascii: False and ascii: 0 but to no avail.
Either is fine, I just prefer "False" it sticks out a bit more.
> Still get
> same issue.
>
> Stumped.
>
What version of py2exe do you use?
Does your dist folder contain a folder "encodings" (possibly in your
library.zip)?
If not then you need to force py2exe to include it by including:
"packages" : ["encodings"]
in your setup.py.
Is your app large (lots of dependencies)? If not you can send it to me
as a zip and I give it a try.
Werner

Brian,
On 24/07/2010 01:14, Brian Rowlands (Greymouth High School) wrote:
> Thanks for your response.
>
> I've commented out the two lines you mentioned that referenced
> encodings. I tried ascii: False and ascii: 0 but to no avail.
Either is fine, I just prefer "False" it sticks out a bit more.
> Still get
> same issue.
>
> Stumped.
>
What version of py2exe do you use?
Does your dist folder contain a folder "encodings" (possibly in your
library.zip)?
If not then you need to force py2exe to include it by including:
"packages" : ["encodings"]
in your setup.py.
Is your app large (lots of dependencies)? If not you can send it to me
as a zip and I give it a try.
Werner