verdi daemon start 2
Critical: Could not connect to database: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: FATAL: database "aim_aim_146efdf7f49376683b77cbb607c82d64" does not exist
(Background on this error at: https://sqlalche.me/e/14/e3q8)
verdi status
Critical: The configuration file has version 9 which is not compatible with the current version 5.
Hi Ignacio, Sorry for the slow response! 🙏
I’d have to look into your setup to be sure, but it’s most likely the AIIDA_PATH environment variable is causing you trouble. The AIIDA_PATH variable tells AiiDA where to look for and store your .aiida folder, which contains among other things your configuration. When having multiple AiiDA Python environments, it’s important that they each specify a different AIIDA_PATH than the default $HOME/.aiida. Else one installation will try to read the config file of the other (which also contains the profiles), and then you get issues like you are reporting.
So my suggestion is to always set the AIIDA_PATH in the activate script of your environment, as is described here:
Interestingly, the documentation recommends to point AIIDA_PATH to inside your virtual environment directory. I typically have a project folder where I point AIIDA_PATH to, since then I can always nuke my Python environment if I need to for whatever reason.
As a side note, I’ve (very) recently started reviving aiida-project, a tool for managing different Python environments that automatically does some of this configuration for you:
https://github.com/aiidateam/aiida-project
No conda support yet, but should be coming soon!
Hope that helps! 🚀
Best,
Marnik