-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Hello everyone :-)
A— I try to run opcua-modeler on my ubuntu1804(Python 3.8.12)。
B— I use the method which is writen in opcua-modeler/README.md as follow:
Development
- git clone https://github.com/FreeOpcUa/python-opcua.git
- git clone https://github.com/FreeOpcUa/opcua-widgets.git
- export PYTHONPATH=$PWD/python-opcua;$PWD/opcua-widgets # let Python find the repositories
or set PYTHONPATH=%PYTHONPATH%;%cd%\python-opcua;%cd%\opcua-widgets on Windows - git clone https://github.com/FreeOpcUa/opcua-modeler.git
- cd opcua-modeler;
- 'python3 app.py' # or 'make run'
C— The modeler GUI can run up, but when I try to set a new Node, the error occurs:
uawidgets.utils - ERROR - init() got an unexpected keyword argument 'namespaceidx'')
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 308, in add_object args, ok = NewUaObjectDialog.getArgs(self.modeler, "Add Object", self._model_mgr.server_mgr, base_node_type=self._model_mgr.server_mgr.nodes.base_object_type)
File "/home/chaos/work/try/opcua-widgets/uawidgets/new_node_dialogs.py", line 96, in getArgs return dialog.get_args(), True
File "/home/chaos/work/try/opcua-widgets/uawidgets/new_node_dialogs.py", line 112, in get_args nodeid, bname = self.get_nodeid_and_bname()
File "/home/chaos/work/try/opcua-widgets/uawidgets/new_node_dialogs.py", line 82, in get_nodeid_and_bname nodeid = ua.NodeId(namespaceidx=ns)
TypeError: init() got an unexpected keyword argument 'namespaceidx'
D— I hava watched similar issues from:
1) FreeOpcUa /opcua-modeler. #109 SyncNode' object has no attribute 'get_attributes'
2) FreeOpcUa /opcua-modeler. #113 AttributeError: 'Node' object has no attribute 'read_attributes'
3) FreeOpcUa /opcua-asyncio. #633 v0.9.14 -> v0.9.90 breaks NodeId interface
Someone said the problem may be caused by the code version. I checked the version in local:
python-opcua 0.98.13;
opcua-asyncio 0.9.92;
opcua-widget 0.6.0;
opcua-modeler 0.5.12;
Then I changed the opcua-widgets to 0.5.10, and the opcua-modeler to 0.5.10 ,but it dosen't work either.
E—— I'd like to get some suggestions here.
Best Wishes!
Mao.