Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **List of steps to reproduce** (step by step, including full links if 
applicable):
  
  - uninstall `wikitextparser` and `mwparserfromhell`
  - run `pwb`
  -
  
  **What happens?**:
  
    C:\pwb\GIT\core>pwb
    
    Pywikibot is missing a MediaWiki markup parser which is necessary.
    Please update the required module with either
    
        pip install "mwparserfromhell>=0.5.0"
    
    or
    
        pip install "wikitextparser>=0.47.5"
    
    Exception ignored in atexit callback: <function flush at 0x0000020C5DDD2EF0>
    Traceback (most recent call last):
      File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 88, in flush
        log('Closing network session.')
      File "C:\pwb\GIT\core\pywikibot\logging.py", line 193, in log
        logoutput(text, decoder, newline, VERBOSE, **kwargs)
      File "C:\pwb\GIT\core\pywikibot\logging.py", line 79, in logoutput
        _init()
      File "C:\pwb\GIT\core\pywikibot\logging.py", line 38, in _init
        init_routine()
      File "C:\pwb\GIT\core\pywikibot\tools\_deprecate.py", line 487, in wrapper
        return obj(*new_args, **new_kwargs)
      File "C:\pwb\GIT\core\pywikibot\bot.py", line 398, in init_handlers
        if pywikibot.Site.__doc__ != 'TEST':  # set by aspects.DisableSiteMixin
    AttributeError: module 'pywikibot' has no attribute 'Site'
    
    C:\pwb\GIT\core>
  
  The reason might be that pywikibot.bot is not fully  imported and the logger 
handler is not initialized when the atexit callback is called in this early 
state.
  
  **What should have happened instead?**:
  
  No exception should be shown
  
  **Software version (if not a Wikimedia wiki), browser information, 
screenshots, other information, etc**:
  Pywikibot 7.0 (master), 6.6.3 (stable). 6.5, 6.4, 6.3. It works as expected 
with 6.2

TASK DETAIL
  https://phabricator.wikimedia.org/T298384

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to