Dvorapa added a comment.

  Okay, I made some detective work to find out, what could be wrong and I got 
to this traceback:
  
    $ python
    Python 3.8.1 (default, Jan 22 2020, 06:38:00) 
    [GCC 9.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pywikibot
    >>> s=pywikibot.Site()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/pavel/pywikibot/pywikibot/tools/__init__.py", line 1790, in 
wrapper
        return obj(*__args, **__kw)
      File "/home/pavel/pywikibot/pywikibot/__init__.py", line 1242, in Site
        fam = Family.load(fam)
      File "/home/pavel/pywikibot/pywikibot/tools/__init__.py", line 1790, in 
wrapper
        return obj(*__args, **__kw)
      File "/home/pavel/pywikibot/pywikibot/family.py", line 1008, in load
        raise UnknownFamily('Family %s does not exist' % fam)
    pywikibot.exceptions.UnknownFamily: Family projectgorgon does not exist
  
  This seems clear, deprecation wrapper tries to load family before config is 
fully processed. There is another minor issue, as deprecation wrapper silently 
pass this error and therefore the rest of config is never loaded 
(register_family_file in config does not work)

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

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

To: Dvorapa
Cc: Dvorapa, Aklapper, pywikibot-bugs-list, desophos, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to