-
Notifications
You must be signed in to change notification settings - Fork 297
setup script conflicts with ipython autoreload #3988
Copy link
Copy link
Open
Description
I was installing Invenio 3.2 following the quickstart guide.
At the database setup step:
./scripts/setupI 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels