Page MenuHomePhabricator

ErfgoedBot crashes because it does not find builtins
Closed, ResolvedPublic


We added a new package that is not globally installed...

Traceback (most recent call last):
  File "/data/project/heritage/pywikibot/", line 263, in <module>
    if not main():
  File "/data/project/heritage/pywikibot/", line 257, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "/data/project/heritage/pywikibot/", line 121, in run_python_file
  File "/data/project/heritage/erfgoedbot/", line 19, in <module>
    import common as common
  File "/data/project/heritage/erfgoedbot/", line 5, in <module>
    from builtins import open
ImportError: No module named builtins

I had been meneaing to do that for a while ; but looks like we need to properly run things into a virtualenv

Event Timeline

JeanFred moved this task from Backlog to Bugs on the Wiki-Loves-Monuments-Database board.

I slapped a virtualenv quickly on the server. Will make a patch to properly set it up.

Change 379751 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Use a virtualenv for Python dependencies

Change 379751 merged by jenkins-bot:
[labs/tools/heritage@master] Use a virtualenv for Python dependencies

JeanFred claimed this task.
JeanFred moved this task from Bugs to Infrastructure on the Wiki-Loves-Monuments-Database board.