valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikibot-bugs.
TASK DESCRIPTION
```
(pywikibot)valhallasw@tools-bastion-01:~/pywikibot$
/shared/pywikipedia/core/pwb.py
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
This happens both on precise and trusty.
```
ERROR: Traceback (most recent call last):
File
valhallasw added a comment.
Rough implementation on the sorting end:
import icu
locale = icu.Locale(cs_CZ)
locale.getDisplayName()
u'Czech (Czech Republic)'
collator = icu.Collator.createInstance(locale)
list = [[Kategorie:Česko]]
... [[Kategorie:Čeština
valhallasw added a comment.
@Danny_B: as far as I can see, _cswiktionary_preklady_sort.py already
implements this? I also don't immediately see any existing sort in
cosmetic_changes.py, so I'm not entirely sure anymore what the issue was here...
TASK DETAIL
https://phabricator.wikimedia.org
valhallasw added a project: pywikibot-core.
Restricted Application added a subscriber: pywikibot-bugs-list.
TASK DETAIL
https://phabricator.wikimedia.org/T102174
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: pywikibot-bugs-list
valhallasw added a comment.
But I'm confused by this one as well. As far as I can see, category.py doesn't
sort at all...? it just adds sort keys for MW, as far as I can see.
TASK DETAIL
https://phabricator.wikimedia.org/T100265
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
I haven't checked our code for details, but based on the lack of response to
ctrl-c, I'm guessing this is a blocking wait() without timeout. Googling shows
that requests doesn't set a timeout by default, so that's consistent
valhallasw added a comment.
Is this on tool labs, and is one of these processes still running? Then I can
take a look to check in detail.
TASK DETAIL
https://phabricator.wikimedia.org/T102462
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences
valhallasw added a comment.
And, looking at our code, we indeed do not set a timeout:
https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/comms/http.py#L249
Even if that's not the root cause, setting it sounds like a sane plan.
TASK DETAIL
https://phabricator.wikimedia.org
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Because the put happens in a different thread, the message will be printed,
but the response
valhallasw closed this task as Resolved.
valhallasw claimed this task.
TASK DETAIL
https://phabricator.wikimedia.org/T102314
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: valhallasw, gerritbot, Aklapper, jayvdb, pywikibot-bugs-list
valhallasw placed this task up for grabs.
valhallasw added a subscriber: valhallasw.
TASK DETAIL
https://phabricator.wikimedia.org/T102314
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: valhallasw, gerritbot, Aklapper, jayvdb
valhallasw added a comment.
We can import the bot to bots/misc including history (takes a bit of git magic,
but it's not impossible).
Changing it in such a way that it keeps wikidata up to date also makes sense.
TASK DETAIL
https://phabricator.wikimedia.org/T109210
EMAIL PREFERENCES
valhallasw added a comment.
I'd be OK with removing the parameter altogether.
The only useful parameter would be 'this is the amount of results I expect to
process'. If I'm only interested in the first (or the first five) results,
there is no need to get 50. If I'm interested in all results
valhallasw added a subscriber: Vituzzu.
valhallasw merged a task: T107512: weird behavior of listpages.py.
TASK DETAIL
https://phabricator.wikimedia.org/T93474
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Vituzzu, elyashiv
valhallasw closed this task as a duplicate of T93474: input encoding is
switched to plain ascii when redirecting output to a file or other commands,
mangling non-ascii characters.
TASK DETAIL
https://phabricator.wikimedia.org/T107512
EMAIL PREFERENCES
https://phabricator.wikimedia.org
valhallasw added subscribers: Ladsgroup, Huji.
valhallasw merged a task: T107713: Encoding issue with jsub.
TASK DETAIL
https://phabricator.wikimedia.org/T93474
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Huji, Ladsgroup, Vituzzu
valhallasw changed the title from pywikibot.text does not raise exception for
nonexistent pages to Page.text does not raise exception for nonexistent
pages.
valhallasw added a project: pywikibot-core.
valhallasw set Security to None.
Herald added a subscriber: pywikibot-bugs-list.
TASK DETAIL
valhallasw closed this task as Resolved.
valhallasw claimed this task.
valhallasw added a comment.
We now fall back to utf-8 by default.
TASK DETAIL
https://phabricator.wikimedia.org/T93474
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added projects: pywikibot-core, Easy.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
We do log the returned data:
```
pywikibot.debug((uAPI response received from %s
valhallasw added a comment.
In https://phabricator.wikimedia.org/T106311#1523595, @siebrand wrote:
Please make a change request without a question mark.
After checking with #wikimedia-operations: the correct CNAME is wikimedia.org.,
so please change it to that :-) Thanks!
pywikipedia.org
valhallasw added a comment.
valhallasw@maeglin:operations-puppet$ nslookup
production 2
set type=CNAME
pywikipedia.org
Server
valhallasw added a subscriber: BBlack.
valhallasw added a comment.
Was removed with
https://github.com/wikimedia/operations-dns/commit/a782e3adcb9cdd046b9709870ad4f49dcc992890
So the cname is wrong; the question is: what should it be replaced with...?
TASK DETAIL
https
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
Pywikibot does, for running tests on Windows:
https://ci.appveyor.com/project/wikimedia/pywikibot-core
TASK DETAIL
https://phabricator.wikimedia.org/T104306
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added projects: pywikibot-core, Jenkins.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.
TASK DESCRIPTION
For example:
https://integration.wikimedia.org/ci/job/tox-jessie/1169/console
valhallasw added a comment.
valhallasw@maeglin:pywikibot-core$ grep consoleText -P -e
':\d+:\d+:\s[A-Z]+[0-9]+' | sed -e 's:^./::' | sort | uniq
pywikibot/__init__.py:469:1: E303 too many blank lines (3)
tests/wikibase_tests.py:187:5: E303 too many blank lines (2)
TASK DETAIL
https
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
What's the output of pwb.py version?
TASK DETAIL
https://phabricator.wikimedia.org/T110354
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: valhallasw, Aklapper
valhallasw added a comment.
What's the output of pwb.py version?
TASK DETAIL
https://phabricator.wikimedia.org/T110354
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: valhallasw, Aklapper, Malafaya, pywikibot-bugs-list, jayvdb
valhallasw added a comment.
...except your output shows it doesn't. Not sure why tools-precise-dev has 2.0
installed, then -- maybe WMF-packaged.
TASK DETAIL
https://phabricator.wikimedia.org/T110637
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
Requests 0.8 is ancient (2011), and the API changed regularly before 1.0. Even
Ubuntu Precise bundles 2.0, so I think that would be a reasonable base version
to use.
TASK DETAIL
https://phabricator.wikimedia.org/T110637
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added projects: pywikibot-core, Pywikibot-i18n.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
https://gerrit.wikimedia.org/r/#/c/235978/
Resulting in
```
$ nosetests
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
```
>>> import pywikibot
>>> s=pywikibot.Site('en', 'wowwiki')
>>> p=p
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
```
>>> from pywikibot import *
Traceback (most recent call last):
File &
valhallasw created this task.
valhallasw added subscribers: valhallasw, XZise.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
And because not all family files work correctly (T111608), this breaks
editing (because page.save
valhallasw added a comment.
I think it's because of the redirect from www.wowwiki.com to
wowwiki.wikia.com...
TASK DETAIL
https://phabricator.wikimedia.org/T111608
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: jayvdb, Aklapper
valhallasw closed blocking task T57192: Repetitive API userinfo queries as
"Resolved".
Herald added a subscriber: Aklapper.
TASK DETAIL
https://phabricator.wikimedia.org/T74118
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
self.check_user_exists calls self.site.allusers which requires paraminfo to
be loaded.
A direct
valhallasw added a comment.
I don't think we should introduce unicode_literals either, unless this is
important for later cherry-picking (e.g. we expect to introduce code that
assumes unicode_literals is used later).
I'm also not sure how this relates to the patches you suggested to backport
valhallasw moved this task to Backlog on the Tool-Labs workboard.
TASK DETAIL
https://phabricator.wikimedia.org/T111602
WORKBOARD
https://phabricator.wikimedia.org/project/board/539/
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc
valhallasw edited the task description.
TASK DETAIL
https://phabricator.wikimedia.org/T114534
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: XZise, jayvdb, Aklapper, pywikibot-bugs-list, valhallasw
valhallasw edited the task description.
valhallasw set Security to None.
TASK DETAIL
https://phabricator.wikimedia.org/T114534
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: XZise, jayvdb, Aklapper, pywikibot-bugs-list, valhallasw
valhallasw edited the task description.
TASK DETAIL
https://phabricator.wikimedia.org/T114534
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: XZise, jayvdb, Aklapper, pywikibot-bugs-list, valhallasw
valhallasw added a comment.
I backported most of them, but several of them change so much stuff in
different places I'm not sure if the backport is actually correct. Several of
them also get -1'ed by Jenkins. I'm not going to fix those -- I feel I put in
my fair share by doing the initial
valhallasw edited the task description.
TASK DETAIL
https://phabricator.wikimedia.org/T114534
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: XZise, jayvdb, Aklapper, pywikibot-bugs-list, valhallasw
valhallasw closed this task as "Resolved".
valhallasw claimed this task.
TASK DETAIL
https://phabricator.wikimedia.org/T114420
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: hashar, gerritbot, JeanFred, pywikibot-bugs-l
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Changes to backport (as compared to rc3 = 1ff1cec):
[x] 1f8d57e [FIX] Stop crashing item loads due
valhallasw added a blocked task: T1315: Release 2.0.
TASK DETAIL
https://phabricator.wikimedia.org/T114534
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Aklapper, pywikibot-bugs-list, valhallasw
valhallasw added a blocking task: T114534: release 2.0rc4.
Herald added a subscriber: Aklapper.
TASK DETAIL
https://phabricator.wikimedia.org/T1315
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb, valhallasw
Cc: Aklapper, Ricordisamoa, Xqt
valhallasw closed this task as "Resolved".
valhallasw claimed this task.
TASK DETAIL
https://phabricator.wikimedia.org/T114464
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: gerritbot, XZise, Aklapper, jayvdb, pywikibot
valhallasw closed blocking task T76262: Release 2.0 RC1 as "Resolved".
TASK DETAIL
https://phabricator.wikimedia.org/T1315
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb, valhallasw
Cc: Aklapper, Ricordisamoa, Xqt, jayvdb, pywikibot
valhallasw closed this task as "Resolved".
valhallasw claimed this task.
TASK DETAIL
https://phabricator.wikimedia.org/T76262
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Xqt, jayvdb, Ricordisamoa, pywikibot-bugs-list,
valhallasw added a blocked task: T1315: Release 2.0.
TASK DETAIL
https://phabricator.wikimedia.org/T114464
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: gerritbot, XZise, Aklapper, jayvdb, pywikibot-bugs-list
valhallasw edited the task description.
TASK DETAIL
https://phabricator.wikimedia.org/T114534
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: XZise, jayvdb, Aklapper, pywikibot-bugs-list, valhallasw
valhallasw added a comment.
System error code 2 / The system cannot find the file specified. This is
localized, so it's 'Het systeem kan het opgegeven bestand niet vinden' in Dutch
and e.g. 'Le système ne trouve pas le fichier spécifié.' in French. On Python
2, that's a str encoded
valhallasw edited projects, added pywikibot-core; removed
MediaWiki-General-or-Unknown.
valhallasw set Security to None.
Herald added a subscriber: pywikibot-bugs-list.
TASK DETAIL
https://phabricator.wikimedia.org/T121684
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
I think this is a fringe case we should not put too much effort in. I would
assume people who compile their own python know what they are doing, and
otherwise documentation on what to do for `ImportError: No module named bz2
valhallasw created this task.
valhallasw added subscribers: valhallasw, Glavkos.
valhallasw added projects: pywikibot-core, Pywikibot-textlib.py.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.
TASK DESCRIPTION
Via IRC:
```
ERROR: InvalidTitle: u'{{2001}}' contains
valhallasw added a comment.
re: ҿ -- that indeed looks wrong. I'm not sure why I didn't remove the entry
altogether. The same is true for "Ä"->"Ä".
> The ұӹ combination above was added by
> https://phabricator.wikimedia.org/rPWBO172007a84109c7b1e61a0b6297
valhallasw added a comment.If I read the output correctly, pyflakes is parsing the entire python standard library, which of course does not follow pyflakes standardsTASK DETAILhttps://phabricator.wikimedia.org/T137628EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel
valhallasw moved this task from Triage to Backlog on the Tool-Labs board.
TASK DETAIL
https://phabricator.wikimedia.org/T125505
WORKBOARD
https://phabricator.wikimedia.org/project/board/539/
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: scfc
valhallasw closed this task as "Resolved".
valhallasw removed scfc as the assignee of this task.
TASK DETAIL
https://phabricator.wikimedia.org/T125505
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: jayvdb, Urbanecm, russb
valhallasw added a comment.
> Well, you cannot get an valid crsf token from an invalid oauth token.
In that case, I would expect an error 'Can't retrieve CSRF token, API returned
...' rather than a badtoken error -- or more specifically: I would expect a
`mwoauth-invalid-authorization` er
valhallasw added a comment.
Probably. Pywikibot uses the `logging` module, which you can reconfigure the
logging using the standard features it provides (see the python documentation
<https://docs.python.org/2/library/logging.html>), so running
import logging
logging.basicConfig
valhallasw added a comment.
> Yes. I'm not entirely sure about cookies, but from the logs it seems every
> Api calls are OAuth-signed. @valhallasw you can explain this :)
Well, I don't know the specific oauth implementation, but we do handle cookies
as one would expect in a browser. T
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
Why do you think this has something to do with OAuth? The log just shows
pywikibot retrying after the API returns a 'badtoken' response, as it's
supposed to. I'm not sure why it's continuously failing, but that might have
valhallasw added subscribers: valhallasw, Ladsgroup.
valhallasw added a comment.
I manually ran the crontab, and this seems to have fixed it (at least for now).
The underlying issues seems to be something like this:
The code to update runs:
# Current version of core
cd /data/project
valhallasw added a comment.
Try `pwb.py generate_user_files` ?
TASK DETAIL
https://phabricator.wikimedia.org/T99370
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, valhallasw
Cc: MarcoAurelio, valhallasw, pywikibot-bugs-list, Xqt, Aklapper
valhallasw added a comment.
Very odd. Try removing the directory and re-installing from a nightly:
http://tools.wmflabs.org/pywikibot/core_stable.zip
If the problem persists, please create a //new// task, and please add the
output of
pwb.py version
therein.
TASK DETAIL
https
valhallasw added a comment.
This is with 2.0rc3 downloaded from https://tools.wmflabs.org/pywikibot,
correct? Which Python version are you running it on? (python --version)
TASK DETAIL
https://phabricator.wikimedia.org/T126880
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings
valhallasw added a comment.
Ok, with Python 3.4.0 and 2.0rc3 I can reproduce the issue in a virtualenv. The
traceback is roughly what you might expect:
(venv) C:\Users\Merlijn van Deen\Downloads\core\core>python -i
generate_user_files.py
WARNING: Running on Wind
valhallasw added a comment.
Mostly, you can just skip the `generate_user_files.py` step, and directly go to
`python pwb.py login` (without generating a user-config.py file). That will
automatically start `generate_user_files.py` for you, with the correct paths
set.
TASK DETAIL
https
valhallasw added a comment.
Seems to work for me -- maybe this is a socket.io 0.9 vs 1.0 incompatibility? I
have this version installed:
-e
git+https://github.com/invisibleroads/socketIO-client@c1e49247178681c828a5e91134a4ace4582cca19#egg=socketIO_client-master
(dixit pip freeze)
TASK
valhallasw created this task.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.
TASK DESCRIPTION
(the version on pypi is 2.0rc4)
TASK DETAIL
https://phabricator.wikimedia.org/T128025
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.
TASK DESCRIPTION
The basic machinery works (as long as you work around check_user_exists), but
the login
valhallasw added a subscriber: Alkamid.
TASK DETAIL
https://phabricator.wikimedia.org/T124466
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Alkamid, Aklapper, StudiesWorld, valhallasw, pywikibot-bugs-list
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
I removed the 'easy' tag, as I don't think this task is really suitable for new
people -- it requires quite some insight into what should/shouldn't be ported.
I'm also inclined to reject/resolve this task -- I think all API
valhallasw removed a project: Easy.
valhallasw set Security to None.
TASK DETAIL
https://phabricator.wikimedia.org/T101587
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Rajdeep05, pywikibot-bugs-list, jayvdb, Aklapper, droid
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
Is there anything left that needs to go into 2.0 (in other words, can we just
release it as 2.0?)? https://phabricator.wikimedia.org/T72936 seems to have
been re-classified as 2.1.
TASK DETAIL
https
valhallasw added a subscriber: Ladsgroup.
valhallasw added a project: pywikibot-core.
valhallasw set Security to None.
Herald added a subscriber: pywikibot-bugs-list.
TASK DETAIL
https://phabricator.wikimedia.org/T125505
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel
valhallasw created this task.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
def callback(self, item):
"""Callback funktion for 'private' revert bot."""
if 'top' in item:
page = pywikibot.Page(self.site, i
valhallasw added a comment.
Yep, that file should be chmod 644, not 600. You can (probably) fix it by
running
sudo chmod 644
/Library/Python/2.7/site-packages/httplib2-0.9.2-py2.7.egg/httplib2/cacerts.txt
Seems like an issue in httplib2, and I remember reporting it/finding
valhallasw added a comment.
No, it should be reflected somewhere in the wikisource family file, where
'mul' should be an alias for '-'. I'm not entirely sure if this is supported
yet -- if not, it also needs some code added in family.py to handle aliases
(but in that case the tag 'easy
valhallasw added a comment.
For some reason, checkimages.py runs `str(arg[5:])`, which of course fails if
`arg` is non-ascii. I'm not sure why it does that -- we can probably just
remove those str()s.
TASK DETAIL
https://phabricator.wikimedia.org/T131614
EMAIL PREFERENCES
https
valhallasw changed the title from "-cat option fails with UnicodeDecodeError"
to "checkimages.py incorrectly casts many command line arguments to str()".
TASK DETAIL
https://phabricator.wikimedia.org/T131614
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/pa
valhallasw created this task.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
(not a full-featured plan yet).
Currently, installing dependencies on Windows is difficult for many of our
users. Conda allows for relatively easy 'virtual environments' (sort
valhallasw added a comment.
The main background issue seems to be that
`pywikibot.throttle.Throttle.__call__`
1. locks the Throttle object,
2. sleeps,
3. unlocks the Throttle object
so even though the putthread is in the background, the Throttle blocks both
threads.
I'm
valhallasw added a comment.
Further issue: the self.botMayEdit() template check check in page.save() is
not async, and blocks in the same way as the protection request.
TASK DETAIL
https://phabricator.wikimedia.org/T135992
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings
valhallasw added a comment.
I have rewritten parts of the the nightly code
<https://github.com/pywikibot/Pywikibot-nightly-creator/commit/d0192941b267a98b26021d6d1d55b7c0d6e14086>
to be more fault-resistant, and I hope this will solve the issues. I may have
introduced other
valhallasw added a comment.
There was indeed a permissions mixup on /data/project/pywikibot/public_html,
which should now also be fixed...
TASK DETAIL
https://phabricator.wikimedia.org/T125505
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: scfc
valhallasw added a comment.
I think the main issue is a combination of delete-then-clone plus slow NFS.
It's not entirely clear to me whether the script fails halfway or whether it's
just very slow.
I think we should do the following:
1. clone, git gc, tar in /tmp rather than
valhallasw created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.
TASK DESCRIPTION
F4045498: pasted_file <https://phabricator.wikimedia.org/F4045498>
I'm a big fan of the concept, but we should probably spend some time to
figure out what the best
valhallasw lowered the priority of this task from "High" to "Normal".
TASK DETAIL
https://phabricator.wikimedia.org/T124537
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Wesalius, jayvdb, Aklapper, pywikibo
valhallasw created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.
TASK DESCRIPTION
From the debug log, this is what seems to happen:
- there is a save() background request which is throttled
- this means no other requests are served
- replace.py tries
valhallasw added a comment.
1. on itself does not seem to solve the issue.
TASK DETAIL
https://phabricator.wikimedia.org/T135992
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Aklapper, Zppix, pywikibot-bugs-list, valhallasw
valhallasw created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.
TASK DESCRIPTION
Currently, this throws an unclear error message
Can't delete [[en:Item:Q112]]; do you want to mark it for deletion instead?
([y]es, [N]o, [a]ll): y
WARNING: /usr/lib
valhallasw added a comment.
pip install oursql python-mysql should install the required packages.TASK DETAILhttps://phabricator.wikimedia.org/T142021EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: valhallaswCc: valhallasw, Aklapper, pywikibot-bugs-list
valhallasw added a comment.
Why does it not apply in that case?TASK DETAILhttps://phabricator.wikimedia.org/T139842EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: valhallaswCc: Mpaa, valhallasw, Aklapper, jayvdb, Zppix, DrTrigon, pywikibot-bugs-list
valhallasw added a comment.
I think the simplest option is to stop after a given page has been processed, and continuing there the next time.TASK DETAILhttps://phabricator.wikimedia.org/T139842EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: valhallaswCc
valhallasw added a comment.
In T142155#2531460, @Udo_T wrote:
But if I switch to OAuth, then the bot can perform edits only in German Wiktionary (where it has the local IP block exempt, too).
In all other languages of Wiktionarys comes an error message: "WARNING: API error globalblo
valhallasw added a comment.
I think your patch makes a lot of sense. The current situation already is a bit of a mess (because everything is split through three classes without a clear separation of concerns).
On the one hand having self.login_name feels like storing that information in the wrong
1 - 100 of 198 matches
Mail list logo