It probably matters what you executed before this. SymPy Live does some hacks to fake a continuous Python session. I tried executing "expr = (x + y)**5" in SymPy Live and got no errors.
Aaron Meurer On Mon, Jan 13, 2020 at 6:26 AM Gagandeep Singh (B17CS021) <[email protected]> wrote: > > Hi, > > I am facing some problems on SymPy Live. I tried executing the example > session on live.sympy.org and the following error was thrown, > > ``` > >>> expr = (x + y)**5 > Traceback (most recent call last): File "<string>", line 1, in <module> File > "/base/data/home/apps/s~sympy-live-hrd/20200105t193609.423659059328302322/sympy/sympy/core/decorators.py", > line 91, in __sympifyit_wrapper return func(a, b) File > "/base/data/home/apps/s~sympy-live-hrd/20200105t193609.423659059328302322/sympy/sympy/core/decorators.py", > line 129, in binary_op_wrapper return func(self, other) File > "/base/data/home/apps/s~sympy-live-hrd/20200105t193609.423659059328302322/sympy/sympy/core/expr.py", > line 176, in __add__ return Add(self, other) File > "/base/data/home/apps/s~sympy-live-hrd/20200105t193609.423659059328302322/sympy/sympy/core/cache.py", > line 94, in wrapper retval = cfunc(*args, **kwargs) File > "/base/data/home/apps/s~sympy-live-hrd/20200105t193609.423659059328302322/sympy/sympy/core/compatibility.py", > line 916, in wrapper del cache[oldkey] KeyError: [<class > 'sympy.core.add.Add'>, x, y, <class > 'sympy.core.assumptions.ManagedProperties'>, <class > 'sympy.core.symbol.Symbol'>, <class 'sympy.core.symbol.Symbol'>] > ``` > Can someone help me with this? > Thank you. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/d8cfc1f2-976f-4829-b02c-15423e9e07eb%40googlegroups.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6LF9xWvR4AJVyHG0Ou-Cr%3Dz%2BcopdbBr_B7VoJ7uk1MtGg%40mail.gmail.com.
