windows service Non-ASCII character '\x90' in file web2py.exe on line 1

884 views
Skip to first unread message

Bruno Rocha

unread,
May 15, 2012, 4:31:18 PM5/15/12
to web2py-developers
Any idea?


Microsoft Windows [versão 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados.

C:\Windows\system32>cd D:\webconn\web2py_win\web2py

C:\Windows\system32>d:

D:\webconn\web2py_win\web2py>web2py.exe -W install
New installation: unable to create welcome.w2p fileweb2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 2.00.0 (2012-05-15 09:05:35) dev
Database drivers available: SQLite3, pymysql, pg8000, MSSQL/DB2/Teradata, mongoD
B, IMAP
Starting hardcron...
Installing service web2py
Changing service configuration
Service updated

D:\webconn\web2py_win\web2py>cd ..

D:\webconn\web2py_win>cd ..

D:\webconn>cd ..

D:\>cd web2py_win

D:\web2py_win>python web2py.exe -W install
  File "web2py.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file web2py.exe on line 1, but no enc
oding declared; see http://www.python.org/peps/pep-0263.html for details

D:\web2py_win>web2py.exe -W install
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.7 (2012-03-04 22:12:08) stable
Database drivers available: SQLite3, pymysql, pg8000, IMAP
Starting hardcron...
Installing service web2py
Changing service configuration
Service updated

D:\web2py_win>web2py.exe -W start
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.7 (2012-03-04 22:12:08) stable
Database drivers available: SQLite3, pymysql, pg8000, IMAP
Starting hardcron...
Starting service web2py
Error starting service: O serviþo nÒo respondeu Ó requisiþÒo de inÝcio ou contro
le em tempo hßbil.

D:\web2py_win>

O serviço aparece como instalado, mas ao tentar iniciá-lo recebo a mensagem "Erro 1053: O serviço não respondeu à requisição de início ou controle em tempo hábil."

O options.py está no padrão:

  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3.  
  4. # when web2py is run as a windows service (web2py.exe -W)
  5. # it does not load the command line options but it
  6. # expects to find conifguration settings in a file called
  7. #
  8. #   web2py/options.py
  9. #
  10. # this file is an example for options.py
  11.  
  12. import socket
  13. import os
  14.  
  15. ip = '0.0.0.0'
  16. port = 80
  17. interfaces=[('0.0.0.0',80),('0.0.0.0',443,'ssl_private_key.pem','ssl_certificate.pem')]
  18. password = '<recycle>'  # ## <recycle> means use the previous password
  19. pid_filename = 'httpserver.pid'
  20. log_filename = 'httpserver.log'
  21. profiler_filename = None
  22. #ssl_certificate = 'ssl_certificate.pem'  # ## path to certificate file
  23. #ssl_private_key = 'ssl_private_key.pem'  # ## path to private key file
  24. #numthreads = 50 # ## deprecated; remove
  25. minthreads = None
  26. maxthreads = None
  27. server_name = socket.gethostname()
  28. request_queue_size = 5
  29. timeout = 30
  30. shutdown_timeout = 5
  31. folder = os.getcwd()
  32. extcron = None
  33. nocron = None




--

Shivakumar GN

unread,
May 16, 2012, 4:26:01 AM5/16/12
to web2py-d...@googlegroups.com
Instead of
    > python web2py.exe

Try
    > python web2py.py



--
mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/

Reply all
Reply to author
Forward
0 new messages