aiidalab / aiidalab-qe

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

Bug report: Application crashed with TraitError #905

Closed AndresOrtegaGuerrero closed 4 weeks ago

AndresOrtegaGuerrero commented 1 month 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 ~/.local/lib/python3.9/site-packages/traitlets/traitlets.py in __set__(self, obj, value) 730 raise TraitError('The "%s" trait is read-only.' % self.name) 731 else: --> 732 self.set(obj, value) 733 734 def _validate(self, obj, value): ~/.local/lib/python3.9/site-packages/traitlets/traitlets.py in set(self, obj, value) 704 705 def set(self, obj, value): --> 706 new_value = self._validate(obj, value) 707 try: 708 old_value = obj._trait_values[self.name] ~/.local/lib/python3.9/site-packages/traitlets/traitlets.py in _validate(self, obj, value) 736 return value 737 if hasattr(self, "validate"): --> 738 value = self.validate(obj, value) 739 if obj._cross_validation_lock is False: 740 value = self._cross_validate(obj, value) ~/.local/lib/python3.9/site-packages/traitlets/traitlets.py in validate(self, obj, value) 2534 msg = "Could not decode {!r} for unicode trait '{}' of {} instance." 2535 raise TraitError(msg.format(value, self.name, class_of(obj))) from e -> 2536 self.error(obj, value) 2537 2538 def from_string(self, s): ~/.local/lib/python3.9/site-packages/traitlets/traitlets.py in error(self, obj, value, error, info) 842 describe("the", value), 843 ) --> 844 raise TraitError(e) 845 846 def get_metadata(self, key, default=None): TraitError: The 'description' trait of a Checkbox instance expected a unicode string, not the float nan. ```
Environment fingerprint
eNptVk2PpDYQ_Ssjcl0Q0MznLZprVppkN8khiloGDO1tY3ts0z3sav97ylXFwK4iTjzb9fnq2d-yi_RBWZM9VR8yp0UcrJ-
yp2-Z8N1JRdnF2cvs6Z_srmlVzD5k2b-wb4kna47vR7ND8VhUB1jdoF-qm08fX24-iXjzq_M39f1N2TxVh6fq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Q9lWdLhipEoQ9yN8HYvwhGCXkBu7JUGiibvRRlSkhrdKMcqnG0vhV55mm6qIzY3Wb0t6
oaReRyX3UXr9Drd6Qc6C4lOKjJJcEdYRiNYtKnw681KcbmlBaJTZNTSl-
VZDX_8zYJ2h3t6uMpVlwcomDLjWh-y1ssBXjY83g1CQJtRmh31qnqH5wIiWoIKOR3l67VJLcfiLR-
XT7__thMMUAYq-T0zkwBI94L1KTkVBNMDBkq5LxMteDmmlwiMVmAV40XoX97buLKx5MSi_dKJyTFn01641de5qRkCo1g-Gv-
kAAi-zuCRHyG0MXTqrGKOmknlrve4lsKbXcwAb41qEPAUzKpjQYrWerPexzVC8uzWkX0s7hHS0qh5ImKxbTmRJKZxwHMncZam9VK
ceZBT1dOoyz7d1AKUhd4NPPbBjSRG70AUPo0Tp0YCFED3OYfkBQosOoWS9MAuQIimzmq-
JCm6eII4egd17qLGcBhXw8ACymyp0aqH6MB9XCWzZDBCPAHp8bhi8LSK3P5ELTqu-Ma4e__Pr7ININf8vuK5gUcxcP-IN9FKomZV
8vg10W4NLW2fTQcqC7FFhaqcXj6pIfMFbkhu24Es_yWc9QvzLFm7KB9nkCckZI2xlQgHuXtZXaUIx907kOy_x76p4SqwtDdvQeNC
UpfdC5-Wjk5C-r3qNlmkCK_wiLf8kiTavk06pPee4M5V2ffv_wFXIKq9

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.

AndresOrtegaGuerrero commented 1 month ago

This bug is a bit tricky, as it seems to be related to a node where the property label may have changed or the plugin was uninstalled. The only solution is to identify and delete the node causing the issue. It’s become more troublesome because now I can no longer access my other nodes in the app.

AndresOrtegaGuerrero commented 1 month ago

i did something like this just to get to see the jobs again ,

property_checkboxes = [
    ipw.Checkbox(
        value=False,
        description=prop if not (isinstance(prop, float) and math.isnan(prop)) else "unknown",
        layout=ipw.Layout(description_width="initial"),
        indent=False,
    )
    for prop in unique_properties
]
AndresOrtegaGuerrero commented 1 month ago

or just

unique_properties = set(self.df["Properties"].explode().dropna())