Josve05a created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.

TASK DESCRIPTION
  I just reinstalled core, from http://tools.wmflabs.org/pywikibot/ and I got 
this exeption when doing the pwb.py login.
  
    C:\Users\Jonatan>python C:\Users\Jonatan\Desktop\pywikibot\core\pwb.py login
    NOTE: 'user-config.py' was not found!
    Please follow the prompts to create it:
    Traceback (most recent call last):
      File "C:\Users\Jonatan\Desktop\pywikibot\core\pwb.py", line 187, in 
<module>
        import pywikibot  # flake8: disable=F401
      File "C:\Users\Jonatan\Desktop\pywikibot\core\pywikibot\__init__.py", 
line 37, in <module>
        from pywikibot import config2 as config
      File "C:\Users\Jonatan\Desktop\pywikibot\core\pywikibot\config2.py", line 
359, in <module>
        _base_dir = get_base_dir()
      File "C:\Users\Jonatan\Desktop\pywikibot\core\pywikibot\config2.py", line 
354, in get_base_dir
        raise RuntimeError(exc_text)
    RuntimeError: No user-config.py found in directory 'C:\Users\Jonatan'.
      Please check that user-config.py is stored in the correct location.
      Directory where user-config.py is searched is determined as follows:
    
        Return the directory in which user-specific information is stored.
    
        This is determined in the following order:
         1.  If the script was called with a -dir: argument, use the directory
             provided in this argument.
         2.  If the user has a PYWIKIBOT2_DIR environment variable, use the 
value
             of it.
         3.  If user-config is present in current directory, use the current
             directory.
         4.  If user-config is present in pwb.py directory, use that directory
         5.  Use (and if necessary create) a 'pywikibot' folder under
             'Application Data' or 'AppData\Roaming' (Windows) or
             '.pywikibot' directory (Unix and similar) under the user's home
             directory.
    
        Set PYWIKIBOT2_NO_USER_CONFIG=1 to disable loading user-config.py
    
        @param test_directory: Assume that a user config file exists in this
            directory. Used to test whether placing a user config file in this
            directory will cause it to be selected as the base directory.
        @type test_directory: str or None
        @rtype: unicode
    
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\Users\Jonatan\Desktop\pywikibot\core\pwb.py", line 195, in 
<module>
        ['generate_user_files.py'])
      File "C:\Users\Jonatan\Desktop\pywikibot\core\pwb.py", line 118, in 
run_python_file
        with open(filename, 'rb') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 
'generate_user_files.py'
    <class 'FileNotFoundError'>
    CRITICAL: Closing network session.

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

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

To: Josve05a
Cc: Aklapper, Zppix, pywikibot-bugs-list, Josve05a, Mdupont, jayvdb



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to