You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user didn't install aiida with the [REST] extra, and doesn't already have all the required packages, they will receive an import error when attempting to start the "verdi restapi" server. They might then attempt to install the required packages, one by one, until all the dependencies are satisfied. It would be better to tell the user to install aiida with the [REST] extra via pip.
The text was updated successfully, but these errors were encountered:
Apropos: Since people can now use Materials Cloud to browse their AiiDA database, Giovanni suggested we might want to install the [rest] extra by default, when installing the aiida meta package.
Regarding improving the error message: Should we try to catch the missing imports?
We can do that in a few files (api.py, run_api.py) of course, and for a few imports (flask, flask_cors, ...) and cover most use cases, but I wonder whether there is a better way...
If someone adds a new dependency above our try/except, it will be broken again.
I think we should just catch the first error that appears in the code run by verdi restapi, with a try/except ImportError. But I'm also thinking that maybe it's better to just add all REST dependencies a default (even in aiida_core?)
If a user didn't install aiida with the [REST] extra, and doesn't already have all the required packages, they will receive an import error when attempting to start the "verdi restapi" server. They might then attempt to install the required packages, one by one, until all the dependencies are satisfied. It would be better to tell the user to install aiida with the [REST] extra via pip.
The text was updated successfully, but these errors were encountered: