Ask Your Question
0

Another problem with 'var' in cloud.sagemath

asked 2014-09-29 14:16:35 -0500

Larry Moss gravatar image

updated 2014-09-29 14:31:08 -0500

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.

Thanks!

Error in lines 14-56
Traceback (most recent call last):
  File "/projects/4f1d0d75-55b1-4a27-a977-593efeabe994/.sagemathcloud/sage_server.py", 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/sage_salvus.py", line 2633, in var
    return var0(*args, **kwds)
  File "/projects/4f1d0d75-55b1-4a27-a977-593efeabe994/.sagemathcloud/sage_salvus.py", 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

Comments

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

slelievre gravatar imageslelievre ( 2014-09-30 07:37:45 -0500 )edit

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

FrédéricC gravatar imageFrédéricC ( 2014-09-30 12:39:33 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2014-09-30 14:35:59 -0500

William Stein gravatar image

Hi,

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

William

edit flag offensive delete link more

Comments

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 08:44:11 -0500 )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

Stats

Asked: 2014-09-29 14:16:35 -0500

Seen: 171 times

Last updated: Sep 30 '14