Code Monkey home page Code Monkey logo

Comments (6)

plyzico avatar plyzico commented on July 22, 2024

I've got the same error and didn't change anything. Yesterday all works fine... so would be nice, if someone can help.
Thanks

Maybe the specific output is helpfull:

uamodeler.model_manager - INFO - Starting server on opc.tcp://0.0.0.0:48400/freeopcua/uamodeler/')
uamodeler.server_manager - INFO - Starting python-opcua server')
opcua.server.server - WARNING - Endpoints other than open requested but private key and certificate are not set.')
opcua.server.binary_server_asyncio - WARNING - Listening on 0.0.0.0:48400')
uawidgets.utils - ERROR - 'Node' object has no attribute 'read_attributes'')
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.8/site-packages/uawidgets/utils.py", line 21, in wrapper
result = func(self, *args)
File "/usr/local/lib/python3.8/dist-packages/uamodeler/uamodeler.py", line 204, in new
self._model_mgr.new_model()
File "/usr/local/lib/python3.8/dist-packages/uamodeler/model_manager.py", line 92, in new_model
self.modeler.tree_ui.set_root_node(self.server_mgr.nodes.root)
File "/home/ubuntu/.local/lib/python3.8/site-packages/uawidgets/tree_widget.py", line 41, in set_root_node
self.model.set_root_node(node)
File "/home/ubuntu/.local/lib/python3.8/site-packages/uawidgets/tree_widget.py", line 165, in set_root_node
desc = self._get_node_desc(node)
File "/home/ubuntu/.local/lib/python3.8/site-packages/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'

from opcua-modeler.

oroulet avatar oroulet commented on July 22, 2024

that sounds quite strange. nobody has released anything on that software for a while... or mabe becuae uawidget was release and broke that one...
can you try to use git master? It seems to work here.
But as written in readme it is safer and easier to create models in code

from opcua-modeler.

civilizeddev avatar civilizeddev commented on July 22, 2024

opcua-widgets 0.6 has been released, it does not work with opcua-modeler 0.5.10.

A workaround to this is to downgrade opcua-widgets to 0.5.10

If you use the poetry as a package manager, you can do this:

poetry add opcua-widgets@^0.5.10

Then it will downgrade your opcua-widgets from 0.6.0 to 0.5.10.

from opcua-modeler.

oroulet avatar oroulet commented on July 22, 2024

I updated the setup.py files in opcua-modeller so it does not upgrade to 0.6.0.
But as written above, code is now a better solution

from opcua-modeler.

om327 avatar om327 commented on July 22, 2024

Hello, I've tried running the modeler but seem to be hiting the same issues as users above. I've checked and the opcua-widget version i'm using is 0.5.10. I've tried uninstalling and reinstalling that version but no luck - is the modeler now nolonger supprted?

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.

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.