Page MenuHomePhabricator

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

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 created this task.Jan 28 2020, 04:49