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
Rubin16 created this task.
Rubin16 added subscribers: pywikipedia-bugs, Rubin16.
Rubin16 added a project: pywikibot-core.
Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION
It is quite a strange problem that I observe for a long time and I am not sure how to reproduce it...
I am running the latest reflinks.py from core on Labs:
https://ru.wikipedia.org/w/index.php?limit=50&tagfilter=&title=Служебная%3A…
As you can see from the bot's contributions, the bot starts working well but then stop editing while logs on the labs show that the script is still running and the bot even saves pages...
For example, I see in the recent output the following:
```
@@ -57 +57 @@
- Na sed'moj den' s"лmok v ofise odnoj iz kinokompanij, osushchestvlyayushchikh proizvodstvo fil'ma, prorvalo trubu, i ofis byl zatoplen. Stoit otmetit', chto syuzhet i sobytiya fil'ma tesno svyazany s vodnoj sredoj. Odnako na иtom strannye sluchai ne konchilis': vo vremya s"лmok rekvizitnyj furgon «okkupiroval» roj pchлl, v svyazi s иtim ves' rekvizit prishlos' spasat'. Pchлly ischezli tak zhe vnezapno, kak i poyavilis'. Takzhe v uzhe upomyanutom ofise opyat' proizoshlo zatoplenie - na иtot raz vinovnikom иtogo stal razlivshijsya bol'shoj kontejner s vodoj. Strannyj sluchaj proizoshлl i s kostyumershej fil'ma - vyjdya s parkovki, nakhodyashchejsya na territorii studii ''[[Universal Pictures]]'', ona uvidela begushchego k nej po asfal'tu olenya. V иtom sluchae takzhe proslezhivaetsya svyaz' s sobytiyami fil'ma, gde mozhno videt' pokhozhuyu scenu.<ref name="amr">[http://www.kinopoisk.ru/level/1/film/61305/view_info/ok/ Informaciya o fil'me na kinopoisk.ru]</ref>
Suevernyj Khidиo Nakata posle podobnykh proisshestvij pribegal k ritualu izgnaniya zlykh dukhov. ***
+ Na sed'moj den' s"лmok v ofise odnoj iz kinokompanij, osushchestvlyayushchikh proizvodstvo fil'ma, prorvalo trubu, i ofis byl zatoplen. Stoit otmetit', chto syuzhet i sobytiya fil'ma tesno svyazany s vodnoj sredoj. Odnako na иtom strannye sluchai ne konchilis': vo vremya s"лmok rekvizitnyj furgon «okkupiroval» roj pchлl, v svyazi s иtim ves' rekvizit prishlos' spasat'. Pchлly ischezli tak zhe vnezapno, kak i poyavilis'. Takzhe v uzhe upomyanutom ofise opyat' proizoshlo zatoplenie - na иtot raz vinovnikom иtogo stal razlivshijsya bol'shoj kontejner s vodoj. Strannyj sluchaj proizoshлl i s kostyumershej fil'ma - vyjdya s parkovki, nakhodyashchejsya na territorii studii ''[[Universal Pictures]]'', ona uvidela begushchego k nej po asfal'tu olenya. V иtom sluchae takzhe proslezhivaetsya svyaz' s sobytiyami fil'ma, gde mozhno videt' pokhozhuyu scenu.<ref name=autogenerated1>[http://www.kinopoisk.ru/level/1/film/61305/view_info/ok/ Informaciya o fil'me na
kinopoisk.ru]</ref> Suevernyj Khidиo Nakata posle podobnykh proisshestvij pribegal k ritualu izgnaniya zlykh dukhov. ***
Comment: bot: dobavlenie zagolovkov v snoski; ispravlenie dvojnykh snosok, sm. [[mw:Manual:Pywikibot/refLinks|ChaVo]] ***
```
That's the edit in the following article:
https://ru.wikipedia.org/w/index.php?title=%D0%97%D0%B2%D0%BE%D0%BD%D0%BE%D…
Though the bot says that the page was edited, there was no actual changes in the history.
I am gonna clean up the logs and start the bot again but if you have advice how to catch the problems and the issue, I will be glad to use your instructions.
For information: I run the bot by the following command:
```
jsub -N reflinks -once -continuous -mem 2048M sh refs.sh
```
TASK DETAIL
https://phabricator.wikimedia.org/T94688
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: Rubin16
Cc: Aklapper, Rubin16, jayvdb, pywikipedia-bugs