Code Monkey home page Code Monkey logo

Comments (13)

oroulet avatar oroulet commented on July 19, 2024

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.

cpipero avatar cpipero commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

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 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 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.

oroulet avatar oroulet commented on July 19, 2024

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 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 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.

cpipero avatar cpipero commented on July 19, 2024

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 soon

On 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.

oroulet avatar oroulet commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

pushed everything to pip. should be possible to install with pip install opcua-modeller if not bugs.....

from opcua-modeler.

cpipero avatar cpipero commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

you found a bug :-( not very well tested yet.

from opcua-modeler.

oroulet avatar oroulet commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

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.

cpipero avatar cpipero commented on July 19, 2024

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.

oroulet avatar oroulet commented on July 19, 2024

you should update python-opcua library. fixed many things there today

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.