I have created a pyramid application using pcreate, now when I try to run 
it using pserve with --reload, I get following error

* SyntaxError: Non-ASCII character '\x90' in file <path>\pserve.exe on line 
1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for 
*Interestingly this error shows up only when I use --reload, if I remove 
reload it starts fine.*

After debugging, I see another file pserve-script.py at the same location 
of pserve.exe and this python script is internally called by pserve.exe ( I 
don't understand why? when pserve itself is executable)

The above pserve-script.py has following content and I assume the above 
error is because of following shebang.

# EASY-INSTALL-ENTRY-SCRIPT: 'pyramid','console_scripts','pserve'
__requires__ = 'pyramid'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
        load_entry_point('pyramid', 'console_scripts', 'pserve')()

You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to