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

Unable to save model #117

Open
danmoser opened this issue Mar 17, 2022 · 2 comments
Open

Unable to save model #117

danmoser opened this issue Mar 17, 2022 · 2 comments

Comments

@danmoser
Copy link

I get the following when trying to save a custom model:

uawidgets.utils - ERROR - 'NodeId' object has no attribute 'aio_obj'')
Traceback (most recent call last):
  File "/home/dfaes/.local/lib/python3.9/site-packages/uawidgets/utils.py", line 21, in wrapper
    result = func(self, *args)
  File "/home/dfaes/.local/lib/python3.9/site-packages/uamodeler/uamodeler.py", line 266, in save_as
    self._save_as()
  File "/home/dfaes/.local/lib/python3.9/site-packages/uamodeler/uamodeler.py", line 274, in _save_as
    self._model_mgr.save_xml(path)
  File "/home/dfaes/.local/lib/python3.9/site-packages/uamodeler/model_manager.py", line 222, in save_xml
    self._save_structs()
  File "/home/dfaes/.local/lib/python3.9/site-packages/uamodeler/model_manager.py", line 365, in _save_structs
    dict_builder = self._create_type_dict_node(idx, urn, dict_name)
  File "/home/dfaes/.local/lib/python3.9/site-packages/uamodeler/model_manager.py", line 341, in _create_type_dict_node
    if builder.dict_id not in self.new_nodes:
  File "/home/dfaes/.local/lib/python3.9/site-packages/asyncua/sync.py", line 383, in __eq__
    return other is not None and self.aio_obj == other.aio_obj
AttributeError: 'NodeId' object has no attribute 'aio_obj'
@wvalcke
Copy link

wvalcke commented Jun 8, 2022

I have the same problem....

@stefanwitkowski
Copy link

I have this issue only if I try to add custom datatype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants