Specify python2 instead of assuming default#357
Open
maxvonhippel wants to merge 1 commit intodreal:masterfrom
Open
Specify python2 instead of assuming default#357maxvonhippel wants to merge 1 commit intodreal:masterfrom
python2 instead of assuming default#357maxvonhippel wants to merge 1 commit intodreal:masterfrom
Conversation
Currently the script fails if your default `python` is version 3, in this fashion:
```
(base) max@max-XPS-13-9310:~/tools/dreal3/dReal-3.16.06.02-linux/bin$ ./dReach -k 10 bouncing_ball.drh --verbose --precision 0.001 --visualize
File "<string>", line 1
import os,sys; print os.path.realpath("./dReach")
^
SyntaxError: invalid syntax
usage: ./dReach options <*.drh> <options to dReal>
dReach: Bounded Model Checking for for Nonlinear Hybrid Systems
OPTIONS:
-k <N> / -u <N> specify the upperbound of unrolling steps (default: 3)
-l <N> specify the lowerbound of unrolling steps (default: 0)
-b use BMC heuristic with disjunctive path encoding (default: do not use)
-r -b and filter unreachable modes from SMT encoding (default: do not use)
-e -r and filter continuous variables from SMT encoding (default: do not use)
-d disjunctive path encoding (default: do not use)
-z apply exit codes (default: do not use):
51 if SAT,
52 if UNSAT,
1 abnormal termination
-n parse new .drh file format (default: do not use)
-s parse new .drh file format and use synchronous encoding (default: do not use)
EXAMPLE:
dReach -k 10 bouncing_ball.drh --verbose --precision 0.001 --visualize
dReach -l 3 -u 10 bouncing_ball.drh --verbose --precision 0.001 --visualize
```
an easy fix is just to specify that you want to use version 2. On my system, and indeed on most systems, if you say `python2` it'll use 2.7, which is probably what you intend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently the script fails if your default
pythonis version 3, in this fashion:an easy fix is just to specify that you want to use version 2. On my system, and indeed on most systems, if you say
python2it'll use 2.7, which is probably what you intend.Thanks for making contributions to dReal! Before opening a
pull-request, please check the following things:
makeand check the code compiles. Please try both of gccand clang.
make formatto run clang-format over your contributions.make styleand check there is no style error.solution. Include the relevant issue number if applicable.
repository.