-
Notifications
You must be signed in to change notification settings - Fork 88
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
TypeError: __init__() got an unexpected keyword argument 'namespaceidx' #114
Comments
We had a bug report on that a couple of days ago, that ' opcua-widget 0.6.0' is causing trouble. |
A—I have downgraded "opcua-widget" to 0.5.10. Others remains: When I click "new model" icon on the GUI, the follow error occurs(same as #109): B—I have downgraded "opcua-widget" to 0.5.10, and "opcua-modeler" to 0.5.10. Others remians: 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). |
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 |
version should be 0.5.14 |
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
or set PYTHONPATH=%PYTHONPATH%;%cd%\python-opcua;%cd%\opcua-widgets on Windows
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.
The text was updated successfully, but these errors were encountered: