mathematica_free error

131 views
Skip to first unread message

rodrigos...@gmail.com

unread,
Feb 14, 2022, 11:17:20 AM2/14/22
to sage-support
Good afternoon,

In this worksheet, the algorithm mathematica_free of integrate returns the following error:

Error in lines 2-2 Traceback (most recent call last): File "/cocalc/lib/python3.9/site-packages/smc_sagews/sage_server.py", line 1230, in execute exec( File "", line 1, in <module> File "sage/symbolic/expression.pyx", line 13138, in sage.symbolic.expression.Expression.integral (build/cythonized/sage/symbolic/expression.cpp:95197) return integral(self, *args, **kwds) File "/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/symbolic/integration/integral.py", line 1047, in integrate return integrator(expression, v, a, b) File "/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/symbolic/integration/external.py", line 127, in mma_free_integrator all_outputs = parse_moutput_from_json(json_page_data) File "/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/interfaces/mathematica.py", line 1235, in parse_moutput_from_json raise ValueError('json object contains no pods') ValueError: json object contains no pods

Why is this happening?

Emmanuel Charpentier

unread,
Feb 19, 2022, 7:54:54 AM2/19/22
to sage-support
I have had similar problems. Wolfram may have changed (again !) something in their output format... Since I know zilch about HTML mysteries and miseries, I can't offer anything but my warmest condolences...

Dima Pasechnik

unread,
Feb 20, 2022, 5:24:51 AM2/20/22
to sage-support
On Sat, Feb 19, 2022 at 12:54 PM Emmanuel Charpentier
<emanuel.c...@gmail.com> wrote:
>
> I have had similar problems. Wolfram may have changed (again !) something in their output format... Since I know zilch about HTML mysteries and miseries, I can't offer anything but my warmest condolences...

By the way, has anyone tried https://www.wolfram.com/engine/ ?
We can think of making an interface to it, as it's a free and locally
installable.

Dima
>
> Le lundi 14 février 2022 à 17:17:20 UTC+1, rodrigos...@gmail.com a écrit :
>>
>> Good afternoon,
>>
>> In this worksheet, the algorithm mathematica_free of integrate returns the following error:
>>
>> Error in lines 2-2 Traceback (most recent call last): File "/cocalc/lib/python3.9/site-packages/smc_sagews/sage_server.py", line 1230, in execute exec( File "", line 1, in <module> File "sage/symbolic/expression.pyx", line 13138, in sage.symbolic.expression.Expression.integral (build/cythonized/sage/symbolic/expression.cpp:95197) return integral(self, *args, **kwds) File "/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/symbolic/integration/integral.py", line 1047, in integrate return integrator(expression, v, a, b) File "/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/symbolic/integration/external.py", line 127, in mma_free_integrator all_outputs = parse_moutput_from_json(json_page_data) File "/ext/sage/9.5/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/interfaces/mathematica.py", line 1235, in parse_moutput_from_json raise ValueError('json object contains no pods') ValueError: json object contains no pods
>>
>> Why is this happening?
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/06a0ded3-42e2-4e76-b2e1-db466b3c5fean%40googlegroups.com.

Priyanshu Rai

unread,
Feb 22, 2022, 5:02:47 PM2/22/22
to sage-support
I have to use Mathematica as a part of a University course and I use Sagemath side-by-side because of its huge ecosystem. Although my University has the license for Mathematica Desktop, I'll make sure to give it a try, this looks promising.

Emmanuel Charpentier

unread,
Feb 28, 2022, 11:52:00 AM2/28/22
to sage-support
Le dimanche 20 février 2022 à 11:24:51 UTC+1, dim...@gmail.com a écrit :
On Sat, Feb 19, 2022 at 12:54 PM Emmanuel Charpentier
<emanuel.c...@gmail.com> wrote:
>
> I have had similar problems. Wolfram may have changed (again !) something in their output format... Since I know zilch about HTML mysteries and miseries, I can't offer anything but my warmest condolences...

By the way, has anyone tried https://www.wolfram.com/engine/ ?
We can think of making an interface to it, as it's a free and locally
installable.

[ Sorry for the late answer : I moved (only a couple miles, bit that's still a quarter of a century of life...), and I managed to dig up my computer from the resulting mess only this morning... :-) ]

Yes, yes, yes : easy comparison to Wolfram's (Mathematica's) result may be important in various contexts (and may offer a solution where none of Sage's tools works, e. g. various primitive search problems).

A "nice" presentation could be, like our current Mathematica interface,  a standard package compilable without Wolfram Engine having to be present on the target machine, giving an informative error message if called on a machine without the engine, but giving back the expected result if present.

The documentation should include (a pointer to) instructions on how to install the Wolfram engine.

That could revive my log of untranslatable Mathematica results, for which I have some proposals (but didn't bother to formally file, since enhancing access to a non-free product may not be a priority...). If something gratis, not (too much) encumbered and not-too-hard to install  can  be obtained without too much hassle, that should become a priority.

Henri Girard

unread,
Feb 28, 2022, 1:31:43 PM2/28/22
to sage-s...@googlegroups.com

Jupyter notebook works with wolfram engine 13 on ubuntu (gwls2 and ubuntu22.04 i am using), but maybe it shouldn't be difficult to adapt it ?

I am not good enaugh for this but I think we are on a near way ?

rodrigos...@gmail.com

unread,
May 20, 2022, 4:37:12 AM5/20/22
to sage-support
No, I haven't tried it.

Henri Girard

unread,
May 20, 2022, 6:11:23 AM5/20/22
to sage-s...@googlegroups.com

One of the best idea by these gray days of life

I jupyter/python it works fine, but some pic like 3d stay unanimated, that would be fine to succeed to do it in sage ?

One can use cloud, but would be better to get it working in local sage.

Anyway it is the best to try mathematica (today I prefer sagemath lol)  but both are interesting

Henri

Reply all
Reply to author
Forward
0 new messages