Giter VIP home page Giter VIP logo

Comments (8)

maxime-esa avatar maxime-esa commented on July 30, 2024

I don't understand. Your screenshot shows the ASN.1 types, meaning that the model was loaded.
Can you show the complete error log on the bottom of the screen ?

from opengeode.

nuaaysh avatar nuaaysh commented on July 30, 2024

I check the same model and show the error information from the terminal:

...:~$ opengeode
[INFO] Model backup enabled - auto-saving every 2 minutes
[ERROR] ASN.1 compiler failed - [Errno 2] No such file or directory: 'dataview-uniq.asn'
[ERROR] Type DEVICE_PowerOn_Command not found in ASN.1 model
[ERROR] File not found: dataview-uniq.asn
[ERROR] File not found: dataview-uniq.asn
[ERROR] File not found: dataview-uniq.asn
[ERROR] Type DEVICE_PowerOn_Command not found in ASN.1 model(line 33)
[ERROR] Type Trigger not found in ASN.1 model
[ERROR] Type Trigger not found in ASN.1 model - "t Trigger"
[ERROR] Type Trigger not found in ASN.1 model(line 48)
[ERROR] Type Trigger not found in ASN.1 model - "trigger Trigger"
[ERROR] Type DEVICE_PowerOn_Command not found in ASN.1 model - "dpc DEVICE_PowerOn_Command"
[ERROR] Wrong number of parameters or type mismatch
[ERROR] In call to data_parser: Type of parameter 1 is incorrect (UnknownType) - Cannot resolve type of "dpc" - "data_parser(dpc)"
[ERROR] In "trigger:=data_parser(dpc)": Type mismatch (UnknownType vs UnknownType - Cannot resolve type of "data_parser(dpc)")
[ERROR] In call to trigger_start: Type of parameter 1 is incorrect (UnknownType) - Cannot resolve type of "trigger" - trigger_start(trigger)
[ERROR] No return value expected in procedure data_parser

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

Can you run opengeode with the -g flag and report the output (just the exact call to the ASN.1 compiler, not all the errors afterwards)?

from opengeode.

nuaaysh avatar nuaaysh commented on July 30, 2024

OK, Here is the report:

...:~$ opengeode -g
[DEBUG] Starting OpenGEODE version 3.0.8
[
[DEBUG] /usr/bin/mono /opt/asn1scc/asn1.exe -customStgAstVersion 4 -customStg /opt/asn1scc/python.stg::/tmp/tmp4q9yt45d/21279baa8438f4b740b96aab7592d1dc.py -renamePolicy 0 -customIcdUper /tmp/tmp4q9yt45d/pretty_print_asn1.stg::/tmp/tmp4q9yt45d/21279baa8438f4b740b96aab7592d1dc.html dataview-uniq.asn
[DEBUG] /usr/bin/mono /opt/asn1scc/asn1.exe -customStgAstVersion 4 -customStg /opt/asn1scc/python.stg::/tmp/tmp4q9yt45d/21279baa8438f4b740b96aab7592d1dc.py -renamePolicy 0 -customIcdUper /tmp/tmp4q9yt45d/pretty_print_asn1.stg::/tmp/tmp4q9yt45d/21279baa8438f4b740b96aab7592d1dc.html dataview-uniq.asn
[DEBUG] Parsing complete. Summary, found 0 warnings and 0 errors
[DEBUG] Parsing string: /* CIF TEXT (295, 241), (538, 281) */
-- Text area for declarations and comments
use dv comment 'dataview-uniq.asn';
signal DPC(DEVICE_PowerOn_Command);
signal DCC; 
signal DSM;
/* CIF ENDTEXT */ with elem text_area
[DEBUG] Traceback (most recent call last):
  File "/home/shyuan/.local/lib/python3.8/site-packages/opengeode/Asn1scc.py", line 98, in parse_asn1
    filehash.update(open(each).read().encode('utf-8'))
FileNotFoundError: [Errno 2] No such file or directory: 'dataview-uniq.asn'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/shyuan/.local/lib/python3.8/site-packages/opengeode/ogParser.py", line 200, in set_global_DV
    DV = parse_asn1(tuple(asn1_filenames),
  File "/home/shyuan/.local/lib/python3.8/site-packages/opengeode/Asn1scc.py", line 104, in parse_asn1
    raise TypeError (str(err))
TypeError: [Errno 2] No such file or directory: 'dataview-uniq.asn'

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

I am unable to reproduce. It's not the call to asn1scc that fails, it's the Python call to "open("dataview-uniq.asn")" that says FileNotFound. If the ASN.1 file is in the same folder as the SDL model (.pr) I do not see how this can fail.

Can you send me a tarball with the files for me to check what is going wrong?

Thanks

from opengeode.

nuaaysh avatar nuaaysh commented on July 30, 2024

Hi,
I have sent an email to you ([email protected]). The attachment includes my SDL project (.pr and .asn files)
Best wishes,

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

Thanks. This should be fixed now. The tool was loosing track of the working folder when the model was loaded from a different directory.

from opengeode.

nuaaysh avatar nuaaysh commented on July 30, 2024

Many Thanks! I test it just now, it works! Thanks for the good SDL tool provided by you.

from opengeode.

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.