pichlerma / google-app-engine-samples

Automatically exported from code.google.com/p/google-app-engine-samples
0 stars 0 forks source link

Some projects in the example section doesn't work #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get python gae sdk 1.8
2. get cccwiki, dotmatrix, tasks samples
3. try to run then

What is the expected output? What do you see instead?
expect to run, doens't started

What version of the product are you using? On what operating system?
win 7 64, gae python sdk recent released, this month, 1.8

Please provide any additional information below.

wiki
browser output:
Status: 500 Internal Server Error Content-Type: text/plain Content-Length: 59 A 
server error occurred. Please contact the administrator.

log:
Traceback (most recent call last):
  File "C:\Python27\lib\wsgiref\handlers.py", line 86, in run
    self.finish_response()
  File "C:\Python27\lib\wsgiref\handlers.py", line 128, in finish_response
    self.write(data)
  File "C:\Python27\lib\wsgiref\handlers.py", line 204, in write
    assert type(data) is StringType,"write() argument must be string"
AssertionError: write() argument must be string
INFO     2013-05-22 21:29:06,490 server.py:585] default: "GET / HTTP/1.1" 200 
142

task:
browser output (browser error, not output)
Erro no servidor
O site encontrou um erro ao recuperar http://localhost:11080/. Ele pode estar 
em manutenção ou configurado incorretamente.
Veja algumas sugestões:
Recarregue esta página da web mais tarde.
Erro HTTP {500 (Internal Server Error): Ocorreu uma condição inesperada 
enquanto o servidor tentava completar a solicitação.

log:
<module>
    template.register_template_library('templatefilters')
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\webapp\template.py", line 267, in register_template_library
    django.template.add_to_builtins(package_name)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\_internal\django\template\__init__.py", line 1047, in add_to_builtins
    builtins.append(import_library(module))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\_internal\django\template\__init__.py", line 982, in import_library
    app_path, taglib = taglib_module.rsplit('.',1)
ValueError: need more than 1 value to unpack

INFO     2013-05-22 21:30:45,575 server.py:585] default: "GET / HTTP/1.1" 500 -

dotmatrix
borwser output:
A server error occurred.  Please contact the administrator.

log:
TypeError: __init__() takes exactly 1 argument (3 given)
Traceback (most recent call last):
  File "C:\Python27\lib\wsgiref\handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1519, in __call__
    response = self._internal_error(e)
  File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1511, in __call__
    rv = self.handle_exception(request, response, e)
  File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1505, in __call__
    rv = self.router.dispatch(request, response)
  File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1253, in default_dispatcher
    return route.handler_adapter(request, response)
  File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1076, in __call__
    handler = self.handler(request, response)
TypeError: __init__() takes exactly 1 argument (3 given)
INFO     2013-05-22 21:32:33,036 server.py:585] default: "GET / HTTP/1.1" 500 59

Thanks

Original issue reported on code.google.com by tiagofmo...@gmail.com on 23 May 2013 at 12:32

GoogleCodeExporter commented 8 years ago
in some cases, write() seems to have problems with the template rendering - 
I've used unicode() sometimes with partial success:

EG 
Change:
self.response.out.write(htmlstring)

to

self.response.out.write(unicode(htmlstring))

And see if that works out.

Original comment by RichKH...@gmail.com on 15 Jan 2015 at 11:16

GoogleCodeExporter commented 8 years ago
Also of note: I had to use autoescape to ensure that the contents of the 
CCCwiki weren't escaped within the view template.

{% autoescape off %}
  {{ page.wikified_content }}
{% endautoescape %}

Original comment by RichKH...@gmail.com on 17 Jan 2015 at 5:50