You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: from wolframclient.evaluation import WolframLanguageSession
In [2]: from wolframclient.language import wl, wlexpr
In [3]: session = WolframLanguageSession('/opt/WolframEngine/12.1/Executables/WolframKernel')
In [4]: session.evaluate(wl.WolframAlpha("number of moons of Saturn", "Result"))
<<< hangs here indefinitely
In [5]: session.evaluate(wlexpr('Range[5]'))
<<< hangs here indefinitely
Steps:
Ubuntu 18.04.5 LTS
conda version : 4.8.4
python version : 3.7.7.final.0
The following works: session.evaluate(wlexpr('Range[5]'))
But I can definitely reproduce a hang with: session.evaluate(wl.WolframAlpha("number of moons of Saturn", "Result"))
Notably the following does return an answer, so there might be a separate issue with the second argument of WolframAlpha: session.evaluate(wl.WolframAlpha("number of moons of Saturn"))
The following works: session.evaluate(wlexpr('Range[5]'))
But I can definitely reproduce a hang with: session.evaluate(wl.WolframAlpha("number of moons of Saturn", "Result"))
Notably the following does return an answer, so there might be a separate issue with the second argument of WolframAlpha: session.evaluate(wl.WolframAlpha("number of moons of Saturn"))
Solved one of my hangs:
In[2]:= WolframAlpha["2+2", "Result"]
/usr/local/Wolfram/WolframEngine/12.3/SystemFiles/FrontEnd/Binaries/Linux-x86-64/WolframPlayer: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
Solved with: sudo apt-get install libasound2
I assume that libasound2 should be made an explicit dependency, or an instruction listed.
Activity
DbxDev commentedon Jul 15, 2021
I wonder if that could be the same issue as #17. The problem you're facing is similar and you all are running Ubuntu.
GSam commentedon Sep 16, 2021
I'm running v12.3 with Python 3.6.9 on Ubuntu.
The following works:
session.evaluate(wlexpr('Range[5]'))But I can definitely reproduce a hang with:
session.evaluate(wl.WolframAlpha("number of moons of Saturn", "Result"))Notably the following does return an answer, so there might be a separate issue with the second argument of WolframAlpha:
session.evaluate(wl.WolframAlpha("number of moons of Saturn"))GSam commentedon Sep 16, 2021
Solved one of my hangs:
Solved with:
sudo apt-get install libasound2I assume that libasound2 should be made an explicit dependency, or an instruction listed.
DbxDev commentedon Sep 21, 2021
Here is the list of dependencies that the FrontEnd requires. Any FrontEnd dependent function eventually need them:
The command to get these: