exception while opening the web interface

71 views
Skip to first unread message

Pugacs

unread,
Nov 12, 2011, 6:50:27 AM11/12/11
to PyF Framework Users
I installed Pyf with python 2.7.2 inside a virtualenv.
Successfully run the command pyfservices-setup pyfservices.ini

Now when I try to launch the web interface with the following command
paster serve pyfservices.ini and load the page on http://localhost:8080/
I get the following error:

Exception happened during processing of request from ('127.0.0.1',
39945)
Traceback (most recent call last):
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/paste/
httpserver.py", line 1068, in process_request_in_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in
finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 639, in __init__
self.handle()
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/paste/
httpserver.py", line 442, in handle
BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python2.7/BaseHTTPServer.py", line 343, in handle
self.handle_one_request()
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/paste/
httpserver.py", line 437, in handle_one_request
self.wsgi_execute()
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/paste/
httpserver.py", line 287, in wsgi_execute
self.wsgi_start_response)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/paste/
cascade.py", line 130, in __call__
return self.apps[-1](environ, start_response)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/paste/
registry.py", line 379, in __call__
app_iter = self.application(environ, start_response)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/pylons/
middleware.py", line 163, in __call__
self.app, new_environ, catch_exc_info=True)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/pylons/
util.py", line 48, in call_wsgi_application
app_iter = application(environ, start_response)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/weberror/
errormiddleware.py", line 156, in __call__
return self.application(environ, start_response)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/tg/
configuration.py", line 825, in remover
return app(environ, start_response)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/repoze/tm/
__init__.py", line 24, in __call__
result = self.application(environ, save_status_and_headers)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/repoze/who/
middleware.py", line 65, in __call__
ids = self.identify(environ, classification)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/repoze/who/
middleware.py", line 162, in identify
identity = plugin.identify(environ)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/repoze/who/
plugins/friendlyform.py", line 122, in identify
request = Request(environ, charset=self.charset)
File "/home/digy/temp/pyenf/lib/python2.7/site-packages/webob/
request.py", line 124, 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)``

Juju

unread,
Nov 18, 2011, 5:19:30 AM11/18/11
to PyF Framework Users

I do have the same problem.
I just performed a clean install according to the getting Started
Guide
I choose the fullstack installation method.
I'm not using virtualenv, but I do use python 2.7.2 too.
and I face precisely the same problem.

Any advice for troubleshooting would be appreciated.

FYI I made a succesfull try Few month ago. At this time I was using
python 2.6, is this any clue ?

Regards

Juju

unread,
Nov 22, 2011, 4:17:47 AM11/22/11
to PyF Framework Users
I corrected the firendlyform repoze plugin according to the
deprecation exception.

I now face a new problem :

File "/usr/local/lib/python2.7/dist-packages/TurboGears2-2.1.3-
py2.7.egg/tg/i18n.py", line 61, in setup_i18n
pylons.request.accept_language.best_matches()))
AttributeError: 'AcceptLanguage' object has no attribute
'best_matches'

Juju

unread,
Nov 22, 2011, 6:19:38 AM11/22/11
to PyF Framework Users
Those issues are due to a too young WebOb version.
I was running 1.2.1 beta
everything goes better when downgrading WebOb to 1.1.1

Pugacs

unread,
Nov 22, 2011, 12:42:46 PM11/22/11
to PyF Framework Users
Thank you, this fixed the problem for me also.

I hope this gets fixed inside the project
and will no need manual package downgrade.

Reply all
Reply to author
Forward
0 new messages