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

2018-09-29 Thread Jan Groenewald
Hi I missed the rest of this thread, but... On Sat, 29 Sep 2018 at 13:24, wrote: > > Our Sage version is 8.2. We are getting this error. > > abc@Math-Sans:~/Downloads/SageMath$ sage --python > Use ./sage --python where the ./ indicates the sage command is in that folder you are located in.

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

2018-09-29 Thread memalaysarkar
Our Sage version is 8.2. We are getting this error. abc@Math-Sans:~/Downloads/SageMath$ sage --python No command 'sage' found, did you mean: Command 'page' from package 'tcllib' (universe) Command 'save' from package 'atfs' (universe) Command 'osage' from package 'graphviz' (main) sage: comman

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 Sep 2018, 18:36 Abhishek Kesarwani, <1907...@gmail.com

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

2018-09-28 Thread Dima Pasechnik
On Fri, 28 Sep 2018, 18:36 Abhishek Kesarwani, <1907a...@gmail.com> wrote: > Thank you, sir, for replying. I tried to run it again after Installing > Sage python2, it gives the following error. > What version of Sagemath have you installed? Are you able to start Python by running sage --python

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

2018-09-28 Thread Abhishek Kesarwani
Thank you, sir, for replying. I tried to run it again after Installing Sage python2, it gives the following error. 1+1000: 1001 Load sage Traceback (most recent call last): File "", line 1, in ImportError: No module named all abc@Math-Sans:~/Do

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

2018-09-27 Thread Dima Pasechnik
For starters, you need Sage's python2, so that at its python prompt you can do >>> from sage.all import * and this works. Are you already at this point? On Thu, Sep 27, 2018 at 2:37 PM Abhishek Kesarwani <1907a...@gmail.com> wrote: > > I am trying to run Example 2: And getting following error.

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

2018-02-22 Thread Dima Pasechnik
On Thursday, February 22, 2018 at 3:31:46 PM UTC, Erik Bray wrote: > > On Thu, Feb 22, 2018 at 11:44 AM, J. Javan > wrote: > > Dear Erik, > > > > I highly appreciate you for taking the time and helping people. > > Basically, we have some mathematical problems in a GUI application > > implem

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

2018-02-22 Thread Erik Bray
On Thu, Feb 22, 2018 at 11:44 AM, J. Javan wrote: > Dear Erik, > > I highly appreciate you for taking the time and helping people. > Basically, we have some mathematical problems in a GUI application > implemented in Qt-C++ which sage is capable of computing them. This is why > we decided to integ

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

2018-02-22 Thread J. Javan
Dear Erik, I highly appreciate you for taking the time and helping people. Basically, we have some mathematical problems in a GUI application implemented in Qt-C++ which sage is capable of computing them. This is why we decided to integrate sage in our app. However, As you mentioned it is a ve

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

2018-01-31 Thread Erik Bray
On Tue, Jan 30, 2018 at 2:35 PM, J. Javan wrote: > I can see that you have successfully linked against sage. > I also have a Qt GUI application which needs to do some mathematics in the > background. > This application is targeted for windows platforms. I have installed sage > from this link. > Co

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

2011-09-14 Thread Willem Jan Palenstijn
On Tue, Sep 13, 2011 at 04:45:58PM -0700, Michael Rubinstein wrote: > Thanks! That worked for me too, though I'm not sure how you decided on > the specific choices of libraries to link to. Good to hear. The libraries are just what I needed to add to get it to link without errors after starting wit

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

2011-09-13 Thread Willem Jan Palenstijn
On Tue, Sep 13, 2011 at 08:46:05AM -0700, Michael Rubinstein wrote: > > I tried adding PySys_SetArgv(argc, argv); after Py_Initialize(); > It gets me further but then gives a strange error message: > > Loading the Sage library... > > > ---