Re: [sage-devel] Re: embedding sage in c or c++

2018-09-28 Thread Abhishek Kesarwani
No, I am getting this error: >>> sage --python Traceback (most recent call last): File "", line 1, in NameError: name 'sage' is not defined On Friday, September 28, 2018 at 11:36:42 PM UTC+5:30, Dima Pasechnik wrote: > > > > On Fri, 28

Re: [sage-devel] Re: embedding sage in c or c++

2018-09-28 Thread Abhishek Kesarwani
from sage.all import * ^ IndentationError: unexpected indent >>> On Thursday, September 27, 2018 at 7:20:14 PM UTC+5:30, Dima Pasechnik wrote: > > For starters, you need Sage's python2, so that at its python prompt you > can do > > >>> from sage.all i

[sage-devel] Re: embedding sage in c or c++

2018-09-27 Thread Abhishek Kesarwani
I am trying to run Example 2: And getting following error. Please help me. abc@Math-Sans:~/Desktop$ gcc -I/usr/include/python2.7 ABC.c -lpython2.7 -lm -lutil -lpthread -ldl abc@Math-Sans:~/Desktop$ ./a.out 1+1: 2 Load sage Traceback (most recent call last): File "", line 1, in ImportError: N