[egenix-users] pyrunning zip files

M.-A. Lemburg mal at egenix.com
Tue Mar 5 20:40:45 CET 2013

On 05.03.2013 19:45, Paul A. Giannaros wrote:
> CPython >= 2.6 lets you run a script __main__.py within a zip archive
> foo.zip with:
>     $ python foo.zip
> This doesn't work with pyrun:
>     $ pyrun foo.zip
>     ...
>     SyntaxError: Non-ASCII character '\xf1' in file foo.zip on line 2,
> but no encoding declared; see http://www.python.org/peps/pep-0263.html
> for details
> It's a useful feature (it's how we deploy code in the company that I
> work). Would you please consider adding it?

I'll open a ticket for this. Didn't even know this feature existed :-)

Apparently, this never got documented apart from the issue in the
bug tracker and the "What's new" entry:


... searching for "__main__.py" returns 0 results. I've also opened
a ticket on the Python bug tracker for this.

Marc-Andre Lemburg

Professional Python Services directly from the Source  (#1, Mar 05 2013)
>>> Python Projects, Consulting and Support ...   http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ...       http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/

::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611

More information about the egenix-users mailing list