Page MenuHomePhabricator

[dbr-logactions.py] failing on python3
Open, LowPublicBUG

Description

$python3 pwb.py /data/project/revibot-ii/revibot/dbr-logactions.py:

Traceback (most recent call last):
  File "pwb.py", line 298, in <module>
    if not main():
  File "pwb.py", line 293, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "pwb.py", line 96, in run_python_file
    main_mod.__dict__)
  File "/data/project/revibot-ii/revibot/dbr-logactions.py", line 7, in <module>
    reload(sys)
NameError: name 'reload' is not defined
CRITICAL: Exiting due to uncaught exception <class 'NameError'>

Works on python2.
$ python pwb.py /data/project/revibot-ii/revibot/dbr-logactions.py:

WARNING: /mnt/nfs/labstore-secondary-tools-project/revibot-ii/core/pywikibot/__init__.py:132: FutureWarning: 
Python 2.7.13 will be dropped in 2020.
It is recommended to use Python 3.5 or above.
See T213287 for further information.

  FutureWarning)


Script started.

Loding header...

Event Timeline

revi triaged this task as Low priority.Dec 27 2020, 23:35
revi created this task.
revi edited projects, added Restricted Project; removed Restricted Project.Dec 29 2020, 03:08
revi changed the subtype of this task from "Task" to "Bug".Dec 29 2020, 19:37