https://bugzilla.wikimedia.org/show_bug.cgi?id=71786

            Bug ID: 71786
           Summary: verbose output on py3 fails
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

Running any command with verbose enabled caused a KeyError

$ python3 pwb.py scripts/basic.py -verbose
The base directory is ...
=== Pywikibot framework v2.0 -- Logging header ===
COMMAND: ['scripts/basic.py', '-verbose']
DATE: 2014-10-08 09:33:57.946123 UTC
VERSION: [ssh] pywikibot-core.git (62c17a3, g4217, 2014/10/07, 19:19:01, n/a)
SYSTEM: posix.uname_result(sysname='Linux', nodename='RSD-Latitude-2120',
release='3.13.0-36-generic', version='#63-Ubuntu SMP Wed Sep 3 21:30:45 UTC
2014', machine='i686')
Traceback (most recent call last):
  File "pwb.py", line 164, in <module>
    run_python_file(fn, argv, argvu)
  File "pwb.py", line 69, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "scripts/basic.py", line 173, in <module>
    main()
  File "scripts/basic.py", line 142, in main
    local_args = pywikibot.handleArgs()
  File ".../pywikibot/bot.py", line 666, in handleArgs
    init_handlers()
  File ".../pywikibot/bot.py", line 248, in init_handlers
    writelogheader()
  File ".../pywikibot/bot.py", line 291, in writelogheader
    packages = version.package_versions(check_package_list)
  File ".../pywikibot/version.py", line 381, in package_versions
    del data[name]
KeyError: '_frozen_importlib'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to