Ask Your Question
0

Another problem with 'var' in cloud.sagemath

asked 10 years ago

Larry Moss gravatar image

updated 10 years ago

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)
Preview: (hide)

Comments

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

slelievre gravatar imageslelievre ( 10 years ago )

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

FrédéricC gravatar imageFrédéricC ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

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

Preview: (hide)
link

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 ( 10 years ago )

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: 10 years ago

Seen: 450 times

Last updated: Sep 30 '14