SymPy Gamma Installtion in Windows

83 views
Skip to first unread message

jiju

unread,
Apr 27, 2014, 2:10:39 PM4/27/14
to sy...@googlegroups.com
Hi Friends,  I have installed SymPy Gamma in my windows machine and it is working fine

Only issue is that  the graphs are not loading. I think I missed some package to install. Could anyone please help me

jiju

unread,
Apr 27, 2014, 2:19:12 PM4/27/14
to sy...@googlegroups.com
I have installed matplotlib also, but this did not solve the issue

jiju

unread,
Apr 27, 2014, 2:21:53 PM4/27/14
to sy...@googlegroups.com
I think I got the issue. lot of files are missing, see the 404 errrors coming up in the console.  But how to get these files in sympy_gamma\static folder?

NFO     2014-04-27 23:31:43,155 module.py:627] default: "GET / HTTP/1.1" 200 18003
NFO     2014-04-27 23:31:43,290 module.py:627] default: "GET /static/js/base.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:43,296 module.py:627] default: "GET /static/js/card.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:43,299 module.py:627] default: "GET /static/js/gamma.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:43,299 module.py:627] default: "GET /static/js/plot.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:43,301 module.py:627] default: "GET /static/js/factordiagram.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:43,301 module.py:627] default: "GET /static/js/doc.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:43,322 module.py:627] default: "GET /static/css/style.css HTTP/1.1" 200 18337
NFO     2014-04-27 23:31:45,565 module.py:627] default: "GET /static/images/logo.png HTTP/1.1" 200 28209
NFO     2014-04-27 23:31:48,226 module.py:627] default: "GET /static/js/base.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:48,246 module.py:627] default: "GET /static/js/card.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:48,259 module.py:627] default: "GET /static/js/plot.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:48,278 module.py:627] default: "GET /static/js/factordiagram.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:48,293 module.py:627] default: "GET /static/js/doc.js HTTP/1.1" 404 -
NFO     2014-04-27 23:31:48,325 module.py:627] default: "GET /static/js/gamma.js HTTP/1.1" 404 -

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 2:37:36 PM4/27/14
to sy...@googlegroups.com
Are you talking about 3D (multivariable graphso)? SymPy Gamma does not use matplotlib for its plotting,for 2D it uses a javascript library D3.js and it is still not able to plot 3D 


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/01bd3895-d812-4290-8627-e2b05299ad51%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 2:40:45 PM4/27/14
to sy...@googlegroups.com
It seems like the js files in your js folder are missing...are there any files? if not then please download/ clone again

jiju

unread,
Apr 27, 2014, 2:40:57 PM4/27/14
to sy...@googlegroups.com
Thanks Sahil.

No, I am saying about 2d graphs only. I have installed SymPy Gamma in windows machine.

It is working fine, but the graphs are not loading. I am getting the following error in place of the graphs (the files which were missing, as I mentioned in my previous post, were added)

There was an error in Gamma. For referencethe last five traceback entries are: Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\views.py", line 278, in eval_card result = g.eval_card(card_name, expression, variable, parameters) File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\logic\logic.py", line 322, in eval_card result = card.eval(evaluator, components, parameters) File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\logic\resultsets.py", line 97, in eval return self.card_info['eval_method'](evaluator, components, parameters) File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\logic\resultsets.py", line 558, in eval_plot series = series.get_segments() File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\sympy\plotting\plot.py", line 457, in get_segments sample([self.start, f_start], [self.end, f_end], 0) AttributeError: 'NoneType' object has no attribute 'random'

jiju

unread,
Apr 27, 2014, 2:45:51 PM4/27/14
to sy...@googlegroups.com
Yes, I downloaded and then the 404 error is gone.

But, in place of the graph, I am getting the following error now

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 2:51:14 PM4/27/14
to sy...@googlegroups.com
Have you updated the submodules?

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 2:53:37 PM4/27/14
to sy...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.

jiju

unread,
Apr 27, 2014, 2:57:05 PM4/27/14
to sy...@googlegroups.com
Dear Sahil,

I had downloaded it as zip from https://github.com/sympy/sympy_gamma/ and  hence git commands are not working for sub modules. Should I do this as I have downloaded as zip?

jiju

unread,
Apr 27, 2014, 3:05:20 PM4/27/14
to sy...@googlegroups.com
I think some thing got messed up in my downloaded package. I will clone the entire stuff and see this

$ git clone git://github.com/sympy/sympy_gamma.git
$ cd sympy_gamma
$ git submodule init
$ git submodule update

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 3:09:19 PM4/27/14
to sy...@googlegroups.com
It is highly recommended that you clone the Gamma rather than downloading it as zip..Getting the submodules within zip is an issue many people are griping about. you can see http://stackoverflow.com/questions/12936014/include-a-github-submodule-automatically-in-download for a solution.

Sure, give it a shot...just follow the installation instructions


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.

jiju

unread,
Apr 27, 2014, 3:46:41 PM4/27/14
to sy...@googlegroups.com
Dear Sahil,

I have cloned it. Still the result is same. Everything is working fine except for the plot.

At the place of the graph, the following error occurs.


 Plot:

There was an error in Gamma. For referencethe last five traceback entries are: Traceback (most recent call last):

File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\views.py", line 278, in eval_card result = g.eval_card(card_name, expression, variable, parameters)
File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\logic\logic.py", line 322, in eval_card result = card.eval(evaluator, components, parameters)

File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\logic\resultsets.py", line 98, in eval return self.card_info['eval_method'](evaluator, components, parameters)

File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\logic\resultsets.py", line 562, in eval_plot series = series.get_segments()

File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\sympy\sympy\plotting\plot.py", line 457, in get_segments sample([self.start, f_start], [self.end, f_end], 0) AttributeError: 'NoneType' object has no attribute 'random'

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 4:08:05 PM4/27/14
to sy...@googlegroups.com
Oh! i almost forgot...you need to install "Numpy"..sorry about that..it is clear now that you had the submodules even in the downloaded folder..


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.

Aaron Meurer

unread,
Apr 27, 2014, 7:44:13 PM4/27/14
to sy...@googlegroups.com
Does the App Engine runtime warn you if there are any differences
between your local Python and the one from the real App Engine?

Aaron Meurer
> https://groups.google.com/d/msgid/sympy/CA%2BOR%3DbhFC7fCxmWJbYd2CThAEx0mirq51MgK%2BQqdcg_sZxr43Q%40mail.gmail.com.

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 10:02:15 PM4/27/14
to sy...@googlegroups.com
Gamma supports only python2.7, if you are using a different python version Gamma does NOT specifically give error about python version, instead of that if anybody is using python3 server will not start and will give  error related to syntax.

GAI does not maintain code-base compatible with python3. Only 2.7 is supported.

SAHIL SHEKHAWAT

unread,
Apr 27, 2014, 10:03:59 PM4/27/14
to sy...@googlegroups.com
oh! I am talking about Google App Engine, not specific to gamma.

jiju

unread,
Apr 28, 2014, 1:47:31 PM4/28/14
to sy...@googlegroups.com
Dear Sahil and  Aaron

App Engine runtime does not throw any warnings about the difference of the phython versions.I am using python 2.7

However Numpy was not installed. I will install this and update

jiju

unread,
Apr 28, 2014, 1:57:02 PM4/28/14
to sy...@googlegroups.com
Dear Sahil,

Thanks a lot, without your help, I might not have solved this.Yes, installing Numpy solved the issue and graphs are appearing. Thanks again.
Reply all
Reply to author
Forward
0 new messages