Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError in 'DictObjectStore' When Editing Submodel #23

Closed
hadijannat opened this issue Feb 21, 2024 · 0 comments
Closed

AttributeError in 'DictObjectStore' When Editing Submodel #23

hadijannat opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hadijannat
Copy link

Contact Details

No response

What happened?

Description:

An error is encountered in the AAS manager (version 0.3.7) when attempting to edit a submodel. The application throws an AttributeError related to the DictObjectStore type object, indicating a missing args attribute. This issue arises specifically when clicking to edit a submodel within the application.

Steps to Reproduce:

  1. Open the AAS manager.
  2. Navigate to the submodels section and select a submodel to edit.
  3. Click on the submodel to initiate editing.
  4. The error dialog appears with the traceback information.

Expected Behavior:
The submodel should open in an edit dialog, allowing for modifications to be made.

Actual Behavior:
An error dialog is presented with the message: "type object 'DictObjectStore' has no attribute 'args'", and the edit operation cannot be completed.

Traceback:

Traceback (most recent call last):
  File "aas_editor\widgets\treeview.py", line 659, in replItemWithDialog
  File "aas_editor\dialogs.py", line 292, in __init__
  File "aas_editor\dialogs.py", line 216, in getInputWidget
  File "aas_editor\dialogs.py", line 255, in getWidget4typehint
AttributeError: type object 'DictObjectStore' has no attribute '__args__'

Possible Solution:

This may be an issue with the way DictObjectStore is being used or instantiated. Reviewing the relevant class definition and its usage within the context of the application should reveal why the args attribute is being accessed and how to handle its absence.

Screenshots:

Screenshot 2024-02-21 112012

Environment:

AAS Manager Version: 0.3.7
Operating System: (Your Operating System and version)
Python Version: (If applicable, the version of Python used)

Additional Context:

This error prevents any editing actions on submodels and needs to be addressed to restore full functionality.

Relevant log output

No response

@hadijannat hadijannat added the bug Something isn't working label Feb 21, 2024
@zrgt zrgt changed the title Issue Title: AttributeError in 'DictObjectStore' When Editing Submodel AttributeError in 'DictObjectStore' When Editing Submodel Apr 24, 2024
@zrgt zrgt closed this as completed in 41325c9 Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant