Comments (13)
Remove that line for the first start and it will work. I will check this
and make a new release soon
On Mon, Sep 19, 2016, 03:43 Costantino Pipero [email protected]
wrote:
Love the effort, and would really like to test the tool.
I thought I installed everything needed but when I try running app.py it
complains as follows:C:\Some\opcua-modeler-master>python app.py
Traceback (most recent call last):
File "app.py", line 3, in
main()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 434, in
main
modeler = UaModeler()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 58, in
init
self._restore_state()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 182, in
_restore_state
self.restoreState(self.settings.value("main_window_state", b""))
TypeError: restoreState(self, Union[QByteArray, bytes, bytearray],
version: int = 0): argument 1 has unexpected type 'sip.voidptr'of course, I have limited experience in python (but no one else is
creating a free infomodel tool)...—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfzquYqCI8SMRMZ1z323TjWvXjgT97ks5qrejMgaJpZM4KAFI9
.
from opcua-modeler.
Thank you,
In case someone else runs into this, you have to comment out lines 181 through line 185 on the uamodeler.py file, basically almost all of the restore_state() function.
That works
From: ORD [mailto:[email protected]]
Sent: Monday, September 19, 2016 4:26 AM
To: FreeOpcUa/opcua-modeler [email protected]
Cc: Costantino Pipero [email protected]; Author [email protected]
Subject: Re: [FreeOpcUa/opcua-modeler] Installation help (#6)
Remove that line for the first start and it will work. I will check this
and make a new release soon
On Mon, Sep 19, 2016, 03:43 Costantino Pipero <[email protected]mailto:[email protected]>
wrote:
Love the effort, and would really like to test the tool.
I thought I installed everything needed but when I try running app.py it
complains as follows:C:\Some\opcua-modeler-master>python app.py
Traceback (most recent call last):
File "app.py", line 3, in
main()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 434, in
main
modeler = UaModeler()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 58, in
init
self._restore_state()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 182, in
_restore_state
self.restoreState(self.settings.value("main_window_state", b""))
TypeError: restoreState(self, Union[QByteArray, bytes, bytearray],
version: int = 0): argument 1 has unexpected type 'sip.voidptr'of course, I have limited experience in python (but no one else is
creating a free infomodel tool)...—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfzquYqCI8SMRMZ1z323TjWvXjgT97ks5qrejMgaJpZM4KAFI9
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/6#issuecomment-247935895, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABwUt6WQ0aNyZpyX-CaumeNVbqLshO1bks5qrkccgaJpZM4KAFI9.
from opcua-modeler.
Let me know how it goes. I am ready to fix bugs and improve things.
On Mon, Sep 19, 2016, 13:16 Costantino Pipero [email protected]
wrote:
Thank you,
In case someone else runs into this, you have to comment out lines 181
through line 185 on the uamodeler.py file, basically almost all of the
restore_state() function.That works
From: ORD [mailto:[email protected]]
Sent: Monday, September 19, 2016 4:26 AM
To: FreeOpcUa/opcua-modeler [email protected]
Cc: Costantino Pipero [email protected]; Author [email protected]Subject: Re: [FreeOpcUa/opcua-modeler] Installation help (#6)
Remove that line for the first start and it will work. I will check this
and make a new release soonOn Mon, Sep 19, 2016, 03:43 Costantino Pipero <[email protected]
mailto:[email protected]>
wrote:Love the effort, and would really like to test the tool.
I thought I installed everything needed but when I try running app.py it
complains as follows:C:\Some\opcua-modeler-master>python app.py
Traceback (most recent call last):
File "app.py", line 3, in
main()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 434, in
main
modeler = UaModeler()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 58, in
init
self._restore_state()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 182, in
_restore_state
self.restoreState(self.settings.value("main_window_state", b""))
TypeError: restoreState(self, Union[QByteArray, bytes, bytearray],
version: int = 0): argument 1 has unexpected type 'sip.voidptr'of course, I have limited experience in python (but no one else is
creating a free infomodel tool)...—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the
thread
<
https://github.com/notifications/unsubscribe-auth/ACcfzquYqCI8SMRMZ1z323TjWvXjgT97ks5qrejMgaJpZM4KAFI9>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<
https://github.com/FreeOpcUa/opcua-modeler/issues/6#issuecomment-247935895>,
or mute the thread<
https://github.com/notifications/unsubscribe-auth/ABwUt6WQ0aNyZpyX-CaumeNVbqLshO1bks5qrkccgaJpZM4KAFI9>.—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfziM7H6JfgZQfSco-UYQWNKUjFUx4ks5qrm8KgaJpZM4KAFI9
.
from opcua-modeler.
This is really a work in progress, but should work for models no using
extended objects
On Mon, Sep 19, 2016, 13:20 Olivier Roulet-Dubonnet <
[email protected]> wrote:
Let me know how it goes. I am ready to fix bugs and improve things.
On Mon, Sep 19, 2016, 13:16 Costantino Pipero [email protected]
wrote:Thank you,
In case someone else runs into this, you have to comment out lines 181
through line 185 on the uamodeler.py file, basically almost all of the
restore_state() function.That works
From: ORD [mailto:[email protected]]
Sent: Monday, September 19, 2016 4:26 AM
To: FreeOpcUa/opcua-modeler [email protected]
Cc: Costantino Pipero [email protected]; Author [email protected]Subject: Re: [FreeOpcUa/opcua-modeler] Installation help (#6)
Remove that line for the first start and it will work. I will check this
and make a new release soonOn Mon, Sep 19, 2016, 03:43 Costantino Pipero <[email protected]
mailto:[email protected]>
wrote:Love the effort, and would really like to test the tool.
I thought I installed everything needed but when I try running app.py
it
complains as follows:C:\Some\opcua-modeler-master>python app.py
Traceback (most recent call last):
File "app.py", line 3, in
main()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 434,
in
main
modeler = UaModeler()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 58, in
init
self._restore_state()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 182,
in
_restore_state
self.restoreState(self.settings.value("main_window_state", b""))
TypeError: restoreState(self, Union[QByteArray, bytes, bytearray],
version: int = 0): argument 1 has unexpected type 'sip.voidptr'of course, I have limited experience in python (but no one else is
creating a free infomodel tool)...—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the
thread
<
https://github.com/notifications/unsubscribe-auth/ACcfzquYqCI8SMRMZ1z323TjWvXjgT97ks5qrejMgaJpZM4KAFI9>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<
https://github.com/FreeOpcUa/opcua-modeler/issues/6#issuecomment-247935895>,
or mute the thread<
https://github.com/notifications/unsubscribe-auth/ABwUt6WQ0aNyZpyX-CaumeNVbqLshO1bks5qrkccgaJpZM4KAFI9>.—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfziM7H6JfgZQfSco-UYQWNKUjFUx4ks5qrm8KgaJpZM4KAFI9
.
from opcua-modeler.
I can use the UI, but it doesn’t save anything I put it.
I wonder if there’s anything to do with a server opc.tcp://0.0.0.0:48400/freeopcua/uamodeler/ that seems to be required to run (maybe for model validation).
In the command prompt (under windows) it says “Listening on 0.0.0.0:48400” but when I try connecting a generic client I can’t find anything
From: ORD [mailto:[email protected]]
Sent: Monday, September 19, 2016 7:25 AM
To: FreeOpcUa/opcua-modeler [email protected]
Cc: Costantino Pipero [email protected]; Author [email protected]
Subject: Re: [FreeOpcUa/opcua-modeler] Installation help (#6)
This is really a work in progress, but should work for models no using
extended objects
On Mon, Sep 19, 2016, 13:20 Olivier Roulet-Dubonnet <
[email protected]:[email protected]> wrote:
Let me know how it goes. I am ready to fix bugs and improve things.
On Mon, Sep 19, 2016, 13:16 Costantino Pipero <[email protected]mailto:[email protected]>
wrote:Thank you,
In case someone else runs into this, you have to comment out lines 181
through line 185 on the uamodeler.py file, basically almost all of the
restore_state() function.That works
From: ORD [mailto:[email protected]]
Sent: Monday, September 19, 2016 4:26 AM
To: FreeOpcUa/opcua-modeler <[email protected]mailto:[email protected]>
Cc: Costantino Pipero <[email protected]mailto:[email protected]>; Author <[email protected]mailto:[email protected]>Subject: Re: [FreeOpcUa/opcua-modeler] Installation help (#6)
Remove that line for the first start and it will work. I will check this
and make a new release soonOn Mon, Sep 19, 2016, 03:43 Costantino Pipero <[email protected]
mailto:[email protected]%0b>> mailto:[email protected]>
wrote:Love the effort, and would really like to test the tool.
I thought I installed everything needed but when I try running app.py
it
complains as follows:C:\Some\opcua-modeler-master>python app.py
Traceback (most recent call last):
File "app.py", line 3, in
main()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 434,
in
main
modeler = UaModeler()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 58, in
init
self._restore_state()
File "C:\Some\opcua-modeler-master\uamodeler\uamodeler.py", line 182,
in
_restore_state
self.restoreState(self.settings.value("main_window_state", b""))
TypeError: restoreState(self, Union[QByteArray, bytes, bytearray],
version: int = 0): argument 1 has unexpected type 'sip.voidptr'of course, I have limited experience in python (but no one else is
creating a free infomodel tool)...—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the
thread
<
https://github.com/notifications/unsubscribe-auth/ACcfzquYqCI8SMRMZ1z323TjWvXjgT97ks5qrejMgaJpZM4KAFI9>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<
https://github.com/FreeOpcUa/opcua-modeler/issues/6#issuecomment-247935895>,
or mute the thread<
https://github.com/notifications/unsubscribe-auth/ABwUt6WQ0aNyZpyX-CaumeNVbqLshO1bks5qrkccgaJpZM4KAFI9>.—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfziM7H6JfgZQfSco-UYQWNKUjFUx4ks5qrm8KgaJpZM4KAFI9
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/6#issuecomment-247968196, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABwUt0TfkhN6yzDW2gCa7WD2Or-zodTIks5qrnEZgaJpZM4KAFI9.
from opcua-modeler.
how did you install? You should probably install the master version of python-opcua, opcua-widgets and opcua-modeller by downloading from git.
I fixed a lot of things lately
from opcua-modeler.
pushed everything to pip. should be possible to install with pip install opcua-modeller if not bugs.....
from opcua-modeler.
I ran pip install but it told me that everything is up to date.
Still cannot save any modification.
I tried to create a simple ObjectType (with nothing in it) and saved it. No dice.
here's what the console output gives me:
`NewNodeBaseDialog returns: [2, 'SerialManagerType']
CURRENT C:/Users/Dromedaire/Downloads/opcua-modeler-master/OpenSCSNodeset.xml
Saving to C:/Users/Dromedaire/Downloads/opcua-modeler-master/OpenSCSNodeset.xml
Exporting 1 nodes: [Node(NumericNodeId(ns=2;i=1))]
and namespaces: ['http://opcfoundation.org/UA/OpenSCS']
Exporting: Node(NumericNodeId(ns=2;i=1))
NODE COMMON Node(NumericNodeId(ns=2;i=1))
Traceback (most recent call last):
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\xml\etree\ElementTree.py", line 1078, in _escape_attrib
if "&" in text:
TypeError: argument of type 'bool' is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Dromedaire\Downloads\opcua-modeler-master\uamodeler\uamodeler.py", line 296, in _save
exp.dump_etree() #debug
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\site-packages\freeopcua-0.10.14-py3.5.egg\opcua\common\xmlexporter.py", line 79, in dump_etree
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\xml\etree\ElementTree.py", line 1165, in dump
elem.write(sys.stdout, encoding="unicode")
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\xml\etree\ElementTree.py", line 775, in write
short_empty_elements=short_empty_elements)
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\xml\etree\ElementTree.py", line 940, in _serialize_xml
short_empty_elements=short_empty_elements)
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\xml\etree\ElementTree.py", line 932, in _serialize_xml
v = _escape_attrib(v)
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\xml\etree\ElementTree.py", line 1090, in _escape_attrib
_raise_serialization_error(text)
File "C:\Users\Dromedaire\AppData\Local\Programs\Python\Python35-32\lib\xml\etree\ElementTree.py", line 1056, in _raise_serialization_error
"cannot serialize %r (type %s)" % (text, type(text).name)
TypeError: cannot serialize False (type bool)`
from opcua-modeler.
you found a bug :-( not very well tested yet.
from opcua-modeler.
The main issue is that I have no idea how to make tests with GUI applications. So it is very easy to break something. I really need to find a solution for this. Fixing this asap
from opcua-modeler.
fixed in master: https://github.com/FreeOpcUa/python-opcua/commits/master
This was a python-opcua exporter bug
Can you try to install from github then I do not need to make a new release every time I would like you to test something
from opcua-modeler.
Thank you it seems to be working now. I will keep testing and let you know
Really appreciated
From: ORD [mailto:[email protected]]
Sent: Tuesday, September 20, 2016 7:48 AM
To: FreeOpcUa/opcua-modeler [email protected]
Cc: Costantino Pipero [email protected]; Author [email protected]
Subject: Re: [FreeOpcUa/opcua-modeler] Installation help (#6)
fixed in master: https://github.com/FreeOpcUa/python-opcua/commits/master
This was a python-opcua exporter bug
Can you try to install from github then I do not need to make a new release every time I would like you to test something
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/6#issuecomment-248278601, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABwUt6cvxXTkxzanIXdOPC5l099HMlP4ks5qr8figaJpZM4KAFI9.
from opcua-modeler.
you should update python-opcua library. fixed many things there today
from opcua-modeler.
Related Issues (20)
- Can't import S7-1500 XML HOT 5
- Possible to add object array to a Object Type? HOT 1
- Pull Properties from TypeDefinition HOT 3
- List Index out of Range HOT 1
- Cannot load MachineVision Specification nodeset
- TypeError: hasattr(): attribute name must be string HOT 3
- enumeration HOT 4
- Installation on Windows 10
- SyncNode' object has no attribute 'get_attributes' HOT 5
- --
- ImportError: cannot import name 'type_string_from_type' from 'asyncua.ua.uatypes
- XML Parsing Error HOT 1
- AttributeError: 'Node' object has no attribute 'read_attributes' HOT 6
- TypeError: __init__() got an unexpected keyword argument 'namespaceidx' HOT 4
- opcua-modeler==0.5.12 incompatible with python-opcua==0.98.13 HOT 7
- Impossible to load default schema `Opc.Ua.Di.NodeSet2.xml` HOT 1
- Unable to save model HOT 2
- unable to install
- can not load custom structure in own code HOT 1
- pip install error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opcua-modeler.