Ask Your Question

Another problem with 'var' in cloud.sagemath

asked 2014-09-29 21:16:35 +0100

Larry Moss gravatar image

updated 2014-09-29 21:31:08 +0100

tmonteil gravatar image

I have some code that does fine on my local machine, and it used to work on cloud.sagemath, but currently it gives an error. The error is listed below. I believe that it has to do with the declaration of variables at the top of my worksheet.

But again, copying this to my local installation doesn't give the error.


Error in lines 14-56
Traceback (most recent call last):
  File "/projects/4f1d0d75-55b1-4a27-a977-593efeabe994/.sagemathcloud/", line 828, in execute
    exec compile(block+'\n', '', 'single') in namespace, locals
  File "", line 1, in <module>
  File "", line 2, in initialize
  File "", line 2, in ina
  File "/projects/4f1d0d75-55b1-4a27-a977-593efeabe994/.sagemathcloud/", line 2633, in var
    return var0(*args, **kwds)
  File "/projects/4f1d0d75-55b1-4a27-a977-593efeabe994/.sagemathcloud/", line 2605, in var0
    v = sage.all.SR.var(*args, **kwds)
  File "ring.pyx", line 595, in sage.symbolic.ring.SymbolicRing.var (build/cythonized/sage/symbolic/ring.cpp:7887)
TypeError: var() takes at most 3 positional arguments (18 given)
edit retag flag offensive close merge delete


The code that gives the error would be a very useful piece of information to provide.

slelievre gravatar imageslelievre ( 2014-09-30 14:37:45 +0100 )edit

Please tell us also the versions of sage you are using.

FrédéricC gravatar imageFrédéricC ( 2014-09-30 19:39:33 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-09-30 21:35:59 +0100

William Stein gravatar image


I psychically figured out what the code that caused the error is, then fixed the bug. Restart the project server to get the fix.


edit flag offensive delete link more


Thanks! But did you fix a bug in my code or in sage? If the bug is with me, I should know so this doesn't happen again. After all, *you* are the one with psychic abilities; I have none. Thanks again -- Larry

Larry Moss gravatar imageLarry Moss ( 2014-10-01 15:44:11 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-09-29 21:16:35 +0100

Seen: 346 times

Last updated: Sep 30 '14