aiidalab / aiidalab-qe

AiiDAlab App for Quantum ESPRESSO
https://aiidalab-qe.readthedocs.io/
MIT License
12 stars 14 forks source link

Bug report: Can't operate on closed transaction inside context manager. #908

Open superstar54 opened 3 weeks ago

superstar54 commented 3 weeks ago

Automated report

This issue was created with the app's automated bug reporting feature. Attached to this issue is the full traceback as well as an environment fingerprint that contains information about the operating system as well as all installed libraries.

Additional comments (optional):

Example: I submitted a band structure calculation for Silica.

Attachments

Traceback ```python-traceback /opt/conda/lib/python3.9/site-packages/sqlalchemy/orm/loading.py in load_on_pk_identity(session, statement, primary_key_identity, load_options, refresh_state, with_for_update, only_load_props, identity_token, no_autoflush, bind_arguments, execution_options, require_pk_cols, is_user_refresh) 692 ) 693 result = ( --> 694 session.execute( 695 q, 696 params=params, /opt/conda/lib/python3.9/site-packages/sqlalchemy/orm/session.py in execute(self, statement, params, execution_options, bind_arguments, _parent_execute_state, _add_event) 2360 2361 """ -> 2362 return self._execute_internal( 2363 statement, 2364 params, /opt/conda/lib/python3.9/site-packages/sqlalchemy/orm/session.py in _execute_internal(self, statement, params, execution_options, bind_arguments, _parent_execute_state, _add_event, _scalar_result) 2235 bind = self.get_bind(**bind_arguments) 2236 -> 2237 conn = self._connection_for_bind(bind) 2238 2239 if _scalar_result and not compile_state_cls: /opt/conda/lib/python3.9/site-packages/sqlalchemy/orm/session.py in _connection_for_bind(self, engine, execution_options, **kw) 2099 **kw: Any, 2100 ) -> Connection: -> 2101 TransactionalContext._trans_ctx_check(self) 2102 2103 trans = self._transaction /opt/conda/lib/python3.9/site-packages/sqlalchemy/engine/util.py in _trans_ctx_check(cls, subject) 109 if trans_context: 110 if not trans_context._transaction_is_active(): --> 111 raise exc.InvalidRequestError( 112 "Can't operate on closed transaction inside context " 113 "manager. Please complete the context manager " InvalidRequestError: Can't operate on closed transaction inside context manager. Please complete the context manager before emitting further commands. ```
Environment fingerprint
eNp1WV2z47YN_Ss77mvksWT7fuxbujN56GTbbW_STKfT8VASLXNNkbwkZV_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IgQlQw850nPNbkjJEzFqzdMlaAY3_4AYDTckhxgYktM9YGgaoIQKxASP7
_k6SERuwVm_imcXaYxaeWFmtw9Z_BFARRCw4IVscGP02cXqwE4J5v_ZSDpVcTu1NuBQwZF3VX1_OcYUYyrFOFQ_N1GIxhwMEYbj2
W2JOp9GlRUI_CsgdGcGDvopOls_rMsp8XyTDfynRnJL9Kf3-WUbUuheD1JybN0ejSyCtiP6UPqCcqdUXVwkLw2NdxL-1YX6mDaJR
j478Xk0is0rjH_wZOceg1A3KIt2ou3URczaTpyFl7zE6af78o59sBm9dtv_wOUf2o3

By submitting this issue I confirm that I am aware that this information can potentially be used to determine what kind of calculation was performed at the time of error.

superstar54 commented 3 weeks ago

I got this error many times recently, and I'm not sure where it is wrong.