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
We've upgraded our Wiki to a new version of mediaWiki and now ceterach doesn't work anymore.
Here's the dump:
File "/home/cad/anaconda/Anaconda3-2020.11/lib/python3.8/site-packages/ceterach-0.0.1-py3.8.egg/ceterach/utils.py", line 42, in wrapped
if not hasattr(self, attr): self.load_attributes()
File "/home/cad/anaconda/Anaconda3-2020.11/lib/python3.8/site-packages/ceterach-0.0.1-py3.8.egg/ceterach/page.py", line 107, in load_attributes
self.__load(res)
File "/home/cad/anaconda/Anaconda3-2020.11/lib/python3.8/site-packages/ceterach-0.0.1-py3.8.egg/ceterach/page.py", line 128, in __load
res = res or next(i(kwargs, use_defaults=False))
File "/home/cad/anaconda/Anaconda3-2020.11/lib/python3.8/site-packages/ceterach-0.0.1-py3.8.egg/ceterach/api.py", line 384, in olditerator
res = self.call(params, rawcontinue='', **more_params)
File "/home/cad/anaconda/Anaconda3-2020.11/lib/python3.8/site-packages/ceterach-0.0.1-py3.8.egg/ceterach/api.py", line 271, in call
return self._call(params, more_params, use_defaults=use_defaults)
File "/home/cad/phozone/latest/python/mwiki.py", line 140, in dbg_call
raise raiseme
CeterachError: You need read permission to use this module.
I managed to hack a copy of api._call and print out the input parameters:
{'error': {'code': 'readapidenied', 'info': 'You need read permission to use this module.', '*': 'See http://wiki.phoelex.com/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.'}}
We've upgraded our Wiki to a new version of mediaWiki and now ceterach doesn't work anymore.
Here's the dump:
I managed to hack a copy of api._call and print out the input parameters:
the return json is:
There's a similar problem in the java api which is fixed by calling their "setVersion" function - it's described in stackoverflow here: https://stackoverflow.com/questions/57146687/how-to-fix-readapidenied-error-on-mediawiki-api-in-java
So I'm guessing that something changed in the versions of Wiki that means running a query through the api must be done differently.
The text was updated successfully, but these errors were encountered: