jayvdb created this task.
jayvdb added subscribers: pywikipedia-bugs, jayvdb, Aklapper.
jayvdb added a project: pywikibot-core.
TASK DESCRIPTION
The lonelypages script only has a dictionary of languages, and if an entry exists in the dictionary for the site language, the script runs.
As a result of a very recent i18n change (https://gerrit.wikimedia.org/r/#/c/199579/), this means that the script runs on wikidata using the English configuration, even though this is inappropriate as the template {{Orphan}} in the English configuration is not present on that site (https://www.wikidata.org/wiki/Template:Orphan).
TASK DETAIL
https://phabricator.wikimedia.org/T94680
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: Aklapper, jayvdb, pywikipedia-bugs
XZise created this task.
XZise added a subscriber: XZise.
XZise added a project: pywikibot-core.
TASK DESCRIPTION
Similar to T74847 the wikibase settings are hardcoded into the family files. There is [[https://en.wikipedia.org/w/api.php?action=query&meta=wikibase|`action=query…]] which would allow to make dynamically if the API plays along. In T74847 a very nasty problem surfaced which made it at least very hard to determine the Site object parameter (basically which family and code it uses) based on the result (see T85153).
So part of this task is also to determine if this API call has the same problem so other wikibase installations in the wild should be queried (or more exact: installations which use another wikibase). At least from the result of the English Wikipedia it should be easy to get a Site object because it's possible to construct the URL similar to the interwiki map URL for which we already have an implementation.
TASK DETAIL
https://phabricator.wikimedia.org/T85331
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 added a subscriber: jayvdb.
jayvdb added projects: pywikibot-core, pywikibot-compat.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
SVN format 29 was supported last time I used an SVN checkout (Aug 2014 for 9a2d001c and 7a6dbf4d)
Now SVN on my Fedora box fails with
```[workarea] is too old (format 29) to work with client version '1.8.11 (r1643975)' (expects format 31). You need to upgrade the working copy first.```
After upgrading the SVN, the following error occurs in both core and compat (slightly different backtrace, failing much earlier):
```
core$ python pwb.py shell
WARNING: ...pywikibot/tools/ip.py:37: ImportWarning: ipaddress backport is defective; patching.
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> pywikibot.getversiondict()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../pywikibot/tools/__init__.py", line 1158, in __getattr__
return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'getversiondict'
>>> pywikibot.version.getversiondict()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../pywikibot/version.py", line 64, in getversiondict
(tag, rev, date, hsh) = getversion_svn(_program_dir)
File ".../pywikibot/version.py", line 171, in getversion_svn
tag, rev, date = svn_rev_info(_program_dir)
File ".../pywikibot/version.py", line 102, in svn_rev_info
entries = open(os.path.join(_program_dir, '.svn/entries'))
IOError: [Errno 2] No such file or directory: '.../.svn/entries'
```
```
compat$ python pwb.py shell
setting UA
Traceback (most recent call last):
File "pwb.py", line 50, in <module>
import userlib
File ".../userlib.py", line 13, in <module>
import wikipedia as pywikibot
File ".../wikipedia.py", line 6063, in <module>
versionrev=(version.getversiondict()["rev"])
File ".../pywikibot/version.py", line 68, in getversiondict
(tag, rev, date, hsh) = getversion_svn(_program_dir)
File ".../pywikibot/version.py", line 128, in getversion_svn
entries = open(os.path.join(_program_dir, '.svn/entries'))
IOError: [Errno 2] No such file or directory: '.../.svn/entries'
```
And the `entries` file is missing from the `.svn` directory.
core$ ls .svn
pristine tmp wc.db
TASK DETAIL
https://phabricator.wikimedia.org/T95075
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, jayvdb, Aklapper, Anshoe
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added projects: pywikibot-core, pywikibot-compat.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
pywikibot has had special support for SVN version 1.6 and earlier, by manually parsing the SVN __undocumented__ `entries` file (version 11 or earlier).
getversion_svn in the first revision (82d7a63) of core's version.py parsed `entries` and returned a **formatted** `tag` using
```
tag = '[%s] %s' % (t[0], t[1])
```
79843a6 then used this tag value in a URL to github.com to obtain a hash, resulting in an error from github, and an exception in Python. `tag` was updated for SVN v1.7+, but not v1.6 and earlier.
(after creating a .svn/entries in the version 10 file format)
```
core$ python pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> pywikibot.version.getversion_svn()
WARNING: Http response status 400
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../pywikibot/version.py", line 184, in getversion_svn
hsh = github_svn_rev2hash(tag, rev)
File ".../pywikibot/version.py", line 166, in github_svn_rev2hash
dom = xml.dom.minidom.parse(StringIO(data))
File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1921, in parse
return expatbuilder.parse(file)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 928, in parse
result = builder.parseFile(file)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
ExpatError: undefined entity: line 13, column 20
```
(the same bug appears in compat.)
TASK DETAIL
https://phabricator.wikimedia.org/T95077
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, jayvdb, Aklapper, Anshoe