Code Monkey home page Code Monkey logo

Comments (6)

nickovic avatar nickovic commented on September 17, 2024

Changed setup.py to address it.

from rtamt.

TomyYamy avatar TomyYamy commented on September 17, 2024

I think master [477fafa] still has the issue.
at rtamt/examples/online_monitors

$ python3 online_monitor_ct.py 
ANTLR runtime and generated code versions disagree: 4.8!=4.5.1
ANTLR runtime and generated code versions disagree: 4.8!=4.5.1
Robustness offline: [[2, 3.0], [3.5, 1.0], [4.3, -0.10000000000000009], [11, -0.10000000000000009]]
ANTLR runtime and generated code versions disagree: 4.8!=4.5.1
ANTLR runtime and generated code versions disagree: 4.8!=4.5.1
Robustness online - step 1: []
Robustness online - step 2: [[2, 3.0], [3.5, 1.0], [4.3, -0.10000000000000009], [5, -0.10000000000000009]]
Robustness online - step 3: [[6.6, -0.10000000000000009]]
Robustness online - step final: [[7.9, -0.10000000000000009], [11, -0.10000000000000009]]

Please note that, it is python3 case.

from rtamt.

TomyYamy avatar TomyYamy commented on September 17, 2024

Problem is I don't understand the antrl version setting when build, and runtime.

from rtamt.

TomyYamy avatar TomyYamy commented on September 17, 2024

Now I understand the mechanism.

  1. normal user.
    they will just use runtime and internally our generated parser will work internally.
    What we need to do is, fix development ANTLR4 version and put reliant version of runtime into setup.py
  2. Advanced user (who implements TL)
    We can explain how align it. Just check,
$ antlr4
ANTLR Parser Generator  Version 4.7.2

and run same version of pip install

$ sudo pip2 install antlr4-python2-runtime==4.7.2
$ sudo pip3 install antlr4-python3-runtime==4.7.2

from rtamt.

TomyYamy avatar TomyYamy commented on September 17, 2024

For "application user" the counter measure that committing pre-processed antlr parser and fix runtime in python will work.
Still we expect "TL user" who compile parser himself needs additional explanation in README.md.

from rtamt.

TomyYamy avatar TomyYamy commented on September 17, 2024

We fixed it with setup file.
'antlr4-python2-runtime==4.5; python_version<"3"',
'antlr4-python3-runtime==4.5; python_version>="3"',

from rtamt.

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.