aiidalab / aiidalab-qe

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

`Lazy-loading` Bug report: Application crashed with AttributeError #920

Open superstar54 opened 1 week ago

superstar54 commented 1 week 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/ipywidgets/widgets/widget.py in notify_change(self, change) 692 # Send new state to front-end 693 self.send_state(key=name) --> 694 super(Widget, self).notify_change(change) 695 696 def __repr__(self): /opt/conda/lib/python3.9/site-packages/traitlets/traitlets.py in notify_change(self, change) 1515 def notify_change(self, change): 1516 """Notify observers of a change event""" -> 1517 return self._notify_observers(change) 1518 1519 def _notify_observers(self, event): /opt/conda/lib/python3.9/site-packages/traitlets/traitlets.py in _notify_observers(self, event) 1562 c = getattr(self, c.name) 1563 -> 1564 c(event) 1565 1566 def _add_notifiers(self, handler, name, type): /opt/conda/lib/python3.9/site-packages/traitlets/traitlets.py in _update_source(self, change) 377 return 378 with self._busy_updating(): --> 379 setattr(self.source[0], self.source[1], self._transform_inv(change.new)) 380 if getattr(self.target[0], self.target[1]) != change.new: 381 raise TraitError( ~/apps/aiidalab-qe/src/aiidalab_qe/plugins/xas/setting.py in (value, kind_name) 165 lambda kinds, kind_name=kind_name: kinds.get(kind_name, False), 166 lambda value, kind_name=kind_name: { --> 167 **self._model.elements, 168 kind_name: value, 169 }, AttributeError: 'input_structure' object has no attribute 'elements' ```
Environment fingerprint
eNptWF1v6zYS_SuB97UyrA87yX27m-0CWzTdbHO7RbFYGJRES4wpkhEpO0px_3uHM0Nb6e2jD0lxOHPmzIx_X53k6JU1q0_5dyun
RTjYcVh9-n0lxqZXQTZhGuXq0_9Wu6pWYfXdavV_2DeH3pr95eiqXN-v8xJWr9Dfqtvsl3oyYbp5fny6efr5--8fn77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WLZm_oSG_7XEU2CeTssVeRt0IvpnwycxchpQF98V87RBbEgf_36B8BHl3U=

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 1 week ago

I am testing the lazy-laoding PR. I ran an XAS calculation with Si bulk. After submitting the job, I click the job-history button, and get this error.