Comments (9)
The piece of code that raises this error is this :
path_to_asn1scc = spawn.find_executable('asn1.exe')
if not path_to_asn1scc:
raise TypeError('ASN.1 Compiler not found in path')
I suggest to check the following, from the same shell session that you execute opengeode
- make sure that the command
which asn1.exe
does return something - if it returns something, open python3 in the console and type:
>>> import distutils.spawn as spawn
>>> spawn.find_executable('asn1.exe')
Does it display something?
from opengeode.
1. make sure that the command `which asn1.exe` does return something
It doesn't. That's weird, because I am sure that the PATH variable is set correctly. (I also tried moving the folder to /opt to make sure that it was not due to the non standard location.)
It doesn't help that "which" makes a very poor google keyword...
from opengeode.
which
locates command by scanning the PATH (type man which
to get the help - this works for all unix commands)
If it does not return anything, it means that the file is not in the PATH : either you have a typo in your PATH setting, or you have not updated it properly:
make sure you have run:
export PATH=$PATH:/path/to/asn1scc
If this is in your .bashrc (or similar), make sure you sourced it (or open a new bash session)
from opengeode.
I think in the end it was a typo, but I am not sure because I cut and pasted again the same lines and now it works. Maybe there was a blank space at the end of the .bashrc file (which was sourced because I could see the modifications doing echo $PATH).
So, thanks again for your patience. I am still seeing errors when I open the tests, but I will consider the TASTE virtual machine since there are other people in my team that need to use OpenGeode and maybe it will save us some time.
from opengeode.
What errors do you have now? I think it's better to fix them once for all, that will make the life of future users who want to make a native install easier.
from opengeode.
opengeode/tests/testsuite/test4$ make edit
opengeode orchestrator.pr system_structure.pr
[INFO] Model backup enabled - auto-saving every 2 minutes
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
[ERROR] ASN.1 compiler failed - 'PySide2.QtCore.QFile.open' called with wrong argument types:
PySide2.QtCore.QFile.open(int)
Supported signatures:
PySide2.QtCore.QFile.open(int, PySide2.QtCore.QIODevice.OpenMode, PySide2.QtCore.QFileDevice.FileHandleFlags=PySide2.QtCore.QFileDevice.FileHandleFlag.DontCloseHandle)
PySide2.QtCore.QFile.open(PySide2.QtCore.QIODevice.OpenMode)
from opengeode.
This seems to be due to a change in Pyside2 API. I committed a fix that works here and hopefully will work with your version too.
Please do the following:
$ cd ~/path/to/opengeode
$ git pull
$ pip3 install --user --upgrade .
And then try to open the project again
from opengeode.
Looks definitely better now, I just get these two warnings:
[WARNING] This expression may result in a negative (signed) number while type of operand is unsigned - "a - 1"
[WARNING] This expression may result in a negative (signed) number while type of operand is unsigned - "a - 1"
from opengeode.
Excellent! Let me know if you have any other issue.
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
- 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
- ASN.1 compiler failed - [Errno2] No such file or directory: 'dataview-uniq.asn' HOT 8
- 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.