Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup script conflicts with ipython autoreload #3988

Open
lallulli opened this issue Jan 8, 2020 · 0 comments
Open

setup script conflicts with ipython autoreload #3988

lallulli opened this issue Jan 8, 2020 · 0 comments

Comments

@lallulli
Copy link
Contributor

lallulli commented Jan 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant