esa / opengeode

OpenGEODE - a free SDL editor
https://opengeode.net
GNU Lesser General Public License v3.0
69 stars 20 forks source link

I can not open the example???? #42

Closed zongz1024 closed 5 years ago

zongz1024 commented 5 years ago

Sorry to bother you again! But I can not open the example and I do not know the reason.

There are some errors ......

image

zongz1024 commented 5 years ago

the example is 123

maxime-esa commented 5 years ago

In this example you must open the two files at the same time (select both og.pr and system_structure.pr). They depend on each other. Also: have you installed the ASN.1 Compiler (asn1scc) ?

zongz1024 commented 5 years ago

In this example you must open the two files at the same time (select both og.pr and system_structure.pr). They depend on each other. Also: have you installed the ASN.1 Compiler (asn1scc) ?

What I used is the window binary build ,Do I still need the ASN.1 Compiler??? If I realy need ,How I get it???

zongz1024 commented 5 years ago

I select both og.pr and system_structure.pr,but then no use,and have no errors????? image No Errors and Nothing there!!! image

maxime-esa commented 5 years ago

I checked the Windows binary and you do not need to install manually the ASN.1 compiler.

I can't reproduce the issue - on Windows the test1 opens properly with me. Do you have the same problem with other examples or is it only this one?

zongz1024 commented 5 years ago

I checked the Windows binary and you do not need to install manually the ASN.1 compiler.

I can't reproduce the issue - on Windows the test1 opens properly with me. Do you have the same problem with other examples or is it only this one?

Thanks for your help ! I have the same problem with all the examples,and i do not know how to solve the problem.

maxime-esa commented 5 years ago

The issue is difficult to debug - the Windows build is old and not maintained. It could come from an incompatibility between your version of Windows and one of the Python dependencies (Qt4, Antlr, etc.).

If that's an option for you I suggest to work on Linux which is the primary target platform for the tool.

One more thing to check: after trying to open one of the examples on Windows, can you please close the tool and copy the content of the file named "opengeode_stderr.log", that is saved in the folder from which you ran Opengeode?

zongz1024 commented 5 years ago

The issue is difficult to debug - the Windows build is old and not maintained. It could come from an incompatibility between your version of Windows and one of the Python dependencies (Qt4, Antlr, etc.).

If that's an option for you I suggest to work on Linux which is the primary target platform for the tool.

One more thing to check: after trying to open one of the examples on Windows, can you please close the tool and copy the content of the file named "opengeode_stderr.log", that is saved in the folder from which you ran Opengeode?

the content of the file named "opengeode_stderr.log"

[INFO] Model backup enabled - auto-saving every 2 minutes [ERROR] Aborting: could not open or parse input file

maxime-esa commented 5 years ago

Oh, that's an IO error. Please copy also the content of opengeode_stdout.log

zongz1024 commented 5 years ago

Oh, that's an IO error. Please copy also the content of opengeode_stdout.log

Maybe there is just an IO error.There is nothing in the opengeode_stdout.log

maxime-esa commented 5 years ago

Can you try to unpack opengeode_windows.zip in c:>Temp\ and try to load the example files from there (i.e. without any long path)

zongz1024 commented 5 years ago

Can you try to unpack opengeode_windows.zip in c:>Temp\ and try to load the example files from there (i.e. without any long path)

Oh! Thanks! I can get the image . but there are some errors in the opengeode_stderr.log

[INFO] Model backup enabled - auto-saving every 2 minutes [ERROR] Cannot copy [ERROR] Cannot copy [ERROR] Cannot copy [ERROR] Missing label: Then_What [ERROR] Missing label: Then_What [ERROR] Missing label: eight [ERROR] Missing label: eight Traceback (most recent call last): File "opengeode.py", line 2306, in upd_statechart File "Statechart.pyc", line 500, in render_statechart File "pygraphviz\agraph.pyc", line 1305, in layout File "pygraphviz\agraph.pyc", line 1251, in _run_prog File "pygraphviz\agraph.pyc", line 1239, in _get_prog ValueError: Program neato not found in path. [ERROR] Cannot copy [ERROR] Cannot copy [ERROR] Cannot copy

zongz1024 commented 5 years ago

After I open the example ,There is a info shown to me! image

maxime-esa commented 5 years ago

That's not errors of the program.

One thing: neato not found. This is a dependency (graphviz/dot) which is missing - used to transform the SDL model into statecharts. It is not packaged with opengeode, but this is probably something you can install manually from here: https://graphviz.gitlab.io/download/ This is not strictly needed to work with opengeode. It only gives a different (read-only) view of the diagram.

Selection is incompatible with copy means you did a Ctrl-C to copy something that cannot be copied. For example if you selected multiple items at once, you cannot copy/paste them in one go.