You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the uninformative title but I simply do not understand enough about CKAN to specify better what is going on. We are finally migrating to CKAN 2.9 and Python 3 and are having a lot of problems, proposedly related to our custom extensions. Or something. We are now in a state where CKAN starts normally and works for the most part, but there are areas in the UI which cause an error when visited. For the most part these problems have been solved based on the guide "Migration from Pylons to Flask" i.e. fixing routes etc. However, each fix has been rather difficult to find, as the error message is always the same:
2023-04-11 17:18:28,403 ERROR [ckan.config.middleware.flask_app] invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/ckan/default/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware/../../views/group.py", line 457, in read
extra_vars)
File "/usr/lib/ckan/default/src/ckan/ckan/lib/base.py", line 151, in render
return flask_render_template(template_name, **extra_vars)
File "/usr/lib/ckan/default/lib/python3.6/site-packages/flask/templating.py", line 140, in render_template
ctx.app,
File "/usr/lib/ckan/default/lib/python3.6/site-packages/flask/templating.py", line 120, in _render
rv = template.render(context)
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/environment.py", line 774, in handle_exception
traceback = _make_traceback(exc_info, source_hint)
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/debug.py", line 140, in make_traceback
return translate_exception(exc_info, initial_skip)
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/debug.py", line 182, in translate_exception
lineno = template.get_corresponding_lineno(tb.tb_lineno)
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/environment.py", line 1112, in get_corresponding_lineno
for template_line, code_line in reversed(self.debug_info):
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/environment.py", line 1128, in debug_info
self._debug_info.split('&')]
File "/usr/lib/ckan/default/lib/python3.6/site-packages/jinja2/environment.py", line 1127, in <listcomp>
return [tuple(imap(int, x.split('='))) for x in
ValueError: invalid literal for int() with base 10: ''
I would very much like to know if it is possible to move past this somehow and get more informative error messages. For example, now we have a situation where opening the organization page works for most organizations but not one. The above does not really give any clues why this is happening...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear group,
Sorry for the uninformative title but I simply do not understand enough about CKAN to specify better what is going on. We are finally migrating to CKAN 2.9 and Python 3 and are having a lot of problems, proposedly related to our custom extensions. Or something. We are now in a state where CKAN starts normally and works for the most part, but there are areas in the UI which cause an error when visited. For the most part these problems have been solved based on the guide "Migration from Pylons to Flask" i.e. fixing routes etc. However, each fix has been rather difficult to find, as the error message is always the same:
I would very much like to know if it is possible to move past this somehow and get more informative error messages. For example, now we have a situation where opening the organization page works for most organizations but not one. The above does not really give any clues why this is happening...
Thanks for any ideas,
Sam
Beta Was this translation helpful? Give feedback.
All reactions