WolfgangFahl added a comment.
This is all i have. See https://github.com/WolfgangFahl/py-3rdparty-mediawiki/blob/067d2291e79c2f73726c177ac0dc3a889d43ef19/tests/test_SMWApi.py#L148. With scriptpath returning "/" the behavior shown in the log below happened. https://github.com/WolfgangFahl/py-3rdparty-mediawiki/commit/067d2291e79c2f73726c177ac0dc3a889d43ef19 fixed this - the family python file is generated and now has the changes. cat wf_smwcopy.py # -*- coding: utf-8 -*- from pywikibot import family class Family(family.Family): name = 'smwcopy' langs = { 'en': 'smw.bitplan.com', } def scriptpath(self, code): return '' def isPublic(self): return True def version(self, code): return "1.35.0" # The MediaWiki version used. Very important in most cases. (contrary to documentation) def protocol(self, code): return 'http' ====================================================================== ERROR: testSMWAsk (tests.test_SMWApi.TestSMW) test getting the unserialized json result of an ask query ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/runner/work/py-3rdparty-mediawiki/py-3rdparty-mediawiki/tests/test_SMWApi.py", line 161, in testSMWAsk self.checkExpected(TestSMW.testask1,expectedRecords) File "/home/runner/work/py-3rdparty-mediawiki/py-3rdparty-mediawiki/tests/test_SMWApi.py", line 137, in checkExpected result=self.getAskResult(smw,ask) File "/home/runner/work/py-3rdparty-mediawiki/py-3rdparty-mediawiki/tests/test_SMWApi.py", line 129, in getAskResult result=smw.query(ask,limit=limit) File "/home/runner/work/py-3rdparty-mediawiki/py-3rdparty-mediawiki/wikibot/smw.py", line 603, in query rawresult=self.rawquery(ask,limit=limit) File "/home/runner/work/py-3rdparty-mediawiki/py-3rdparty-mediawiki/wikibot/smw.py", line 596, in rawquery result=self.submit(parameters) File "/home/runner/work/py-3rdparty-mediawiki/py-3rdparty-mediawiki/wikibot/smw.py", line 581, in submit return request.submit() File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/pywikibot/data/api.py", line 1758, in submit paramstring) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/pywikibot/data/api.py", line 1510, in _http_request self.wait() File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/pywikibot/data/api.py", line 1883, in wait Error: raise TimeoutError('Maximum retries attempted without success.') pywikibot.exceptions.TimeoutError: Maximum retries attempted without success. TASK DETAIL https://phabricator.wikimedia.org/T297994 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, WolfgangFahl Cc: Xqt, pywikibot-bugs-list, Aklapper, WolfgangFahl, 786, Suran38, Biggs657, Lalamarie69, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
