Hi,
I have different projects that involve the usage of AiiDA for which I have created separate Conda environments. I would like to report an issue that I am facing. I submitted a PwWorkchain
calculation using the sscha
environment. The calculation ran successfully, and I would like to retrieve the total energy of my system from this calculation. I can do this without any problem in the aiida
environment (the one where I set up my AiiDA profile).
(aiida) gjoalland@ctimac001:~$ verdi shell
Python 3.9.21 | packaged by conda-forge | (main, Dec 5 2024, 13:51:40)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.18.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: n=load_node(18791)
In [2]: n.outputs.output_parameters.dict.energy
Out[2]: -28880.263864815
However, when I follow the same procedure in the sscha
environment, it does not work:
(aiida) gjoalland@ctimac001:~$ conda activate sscha
(sscha) gjoalland@ctimac001:~$ verdi shell
Python 3.9.21 | packaged by conda-forge | (main, Dec 5 2024, 13:51:40)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.18.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: n=load_node(18791)
In [2]: n.outputs.output_parameters.dict.energy
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 n.outputs.output_parameters.dict.energy
File ~/work/setup/aiida-core/src/aiida/orm/nodes/node.py:797, in Node.__getattr__(self, name)
792 warn_deprecation(
793 f'`{kls}.{name}` is deprecated, use `{kls}.base.links.{new_name}` instead.', version=3, stacklevel=3
794 )
795 return getattr(self.base.links, new_name)
--> 797 raise AttributeError(name)
AttributeError: dict
Even restarting the daemon does not seem to help:
(sscha) gjoalland@ctimac001:~$ verdi daemon restart
Profile: gjoalland
Stopping the daemon... OK
Starting the daemon with 1 workers... OK
(sscha) gjoalland@ctimac001:~$ verdi shell
Python 3.9.21 | packaged by conda-forge | (main, Dec 5 2024, 13:51:40)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.18.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: n=load_node(18791)
In [2]: n.outputs.output_parameters.dict.energy
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 n.outputs.output_parameters.dict.energy
File ~/work/setup/aiida-core/src/aiida/orm/nodes/node.py:797, in Node.__getattr__(self, name)
792 warn_deprecation(
793 f'`{kls}.{name}` is deprecated, use `{kls}.base.links.{new_name}` instead.', version=3, stacklevel=3
794 )
795 return getattr(self.base.links, new_name)
--> 797 raise AttributeError(name)
AttributeError: dict
It is like if within this environment I did not have access to the database which I do ot understand since I have installed rabbitmq
and postgresql
globally. Both environment points to the same binary:
(sscha) gjoalland@ctimac001:~$ which psql
/usr/bin/psql
(sscha) gjoalland@ctimac001:~$ conda deactivate
(aiida) gjoalland@ctimac001:~$ which psql
/usr/bin/psql
Could you test this feature or help me resolve this issue?
Thanks for your help!