Wesalius created this task.
Wesalius added a subscriber: Wesalius.
Wesalius added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
After running **delete.py** with most recent version (Pywikibot: [https] r-pywikibot-core.git (e9db1f9, g5334, 2015/04/11, 00:17:48, o
k) Release version: 2.0b3 httplib2 version: 0.9) with **-summary containing non-ascii characters** (Czech letters) move I get:
```
File "pwb.py", line 161, in <module>
import pywikibot # noqa
File "\core\pywikibot\__init__.py", line 32, in <modu
le>
from pywikibot import config2 as config
File "\core\pywikibot\config2.py", line 280, in <modu
le>
_base_dir = get_base_dir()
File "\core\pywikibot\config2.py", line 222, in get_b
ase_dir
if arg.startswith("-dir:"):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 22: ordinal
not in range(128)
```
This task is probably related to recenetly resolved https://phabricator.wikimedia.org/T95671
TASK DETAIL
https://phabricator.wikimedia.org/T95803
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: Wesalius
Cc: pywikipedia-bugs, Wesalius, Aklapper, jayvdb
XZise created this task.
XZise added a subscriber: XZise.
XZise added projects: pywikibot-core, Pywikibot-tests.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
In a recent [[https://travis-ci.org/xZise/pywikibot-core/jobs/58961497#L2724|test on Travis]] the weblib test errored on Python 2.6. From the stacktrace it appears that None was returned by `pywikibot.weblib.getInternetArchiveURL` which only happens when `closest` is not in the JSON answer. I did two tests locally with Python 2.6.9 and it works fine:
```
>>> from pywikibot.weblib import getInternetArchiveURL as U
>>> U('https://google.com')
u'http://web.archive.org/web/20150417171945/https://www.google.com/'
>>> U(u'https://google.com')
u'http://web.archive.org/web/20150417171945/https://www.google.com/'
```
So this may be just a random failure or a short outage from archive.org (as the tests for the other Python versions worked). Also the other non-nosetest with Python 2.6 failed but I restarted it. There both test failed (which could implicate that the outage started or ended between the tests in the first test).
TASK DETAIL
https://phabricator.wikimedia.org/T96441
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, XZise, jayvdb
jayvdb created this task.
jayvdb claimed this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-Other-scripts.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
This script describes itself as
"Script to copy images to Wikimedia Commons, or to another wiki."
However, it will only transfer files to Wikimedia Commons in compat, or the shared file repo in core.
In compat, it doesnt transfer files when fileIsOnCommons() is true.
In core, it doesnt transfer files when fileIsShared is true.
The 'fileIsonCommons' check was added in February 2007
https://mediawiki.org/wiki/Special:Code/pywikipedia/3286
I am unable to see why that was necessary, as it did already have a check whether the page is on the target site, and it would sys.exit if it was on the target site!
http://git.wikimedia.org/blob/pywikibot%2Fcompat.git/261583094f7912cc7bab81…
TASK DETAIL
https://phabricator.wikimedia.org/T87082
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
Mineo created this task.
Mineo added a subscriber: Mineo.
Mineo added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
I'm running https://github.com/mineo/mb2wikidatabot with Python 2.6.5 (I know, I know, but the server is not under my control and https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Initial_setup claims this should work). Every now and then I have to kill the bot manually because it seems to run into a deadlock when quitting. The last messages in the log file are
> 2015-04-14 12:20:34 __init__.py, 702 in stopme: VERBOSE Dropped throttle(s).
> 2015-04-14 12:20:34 http.py, 122 in _flush: VERBOSE Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
> 2015-04-14 12:20:34 http.py, 127 in _flush: VERBOSE All threads finished.
The process has not shut down since then and I can't press ctrl-c because the processes are being run from cron.
gdb output:
> (gdb) info threads
> 2 Thread 0x7fe117339700 (LWP 7870) sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
> * 1 Thread 0x7fe11b895700 (LWP 7869) sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
This looks like both threads are waiting for something, possible blocking each other.
The revision of pwb currently running is 297089be218a5528150ba1fffaa42773d291c683.
TASK DETAIL
https://phabricator.wikimedia.org/T96241
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: Mineo
Cc: pywikipedia-bugs, Mineo, Aklapper, jayvdb
Strainu closed this task as "Declined".
Strainu added a comment.
My patch no longer makes sense with the current code. Note that the current implementation still retrieves the whole page if we want the editTime, which is overkill, but that's not the object of the current bug.
TASK DETAIL
https://phabricator.wikimedia.org/T56555
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: Strainu
Cc: Legoktm, jayvdb, Ricordisamoa, Ladsgroup, Strainu, GWicke, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
Unicode directory names cause problems whether invoked via pwb.py or directly.
```
C:\pywikibot\Häuser-core>python pwb.py shell
Traceback (most recent call last):
File "pwb.py", line 117, in <module>
os.path.join(rewrite_path, 'pywikibot', 'compat'),
File "C:\Python279\lib\ntpath.py", line 84, in join
result_path = result_path + p_path
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 12: ordinal not in range(128)
```
```
C:\pywikibot\Häuser-core>set PYTHONPATH=.
C:\pywikibot\Häuser-core>python scripts\shell.py
Traceback (most recent call last):
File "scripts\shell.py", line 44, in <module>
main(*args)
File "scripts\shell.py", line 30, in main
import pywikibot
File "C:\pywikibot\Hõuser-core\pywikibot\__init__.py", line 32, in <module>
from pywikibot import config2 as config
File "C:\pywikibot\Hõuser-core\pywikibot\config2.py", line 307, in <module>
register_families_folder(os.path.join(os.path.dirname(__file__), 'families')
)
File "C:\Python279\lib\ntpath.py", line 84, in join
result_path = result_path + p_path
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 12: ordinal not in range(128)
```
Even if we can solve those, we then have the problem of paths in the environment:
The solution doesnt look good
https://measureofchaos.wordpress.com/2011/03/04/python-on-windows-unicode-e…
TASK DETAIL
https://phabricator.wikimedia.org/T96127
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