examples/demo.py crash
bernecky opened this issue · 4 comments
I am running islpy-2018.1 and demo.py crashes around line 13 of the above file.
Adding ",context=ctx" to that fixes the problem:
bset2 = isl.BasicSet("{[x, y] : x >= 0 and x < 5 and y >= 0 and y < x+4 }",
context=ctx)
Robert
What error message are you seeing? If it's a segfault, could you provide a backtrace through gdb
? What version of islpy? Did you build with the shipped version of isl? If not, what build options? What type of machine?
The former has no reference to "context=ctx" in the line that defines bset2. The latter does.
You're right, that was broken. Thanks for the report, fixed in 9a414b1. Docs should auto-update in a bit.
This:
ImportError: No module named matplotlib.pyplot
just means you need to install matplotlib to see the plot.
As a side note, it's good practice to enclose listings in triple backquotes: https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown