Clodoaldo,

This is a precompiled binary .pyc file -- I don't believe character
encodings are meaningful in this context.

On Mon, Dec 1, 2008 at 2:35 PM, Clodoaldo Pinto Neto <
[EMAIL PROTECTED]> wrote:

>
> 2008/12/1 Matt Craighead <[EMAIL PROTECTED]>:
> > Hey all,
> >
> > Porting from mod_python to mod_wsgi.  I put the following in my
> httpd.conf:
> >
> > WSGIScriptAlias /cascade "C:\Program Files\Conifer
> > Systems\Cascade\csc_manager_wsgi.pyc"
> >
> > <Directory "C:\Program Files\Conifer Systems\Cascade">
> > Order allow,deny
> > Allow from all
> > </Directory>
> >
> > I got the following error in my Apache log:
> >
> > [Mon Dec 01 12:27:08 2008] [error] [client 127.0.0.1]  SyntaxError:
> > Non-ASCII character '\\xb3' in file C:/Program Files/Conifer
> > Systems/Cascade/csc_manager_wsgi.pyc on line 1, but no encoding declared;
> > see http://www.python.org/peps/pep-0263.html for details (C:/Program
> > Files/Conifer Systems/Cascade/csc_manager_wsgi.pyc, line 1)
>
> You need to tell the interpreter what is the source file encoding. If
> it is utf-8 then put a line like this after the line with the
> interpreter path:
>
> # -*- coding: utf-8 -*-
>
> Since you are in Windows the encoding will be something like cp1252
>
> Regards, Clodoaldo
> >
> >
> > Works fine if I give it the .py file, but I prefer to ship my software as
> > .pyc files rather than .py files.  Is there a way to tell mod_wsgi to
> load a
> > precompiled .pyc script?
> >
> > Thanks,
> >
> > --
> > Matt Craighead
> > Founder/CEO, Conifer Systems LLC
> > http://www.conifersystems.com
> > 512-772-1834
> >
> > >
> >
>
> >
>


-- 
Matt Craighead
Founder/CEO, Conifer Systems LLC
http://www.conifersystems.com
512-772-1834

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to