Code Monkey home page Code Monkey logo

Comments (4)

swamper123 avatar swamper123 commented on July 22, 2024

We had a bug report on that a couple of days ago, that ' opcua-widget 0.6.0' is causing trouble.
Downgrade it back to 0.5.10. and then try it again. Maybe it helps.

from opcua-modeler.

Landingit avatar Landingit commented on July 22, 2024

We had a bug report on that a couple of days ago, that ' opcua-widget 0.6.0' is causing trouble. Downgrade it back to 0.5.10. and then try it again. Maybe it helps.

A—I have downgraded "opcua-widget" to 0.5.10. Others remains:
python-opcua 0.98.13;
opcua-asyncio 0.9.92;
opcua-modeler 0.5.12;

When I click "new model" icon on the GUI, the follow error occurs(same as #109):
uawidgets.utils - ERROR - 'SyncNode' object has no attribute 'get_attributes'')
Traceback (most recent call last):
File "/home/chaos/work/try/opcua-widgets/uawidgets/utils.py", line 21, in wrapper result = func(self, *args)
File "/home/chaos/work/try/opcua-modeler/uamodeler/uamodeler.py", line 204, in new self._model_mgr.new_model()
File "/home/chaos/work/try/opcua-modeler/uamodeler/model_manager.py", line 90, in new_model self.modeler.tree_ui.set_root_node(self.server_mgr.nodes.root)
File "/home/chaos/work/try/opcua-widgets/uawidgets/tree_widget.py", line 43, in set_root_node self.model.set_root_node(node)
File "/home/chaos/work/try/opcua-widgets/uawidgets/tree_widget.py", line 167, in set_root_node desc = self._get_node_desc(node)
File "/home/chaos/work/try/opcua-widgets/uawidgets/tree_widget.py", line 171, in _get_node_desc attrs = node.get_attributes([ua.AttributeIds.DisplayName, ua.AttributeIds.BrowseName, ua.AttributeIds.NodeId, ua.AttributeIds.NodeClass])
AttributeError: 'SyncNode' object has no attribute 'get_attributes'

B—I have downgraded "opcua-widget" to 0.5.10, and "opcua-modeler" to 0.5.10. Others remians:
python-opcua 0.98.13;
opcua-asyncio 0.9.92;
When I click "new model" icon on the GUI, the follow error occurs(same as #113):
uawidgets.utils - ERROR - 'Node' object has no attribute 'read_attributes'')
Traceback (most recent call last):
File "/home/chaos/work/try/opcua-widgets/uawidgets/utils.py", line 21, in wrapper result = func(self, *args)
File "/home/chaos/work/try/opcua-modeler/uamodeler/uamodeler.py", line 204, in new self._model_mgr.new_model()
File "/home/chaos/work/try/opcua-modeler/uamodeler/model_manager.py", line 92, in new_model self.modeler.tree_ui.set_root_node(self.server_mgr.nodes.root)
File "/home/chaos/work/try/opcua-widgets/uawidgets/tree_widget.py", line 41, in set_root_node self.model.set_root_node(node)
File "/home/chaos/work/try/opcua-widgets/uawidgets/tree_widget.py", line 165, in set_root_node desc = self._get_node_desc(node)
File "/home/chaos/work/try/opcua-widgets/uawidgets/tree_widget.py", line 169, in _get_node_desc attrs = node.read_attributes([ua.AttributeIds.DisplayName, ua.AttributeIds.BrowseName, ua.AttributeIds.NodeId, ua.AttributeIds.NodeClass])
AttributeError: 'Node' object has no attribute 'read_attributes'

What else can I try?

PS:There is an old version works with Python3.5.2/win10, I have try to install that version on my ubuntu1804, but there are problems installing Python3.5.2(some important packages are not installed, pip install fails, thus I can't move on next).

from opcua-modeler.

oroulet avatar oroulet commented on July 22, 2024

tried to fix things today and made a relase. Let me know if it works. But anyway that software is nt maintained anymore. see https://github.com/FreeOpcUa/opcua-modeler/blob/master/README.md

from opcua-modeler.

oroulet avatar oroulet commented on July 22, 2024

version should be 0.5.14

from opcua-modeler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.