off-topic, i was very close to literally kick our sysadmin's ass. thankfully he's gone and all servers base are belong to us. :)
On 20 Kasım, 12:37, Robert Liebeskind <rob.liebesk...@gmail.com> wrote: > Thanks for your fast response Alessandro. I have asked the Sysadmin and am > hopeful he will say yes. I mentioned to him that I was using virtualenv on > my Mac but I do not think this meant anything to him at the time I said it. > > FYI, the error I am encountering with a 2.0 implementation of my site is > below. It ends with this " File > "/usr/local/lib/python2.7/site-packages/TurboGears2-2.1.3-py2.7.egg/tg/i18n.py", > line 61, in setup_i18n > pylons.request.accept_language.best_matches())) > AttributeError: 'NilAccept' object has no attribute 'best_matches'" > > Interesting to me that it is looking at a 2.1.3 egg despite the fact that > this is a TG2.0 install. Perhaps you can see something obvious that I am > missing in the traceback. Thank you in advance for taking the time to read > this. > > Regards, Rob. > > Error - <type 'exceptions.AttributeError'>: 'NilAccept' object has no > attribute 'best_matches' > URL:http://127.0.0.1/ > File > '/usr/local/lib/python2.7/site-packages/WebError-0.10.3-py2.7.egg/weberror/errormiddleware.py', > line 162 in __call__ > app_iter = self.application(environ, sr_checker) > File > '/usr/local/lib/python2.7/site-packages/TurboGears2-2.1.3-py2.7.egg/tg/configuration.py', > line 825 in remover > return app(environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/repoze.tm2-1.0b2-py2.7.egg/repoze/tm/__init__.py', > line 24 in __call__ > result = self.application(environ, save_status_and_headers) > File > '/usr/local/lib/python2.7/site-packages/repoze.who-1.0.19-py2.7.egg/repoze/who/middleware.py', > line 107 in __call__ > app_iter = app(environ, wrapper.wrap_start_response) > File > '/usr/local/lib/python2.7/site-packages/ToscaWidgets-0.9.12-py2.7.egg/tw/core/middleware.py', > line 46 in __call__ > return self.wsgi_app(environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/ToscaWidgets-0.9.12-py2.7.egg/tw/core/middleware.py', > line 72 in wsgi_app > resp = req.get_response(self.application) > File 'build/bdist.freebsd-8.2-STABLE-amd64/egg/webob/request.py', line 1149 > in get_response > application, catch_exc_info=False) > File 'build/bdist.freebsd-8.2-STABLE-amd64/egg/webob/request.py', line 1118 > in call_application > app_iter = application(self.environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/ToscaWidgets-0.9.12-py2.7.egg/tw/core/resource_injector.py', > line 70 in _injector > resp = req.get_response(app) > File 'build/bdist.freebsd-8.2-STABLE-amd64/egg/webob/request.py', line 1149 > in get_response > application, catch_exc_info=False) > File 'build/bdist.freebsd-8.2-STABLE-amd64/egg/webob/request.py', line 1118 > in call_application > app_iter = application(self.environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/Beaker-1.5.4-py2.7.egg/beaker/middleware.py', > line 73 in __call__ > return self.app(environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/Beaker-1.5.4-py2.7.egg/beaker/middleware.py', > line 152 in __call__ > return self.wrap_app(environ, session_start_response) > File > '/usr/local/lib/python2.7/site-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py', > line 131 in __call__ > response = self.app(environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py', > line 107 in __call__ > response = self.dispatch(controller, environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py', > line 312 in dispatch > return controller(environ, start_response) > File '/usr/home/robl/TG20Test/tg20test/lib/base.py', line 31 in __call__ > return TGController.__call__(self, environ, start_response) > File > '/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', > line 211 in __call__ > response = self._dispatch_call() > File > '/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', > line 162 in _dispatch_call > response = self._inspect_call(func) > File > '/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', > line 105 in _inspect_call > result = self._perform_call(func, args) > File > '/usr/local/lib/python2.7/site-packages/TurboGears2-2.1.3-py2.7.egg/tg/controllers/dispatcher.py', > line 230 in _perform_call > setup_i18n() > File > '/usr/local/lib/python2.7/site-packages/TurboGears2-2.1.3-py2.7.egg/tg/i18n.py', > line 61 in setup_i18n > pylons.request.accept_language.best_matches())) > AttributeError: 'NilAccept' object has no attribute 'best_matches' > > CGI Variables > ------------- > CONTENT_LENGTH: '0' > HTTP_ACCEPT: '*/*' > HTTP_CONNECTION: 'Keep-Alive' > HTTP_HOST: '127.0.0.1' > HTTP_USER_AGENT: 'Wget/1.13.4 (freebsd8.2)' > PATH_INFO: '/' > REMOTE_ADDR: '127.0.0.1' > REQUEST_METHOD: 'GET' > SERVER_NAME: '127.0.0.1' > SERVER_PORT: '80' > SERVER_PROTOCOL: 'HTTP/1.1' > > WSGI Variables > -------------- > application: <function remover at 0x805a31050> > beaker.cache: <beaker.cache.CacheManager object at 0x80571e390> > beaker.get_session: <bound method SessionMiddleware._get_session of > <beaker.middleware.SessionMiddleware object at 0x80571e310>> > beaker.session: {'_accessed_time': 1321785268.427042, '_creation_time': > 1321785268.427042} > paste.cookies: (<SimpleCookie: >, '') > paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at > 0x806068cd0> > paste.registry: <paste.registry.Registry object at 0x806f19a10> > paste.throw_errors: True > pylons.action_method: <bound method RootController.routes_placeholder of > <tg20test.controllers.root.RootController object at 0x806f20890>> > pylons.controller: <tg20test.controllers.root.RootController object at > 0x806f20890> > pylons.environ_config: {'session': 'beaker.session', 'cache': > 'beaker.cache'} > pylons.pylons: <pylons.util.PylonsContext object at 0x806f20850> > pylons.routes_dict: {'url': u'/', 'action': u'routes_placeholder', > 'controller': u'root'} > repoze.tm.active: True > repoze.who.logger: <logging.Logger object at 0x802767c50> > repoze.who.plugins: {'form': <FriendlyFormPlugin 34451847376>, > 'main_identifier': <FriendlyFormPlugin 34451847376>, 'authorization_md': > <repoze.what.middleware.AuthorizationMetadata object at 0x8057d7950>, > 'cookie': <AuthTktCookiePlugin 34451847312>, 'sqlauth': > <repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x8057d7850>, > 'sql_user_md': <repoze.who.plugins.sa.SQLAlchemyUserMDPlugin object at > 0x8057d7910>} > routes.route: <routes.route.Route object at 0x8054b1710> > routes.url: <routes.util.URLGenerator object at 0x806f50190> > toscawidgets.framework: <tw.mods.base.HostFramework object at 0x80571e410> > toscawidgets.javascript.require_once: False > toscawidgets.prefix: '/toscawidgets' > webob._parsed_query_vars: (GET([]), '') > webob.adhoc_attrs: {'identity': None, 'language': 'en-us'} > wsgi process: 'Multithreaded' > wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x806f50190>, > {'url': u'/', 'action': u'routes_placeholder', 'controller': u'root'}) > ------------------------------------------------------------ > ---------------------------------------- > Exception happened during processing of request from ('127.0.0.1', 43083) > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", > line 1068, in process_request_in_thread > self.finish_request(request, client_address) > File "/usr/local/lib/python2.7/SocketServer.py", line 323, in finish_request > self.RequestHandlerClass(request, client_address, self) > File "/usr/local/lib/python2.7/SocketServer.py", line 639, in __init__ > self.handle() > File > "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", > line 442, in handle > BaseHTTPRequestHandler.handle(self) > File "/usr/local/lib/python2.7/BaseHTTPServer.py", line 343, in handle > self.handle_one_request() > File > "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", > line 437, in handle_one_request > self.wsgi_execute() > File > "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", > line 287, in wsgi_execute > self.wsgi_start_response) > File > "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/cascade.py", > line 130, in __call__ > return self.apps[-1](environ, start_response) > File > "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/registry.py", > line 379, in __call__ > app_iter = self.application(environ, start_response) > File > "/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/middleware.py", > line 163, in __call__ > self.app, new_environ, catch_exc_info=True) > File > "/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/util.py", > line 48, in call_wsgi_application > app_iter = application(environ, start_response) > File > "/usr/local/lib/python2.7/site-packages/WebError-0.10.3-py2.7.egg/weberror/errormiddleware.py", > line 156, in __call__ > return self.application(environ, start_response) > File > "/usr/local/lib/python2.7/site-packages/TurboGears2-2.1.3-py2.7.egg/tg/configuration.py", > line 825, in remover > return app(environ, start_response) > File > "/usr/local/lib/python2.7/site-packages/repoze.tm2-1.0b2-py2.7.egg/repoze/tm/__init__.py", > line 24, in __call__ > result = self.application(environ, save_status_and_headers) > File > "/usr/local/lib/python2.7/site-packages/repoze.who-1.0.19-py2.7.egg/repoze/who/middleware.py", > line 107, in __call__ > app_iter = app(environ, wrapper.wrap_start_response) > File > "/usr/local/lib/python2.7/site-packages/ToscaWidgets-0.9.12-py2.7.egg/tw/core/middleware.py", > line 46, in __call__ > return self.wsgi_app(environ, start_response) > File > "/usr/local/lib/python2.7/site-packages/ToscaWidgets-0.9.12-py2.7.egg/tw/core/middleware.py", > line 72, in wsgi_app > resp = req.get_response(self.application) > File "build/bdist.freebsd-8.2-STABLE-amd64/egg/webob/request.py", line > 1149, in get_response > application, catch_exc_info=False) > File "build/bdist.freebsd-8.2-STABLE-amd64/egg/webob/request.py", line > 1118, in > ... > > tamamını oku » -- You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to turbogears-trunk@googlegroups.com. To unsubscribe from this group, send email to turbogears-trunk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en.