Hi,

Running:
OS: Centos 6.4
Baruwa 2.0.1

Trying to get Baruwa running and I'm so so so so close ( At least I think )

Getting this error:
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66] Error - <type
'exceptions.DeprecationWarning'>: You passed charset='iso-8859-1' to the
Request constructor. As of WebOb 1.2, if your application needs a non-UTF-8
request charset, please construct the request without a charset or with a
charset of 'None',  then use ``req = req.decode(charset)``
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66] mod_wsgi
(pid=16543): Exception occurred processing WSGI script
'/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi'.
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66] Traceback (most
recent call last):
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/paste/registry.py", line 379,
in __call__
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]     app_iter =
self.application(environ, start_response)
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/pylons/middleware.py", line
177, in __call__
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]     self.app,
new_environ, catch_exc_info=True)
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/pylons/util.py", line 50, in
call_wsgi_application
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]     app_iter =
application(environ, start_response)
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/weberror/errormiddleware.py",
line 156, in __call__
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]     return
self.application(environ, start_response)
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py",
line 65, in __call__
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]     ids =
self.identify(environ, classification)
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py",
line 162, in identify
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]     identity =
plugin.identify(environ)
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/repoze/who/plugins/friendlyform.py",
line 122, in identify
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]     request =
Request(environ, charset=self.charset)
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]   File
"/home/baruwa/px/lib/python2.6/site-packages/webob/request.py", line 138,
in __init__
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66]
"req.decode(charset)``" % charset
[Wed Aug 07 01:44:21 2013] [error] [client 172.17.5.66] DeprecationWarning:
You passed charset='iso-8859-1' to the Request constructor. As of WebOb
1.2, if your application needs a non-UTF-8 request charset, please
construct the request without a charset or with a charset of 'None',  then
use ``req = req.decode(charset)``
^C


Then I thought it was a issue with a wrong version of some package and
started searching around and found a way to ignore the warning only to
discover that it was already in the "baruwa.conf" file

# -*- coding: utf-8 -*-
# Baruwa - Web 2.0 MailScanner front-end.
# Copyright (C) 2010-2012  Andrew Colin Kissa <[email protected]>
# vim: ai ts=4 sts=4 et sw=4
WSGIPythonWarnings ignore::DeprecationWarning::
WSGISocketPrefix /var/run/httpd
#WSGIPythonHome /home/baruwa/px
WSGIPythonPath /home/baruwa/px/lib/python2.6/site-packages
<VirtualHost *:80>
        Alias /favicon.ico
/home/baruwa/px/lib/python2.6/site-packages/baruwa/public/imgs/favicon.ico
        Alias /imgs/
/home/baruwa/px/lib/python2.6/site-packages/baruwa/public/imgs/
        Alias /js/
/home/baruwa/px/lib/python2.6/site-packages/baruwa/public/js/
        Alias /css/
/home/baruwa/px/lib/python2.6/site-packages/baruwa/public/css/

        # Make all the static content accessible
        <Directory /home/baruwa/px/lib/python2.6/baruwa/public/*>
            Order allow,deny
            Allow from all
            Options -Indexes

        </Directory>
        WSGIScriptAlias /
/home/baruwa/px/lib/python2.6/site-packages/baruwa/baruwa.wsgi

    # change to your hostname
    ServerName baruwa.syskait.dk

    <Directory /home/baruwa/px/lib/python2.6/site-packages/baruwa>
        Order deny,allow
        Allow from all
    </Directory>
    ErrorLog logs/baruwa-error_log
    CustomLog logs/baruwa-access_log common
</VirtualHost>

This also happens when running the app with the following command
# paster serve --reload /etc/baruwa/production.ini
Error - <type 'exceptions.DeprecationWarning'>: You passed
charset='iso-8859-1' to the Request constructor. As of WebOb 1.2, if your
application needs a non-UTF-8 request charset, please construct the request
without a charset or with a charset of 'None',  then use ``req =
req.decode(charset)``
----------------------------------------
Exception happened during processing of request from ('172.17.5.66', 28886)
Traceback (most recent call last):
  File "/home/baruwa/px/lib/python2.6/site-packages/paste/httpserver.py",
line 1068, in process_request_in_thread
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.6/SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.6/SocketServer.py", line 617, in __init__
    self.handle()
  File "/home/baruwa/px/lib/python2.6/site-packages/paste/httpserver.py",
line 442, in handle
    BaseHTTPRequestHandler.handle(self)
  File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/home/baruwa/px/lib/python2.6/site-packages/paste/httpserver.py",
line 437, in handle_one_request
    self.wsgi_execute()
  File "/home/baruwa/px/lib/python2.6/site-packages/paste/httpserver.py",
line 287, in wsgi_execute
    self.wsgi_start_response)
  File "/home/baruwa/px/lib/python2.6/site-packages/paste/registry.py",
line 379, in __call__
    app_iter = self.application(environ, start_response)
  File "/home/baruwa/px/lib/python2.6/site-packages/pylons/middleware.py",
line 177, in __call__
    self.app, new_environ, catch_exc_info=True)
  File "/home/baruwa/px/lib/python2.6/site-packages/pylons/util.py", line
50, in call_wsgi_application
    app_iter = application(environ, start_response)
  File
"/home/baruwa/px/lib/python2.6/site-packages/weberror/errormiddleware.py",
line 156, in __call__
    return self.application(environ, start_response)
  File
"/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py",
line 65, in __call__
    ids = self.identify(environ, classification)
  File
"/home/baruwa/px/lib/python2.6/site-packages/repoze/who/middleware.py",
line 162, in identify
    identity = plugin.identify(environ)
  File
"/home/baruwa/px/lib/python2.6/site-packages/repoze/who/plugins/friendlyform.py",
line 122, in identify
    request = Request(environ, charset=self.charset)
  File "/home/baruwa/px/lib/python2.6/site-packages/webob/request.py", line
138, in __init__
    "req.decode(charset)``" % charset
DeprecationWarning: You passed charset='iso-8859-1' to the Request
constructor. As of WebOb 1.2, if your application needs a non-UTF-8 request
charset, please construct the request without a charset or with a charset
of 'None',  then use ``req = req.decode(charset)``
----------------------------------------


So now I'm lost again ... does anyone else have this problem? Any solutions?

mvh
Mikael Syska
_______________________________________________
http://pledgie.com/campaigns/12056

Reply via email to