Error when retrive changeset from git repos

Issue #393 resolved
Eder Sosa created an issue

{{{ Error - <type 'exceptions.TypeError'>: current() keywords must be strings URL: http://192.168.1.17:5003/selene/changeset/797914d441db4f589369526ba4a1b848204552b8 File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/weberror/errormiddleware.py', line 162 in call app_iter = self.application(environ, sr_checker) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/beaker/middleware.py', line 155 in call return self.wrap_app(environ, session_start_response) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/routes/middleware.py', line 131 in call response = self.app(environ, start_response) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/wsgiapp.py', line 107 in call response = self.dispatch(controller, environ, start_response) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/wsgiapp.py', line 312 in dispatch return controller(environ, start_response) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/rhodecode/lib/base.py', line 150 in call return WSGIController.call(self, environ, start_response) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/controllers/core.py', line 211 in call response = self.dispatch_call() File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/controllers/core.py', line 162 in _dispatch_call response = self._inspect_call(func) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/controllers/core.py', line 105 in _inspect_call result = self._perform_call(func, args) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/controllers/core.py', line 57 in _perform_call return func(args) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/rhodecode/controllers/changeset.py', line 286 in index return render('changeset/changeset.html') File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/templating.py', line 243 in render_mako cache_type=cache_type, cache_expire=cache_expire) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/templating.py', line 218 in cached_template return render_func() File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/pylons/templating.py', line 240 in render_template return literal(template.render_unicode(globs)) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/mako/template.py', line 311 in render_unicode as_unicode=True) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/mako/runtime.py', line 660 in _render kwargs_for_callable(callable, data)) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/mako/runtime.py', line 692 in render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/mako/runtime.py', line 713 in _exec_template _render_error(template, context, e) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/mako/runtime.py', line 722 in _render_error result = template.error_handler(context, error) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/mako/runtime.py', line 711 in _exec_template callable(context, *args, kwargs) File '/var/www/rhodecode13/data/templates/base/root.html.py', line 62 in render_body M_writer(escape(next.body())) File '/var/www/rhodecode13/data/templates/base/base.html.py', line 75 in render_body M_writer(escape(next.main())) File '/var/www/rhodecode13/data/templates/changeset/changeset.html.py', line 248 in render_main M_writer(escape(diff_block.diff_block(c.changes))) File '/var/www/rhodecode13/data/templates/changeset/diff_block.html.py', line 75 in render_diff_block M_writer(escape(c.ignorews_url(h.FID(filenode.changeset.raw_id,filenode.path)))) File '/root/Enviroments/rhodecode13/lib/python2.5/site-packages/rhodecode/controllers/changeset.py', line 97 in _ignorews_url return h.link_to(img, h.url.current(**params), title=lbl, class='tooltip') TypeError: current() keywords must be strings

CGI Variables

CONTENT_LENGTH: '0' CONTENT_TYPE: '; charset="utf-8"' HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8' HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.3' HTTP_ACCEPT_ENCODING: 'gzip,deflate,sdch' HTTP_ACCEPT_LANGUAGE: 'es-419,es;q=0.8' HTTP_CONNECTION: 'keep-alive' HTTP_COOKIE: 'rhodecode=c3dcf07d421d42718968ebbf54a7a50a' HTTP_HOST: '192.168.1.17:5003' HTTP_REFERER: 'http://192.168.1.17:5003/selene/summary' HTTP_USER_AGENT: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.66 Safari/535.11' PATH_INFO: '/selene/changeset/797914d441db4f589369526ba4a1b848204552b8' REMOTE_ADDR: '192.168.1.78' REQUEST_METHOD: 'GET' SERVER_NAME: '192.168.1.17' SERVER_PORT: '5003' SERVER_PROTOCOL: 'HTTP/1.1'

WSGI Variables

application: <beaker.middleware.SessionMiddleware object at 0x26f5450> beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x26f5450>> beaker.session: {'_authentication_token': '528a9af11659c4855a80f154641f2e61917a7c5b', 'rhodecode_user': {'username': u'edersohe', 'is_authenticated': True, 'user_id': 2}, '_accessed_time': 1331081374.6608269, '_creation_time': 1331080512.051971} paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0xa33310> paste.registry: <paste.registry.Registry object at 0x28ad990> paste.throw_errors: True pylons.action_method: <bound method ChangesetController.index of <rhodecode.controllers.changeset.ChangesetController object at 0x34c5dd0>> pylons.controller: <rhodecode.controllers.changeset.ChangesetController object at 0x34c5dd0> pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'} pylons.pylons: <pylons.util.PylonsContext object at 0x34c5850> pylons.routes_dict: {'action': u'index', 'controller': u'changeset', 'revision': u'797914d441db4f589369526ba4a1b848204552b8', 'repo_name': u'selene'} routes.route: <routes.route.Route object at 0x23b6a50> routes.url: <routes.util.URLGenerator object at 0x34c5290> webob._parsed_query_vars: (GET([]), '') webob.adhoc_attrs: {'user': <AuthUser('id:2:edersohe|True')>, 'language': 'en-us'} wsgi process: 'Multithreaded' wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x34c5290>, {'action': u'index', 'controller': u'changeset', 'revision': u'797914d441db4f589369526ba4a1b848204552b8', 'repo_name': u'selene'})


}}}

Comments (4)

  1. Marcin Kuzminski repo owner

    p2.5 problem i runn tests on p2.5 and didn't had this exception, can you give me a reproducible example. ps. switching away from py2.5 to something newer will resolve this issue it's 2012 !

  2. Eder Sosa reporter

    I install python 2.6.7 manually in ubuntu 8.04 and everything works fine. Maybe into installation instructions you should recommend python 2.6 or newest. Thanks.

  3. Log in to comment