Giter VIP home page Giter VIP logo

Comments (9)

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

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

  1. make sure that the command which asn1.exe does return something
  2. 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.

SerenaC94 avatar SerenaC94 commented on July 30, 2024
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.

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

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.

SerenaC94 avatar SerenaC94 commented on July 30, 2024

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.

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

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.

SerenaC94 avatar SerenaC94 commented on July 30, 2024
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.

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

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.

SerenaC94 avatar SerenaC94 commented on July 30, 2024

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.

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

Excellent! Let me know if you have any other issue.

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.