Page MenuHomePhabricator
Paste P2038

PWB login.py and etc on WP
ActivePublic

Authored by Altostratus on Sep 14 2015, 2:33 PM.
D:\BOT>login.py
WARNING: Running on Windows and transliteration_target is not set.
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Wi
ndows
Traceback (most recent call last):
File "D:\BOT\login.py", line 20, in <module>
import pywikibot
File "D:\BOT\pywikibot\__init__.py", line 40, in <module>
from pywikibot.exceptions import (
File "D:\BOT\pywikibot\exceptions.py", line 505, in <module>
import pywikibot.data.api
File "D:\BOT\pywikibot\data\api.py", line 31, in <module>
from pywikibot import config, login
ImportError: cannot import name login
<type 'exceptions.ImportError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

Event Timeline

Altostratus changed the title of this paste from untitled to PWB login.py and etc on WP.
Altostratus updated the paste's language from autodetect to python.