XZise added a subscriber: XZise.
XZise added a comment.
Yeah that doesn't work for wikidata. It has two “languages”: “wikidata” and “test” so it won't automatically choose “wikidata” if the language doesn't match. This is actually https://phabricator.wikimedia.org/T71255.
TASK DETAIL
https://phabricator.wikimedia.org/T85645
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: pywikipedia-bugs, Aklapper, Unicornisaurous, jayvdb, XZise
Unicornisaurous added a comment.
Hmm, that isn't working for me. Now its failing differently:
Traceback (most recent call last):
File "/path/to/core/tests/aspects.py", line 455, in setUpClass
super(CheckHostnameMixin, cls).setUpClass()
File "/path/to/core/tests/aspects.py", line 816, in setUpClass
interface=interface)
File "/path/to/core/pywikibot/__init__.py", line 600, in Site
_sites[key] = interface(code=code, fam=fam, user=user, sysop=sysop)
File "/path/to/core/pywikibot/site.py", line 1514, in __init__
BaseSite.__init__(self, code, fam, user, sysop)
File "/path/to/core/pywikibot/site.py", line 518, in __init__
% (self.__code, self.__family.name))
UnknownSite: Language 'en' does not exist in family wikidata
TASK DETAIL
https://phabricator.wikimedia.org/T85645
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Unicornisaurous
Cc: pywikipedia-bugs, Aklapper, Unicornisaurous, jayvdb
jayvdb added a comment.
The final fix for this problem is probably going to depend on https://phabricator.wikimedia.org/T71255 , which is a complex but low priority problem.
As an interim measure, you should be able use the following in your user-config.py to bypass this problem
family = 'wikidata'
mylang = 'en'
That should let you continue to find other bugs in using the date module when used with Wikidata.
(Also, due to https://phabricator.wikimedia.org/T85331 not being implemented, you'll need to test using the 'wikidata' family distributed as pywikibot/families/wikidata_family.py , as it has hard-coded data needed to use wikidata)
TASK DETAIL
https://phabricator.wikimedia.org/T85645
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: pywikipedia-bugs, Aklapper, Unicornisaurous, jayvdb
XZise created this task.
XZise added a subscriber: XZise.
XZise added a project: pywikibot-core.
TASK DESCRIPTION
When using `-debug` it causes an exception on exit:
`$ python pwb.py touch -family:beta -lang:en -page:0.5332966154956742 -debug
Retrieving 1 pages from beta:en.
Sleeping for 8.8 seconds, 2014-12-30 01:32:09
Page [[0.5332966154956742]] saved
--- Logging error ---
Traceback (most recent call last):`
This is all, there is no traceback. I'm using Python 3.4.2.
I'm also not sure if the log rotation does work. It creates one file and overwrites it over and over again (although that happens also with `-log`).
TASK DETAIL
https://phabricator.wikimedia.org/T85500
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Aklapper, XZise, jayvdb, pywikipedia-bugs
jayvdb created this task.
jayvdb assigned this task to Omegat.
jayvdb added subscribers: pywikipedia-bugs, jayvdb, XZise, Grunny.
jayvdb added projects: PyWikiBot-Interwiki-Map, pywikibot-core, Pywikibot-tests.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Search on the Wikia website appears to work fine
http://www.wikia.com/Special:Search?search=foo&fulltext=Searchhttp://www.wikia.com/Special:Search?search=Seuss&fulltext=Search
But errors result from calling the api, search on text or title
http://www.wikia.com/api.php?format=jsonfm&action=query&generator=search&gs…http://www.wikia.com/api.php?format=jsonfm&action=query&generator=search&gs…
But a near match search does appear to be working.
http://www.wikia.com/api.php?format=jsonfm&action=query&generator=search&gs…
but not returning results which do appear on the search page.
http://www.wikia.com/api.php?format=jsonfm&action=query&generator=search&gs…
This is causing a test error in site_tests.SiteUserTestCase.testSearch
```
Traceback (most recent call last):
File "./tests/site_tests.py", line 887, in testSearch
se = list(mysite.search("wiki", total=100))
File "./pywikibot/data/api.py", line 1452, in __iter__
self.data = self.request.submit()
File "./pywikibot/data/api.py", line 1071, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: gsrsearch-text-disabled: text search is disabled
```
The simplest fix for the test suite is to catch and detect 'gsrsearch-text-disabled' - when the API returns that error, use unittest.SkipTest to skip the test without causing a test failure.
Longer term pywikibot needs to detect that search is disabled, like we detect whether upload is enabled in APISite.is_uploaddisabled.
TASK DETAIL
https://phabricator.wikimedia.org/T77968
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: Omegat, jayvdb
Cc: Aklapper, jayvdb, XZise, Grunny, pywikipedia-bugs