Comments (8)
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.
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.
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.
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.
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.
Hi,
I have sent an email to you ([email protected]). The attachment includes my SDL project (.pr and .asn files)
Best wishes,
from opengeode.
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.
Many Thanks! I test it just now, it works! Thanks for the good SDL tool provided by you.
from opengeode.
Related Issues (20)
- A question about SDL process parameters HOT 1
- I use the command 'make full-install' but get an error HOT 7
- ASN.1 compiler not found HOT 9
- Multiple SDL Processes HOT 2
- Composite states HOT 6
- Error - Answers of decision could overlap HOT 2
- Could you please give me a user manual about the opengeode? HOT 7
- the tool can use the command line to operate?? HOT 5
- Some questions about the OpenGEODE HOT 20
- type of channel. HOT 2
- Unexpected error - Answers of decision could overlap HOT 1
- Tagging releases
- Combining the READMEs HOT 1
- Website for OpenGEODE HOT 3
- Having trouble getting started with OpenGEODE via TASTE VM HOT 5
- Surfacing in-line TODOs / FIXMEs as GitHub issues HOT 3
- PyPI opengeode project HOT 2
- Generated Ada code is wrong for decision with grouped answers HOT 2
- More pythonic, less system-heavy ? HOT 5
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 opengeode.