Skip to content

setup script conflicts with ipython autoreload #3988

@lallulli

Description

@lallulli

I was installing Invenio 3.2 following the quickstart guide.

At the database setup step:

./scripts/setup

I got the following error:

Usage: invenio files location [OPTIONS] NAME URI
Try "invenio files location --help" for help.

Error: Got unexpected extra arguments (disable autoreload in ipython_config.py to improve performance. /home/luca/.local/share/virtualenvs/dlt-4L5I9W9K/var/instance/data)

The reason is that, on my machine, I enabled autoreload in IPython. Every time I start IPython, I get the warning message disable autoreload in ipython_config.py to improve performance. It looks like for some reason this warning became an argument to invenio files script.

In order to resolve the problem, I commented out this line in IPython configuration:

c.InteractiveShellApp.exec_lines.append('print("Warning: disable autoreload in ipython_config.py to improve performance.")')

In this way, IPython does not produce a warning message (even if autocompletion is still enabled) and the Invenio setup script runs correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions