milicp / ckanext-lire

CKAN extension for managing datasets relationships
7 stars 12 forks source link

TypeError: notify() takes exactly 3 arguments (2 given) #3

Open m-sinclair opened 8 years ago

m-sinclair commented 8 years ago

After adding this extension if I attempt to add any new datasets this error is shown.

CKAN 2.41 - no other extensions installed other than the default.

slarrain commented 7 years ago

Can confirm the same is happening on CKAN 2.7 on Ubuntu 14.04

sansarip commented 6 years ago

Using the Docker installation. Happens on CKAN 2.8 on Ubuntu 16.04 as well:

ckan          | Error - <type 'exceptions.TypeError'>: notify() takes exactly 3 arguments (2 given)
ckan          | URL: http://ec2-52-61-33-61.us-gov-west-1.compute.amazonaws.com:5000/dataset/new_resource/testset2
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/weberror/errormiddleware.py', line 171 in __call__
ckan          |   app_iter = self.application(environ, sr_checker)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
ckan          |   resp = self.call_func(req, *args, **self.kwargs)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
ckan          |   return self.func(req, *args, **kwargs)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/fanstatic/publisher.py', line 234 in __call__
ckan          |   return request.get_response(self.app)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
ckan          |   application, catch_exc_info=False)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
ckan          |   app_iter = application(self.environ, start_response)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
ckan          |   resp = self.call_func(req, *args, **self.kwargs)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
ckan          |   return self.func(req, *args, **kwargs)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/fanstatic/injector.py', line 54 in __call__
ckan          |   response = request.get_response(self.app)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
ckan          |   application, catch_exc_info=False)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
ckan          |   app_iter = application(self.environ, start_response)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/config/middleware/pylons_app.py', line 265 in inner
ckan          |   result = application(environ, start_response)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/beaker/middleware.py', line 73 in __call__
ckan          |   return self.app(environ, start_response)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/beaker/middleware.py', line 156 in __call__
ckan          |   return self.wrap_app(environ, session_start_response)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/routes/middleware.py', line 131 in __call__
ckan          |   response = self.app(environ, start_response)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/config/middleware/common_middleware.py', line 30 in __call__
ckan          |   return self.app(environ, start_response)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/config/middleware/common_middleware.py', line 56 in __call__
ckan          |   return self.app(environ, start_response)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 125 in __call__
ckan          |   response = self.dispatch(controller, environ, start_response)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 324 in dispatch
ckan          |   return controller(environ, start_response)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/lib/base.py', line 240 in __call__
ckan          |   res = WSGIController.__call__(self, environ, start_response)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 221 in __call__
ckan          |   response = self._dispatch_call()
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call
ckan          |   response = self._inspect_call(func)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
ckan          |   result = self._perform_call(func, args)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call
ckan          |   return func(**args)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/controllers/package.py', line 712 in new_resource
ckan          |   dict(data_dict, state='active'))
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/logic/__init__.py', line 464 in wrapped
ckan          |   result = _action(context, data_dict, **kw)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/logic/action/update.py', line 337 in package_update
ckan          |   model.repo.commit()
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/vdm/sqlalchemy/tools.py', line 107 in commit
ckan          |   self.session.commit()
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py', line 157 in do
ckan          |   return getattr(self.registry(), name)(*args, **kwargs)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py', line 906 in commit
ckan          |   self.transaction.commit()
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py', line 461 in commit
ckan          |   self._prepare_impl()
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py', line 430 in _prepare_impl
ckan          |   self.session.dispatch.before_commit(self.session)
ckan          | File '/usr/lib/ckan/venv/local/lib/python2.7/site-packages/sqlalchemy/event/attr.py', line 256 in __call__
ckan          |   fn(*args, **kw)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/model/extension.py', line 107 in before_commit
ckan          |   methodcaller('before_commit', session)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/model/extension.py', line 88 in notify_observers
ckan          |   func(observer)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/model/modification.py', line 28 in before_commit
ckan          |   self.notify_observers(session, self.notify)
ckan          | File '/usr/lib/ckan/venv/src/ckan/ckan/model/modification.py', line 54 in notify_observers
ckan          |   item.notify(obj)
ckan          | TypeError: notify() takes exactly 3 arguments (2 given)