WolframResearch / WolframClientForPython

Call Wolfram Language functions from Python
https://wolfr.am/wolframclientdoc
MIT License
442 stars 46 forks source link

'Interpreter' Can't Feedback #23

Open Sun-ZhenXing opened 4 years ago

Sun-ZhenXing commented 4 years ago

When I test this:

from wolframclient.evaluation import WolframLanguageSession
from wolframclient.language import wl, Global, wlexpr
session = WolframLanguageSession(r'D:\Program Files\wolf\wolfram.exe')
session.evaluate('Interpreter["TeXExpression"]["2+2"]')

it never feedback and it can't stop, I don't know why, and how can I run it ?

DbxDev commented 4 years ago

Did you try to run the command in the kernel first? On my machine the Wolfram Language code Interpreter["TeXExpression"]["2+2"] takes forever to evaluate.

I'll report this bug.

Sun-ZhenXing commented 4 years ago

I tested the following programs: (Windows10 x64 Wolfram 12.1.1)

math.exe
wolfram.exe
WolframKernel.exe
MathKernel.exe
wolframscript.exe

Completely normal, except for the first run with a few seconds of load stuck. But in Python, there is no feedback at all.