Hello All,

I recently upgrade a project from pylons v0.9.7 to 1.0. Under Debian
Lenny with python 2.5 I have no problems in
running it with the paste server.

However under Ubuntu 10.04 and python 2.6, paste is not able to serve
any page, and I get the following error messages:

------------------------------------------------
Exception happened during processing of request from ('127.0.0.1',
49863)
Traceback (most recent call last):
  File "/home/underlab/.stratos/pylons/lib/python2.6/site-packages/
Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 1068, in
process_request_in_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in
finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/home/underlab/.stratos/pylons/lib/python2.6/site-packages/
Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 442, in handle
    BaseHTTPRequestHandler.handle(self)
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/home/underlab/.stratos/pylons/lib/python2.6/site-packages/
Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 437, in
handle_one_request
    self.wsgi_execute()
  File "/home/underlab/.stratos/pylons/lib/python2.6/site-packages/
Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 290, in
wsgi_execute
    self.wsgi_write_chunk(chunk)
  File "/home/underlab/.stratos/pylons/lib/python2.6/site-packages/
Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 150, in
wsgi_write_chunk
    self.wfile.write(chunk)
  File "/usr/lib/python2.6/socket.py", line 292, in write
    data = str(data) # XXX Should really reject non-string non-buffers
UnicodeEncodeError: 'ascii' codec can't encode characters in position
188-197: ordinal not in range(128)
------------------------------------------------

The server starts with no error messages (paster serve --reload
development.ini) and
this stack is being displayed, when I check the page: localhost:5000
(i have no non-ascii characters in any URLs, controller/action
names....)
I am not able to view any pages...

Any idea on how to fix the problem? Is it, that some specific python
package dependencies are needed
to work correctly under python 2.6?
(for upgrade I used: http://pylonshq.com/docs/en/1.0/upgrading/
the following packages exist in the virtual environment:
Routes-1.12.3-py2.6.egg, Paste-1.7.5.1-py2.6.egg, Pylons-1.0-
py2.6.egg, WebHelpers-1.2-py2.6.egg)

Thanks in advance.

Stratos

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

Reply via email to