Last modified: 2014-10-18 21:40:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74208, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72208 - redirect.py stopped working
redirect.py stopped working
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
redirect.py (Other open bugs)
core-(2.0)
All All
: Unprioritized critical
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-18 09:00 UTC by Rubin16
Modified: 2014-10-18 21:40 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rubin16 2014-10-18 09:00:59 UTC
When I am running redirect.py -br on ru.wiki, I get script crashed:

Pywikibot: [https] r-p-pywikibot-core.git (9f18c0d, g4311, 2014/10/17, 17:04:06, ok)
Release version: 2.0b2
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
unicode test: ok
httplib2 version: 0.7.2


tools.rubinbot@tools-login:~/.pywikibot$ python scripts/redirect.py br -delete
Retrieving special page...


>>> Бабл <<<
Traceback (most recent call last):
  File "scripts/redirect.py", line 798, in <module>
    main()
  File "scripts/redirect.py", line 795, in main
    bot.run()
  File "scripts/redirect.py", line 708, in run
    self.delete_broken_redirects()
  File "scripts/redirect.py", line 403, in delete_broken_redirects
    self.delete_1_broken_redirect(redir_name)
  File "scripts/redirect.py", line 478, in delete_1_broken_redirect
    redir_page.title(asLink=True))):
  File "/shared/pywikipedia/core/pywikibot/bot.py", line 934, in user_confirm
    default='N')
  File "/shared/pywikipedia/core/pywikibot/bot.py", line 539, in input_choice
    automatic_quit)
  File "/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py", line 274, in input_choice
    question = '{0} ({1})'.format(question, ', '.join(formatted_options))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 18-21: ordinal not in range(128)
<type 'exceptions.UnicodeEncodeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Comment 1 Gerrit Notification Bot 2014-10-18 13:28:08 UTC
Change 167372 had a related patch set uploaded by Mpaa:
terminal-interface-base.py: add unicode support

https://gerrit.wikimedia.org/r/167372
Comment 2 Gerrit Notification Bot 2014-10-18 21:32:36 UTC
Change 167372 merged by jenkins-bot:
terminal-interface-base.py: add unicode support

https://gerrit.wikimedia.org/r/167372

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links