WolframClientForPython icon indicating copy to clipboard operation
WolframClientForPython copied to clipboard

wolframclient cannot locate kernel in Pop!_OS(linux distro)

Open evanhowington opened this issue 3 years ago • 1 comments

wolframClientBugScreenshot

I can run the same code with Line 11 in windows10, but when I move to Pop!_OS(linux distro built on ubuntu) it is unable to locate the kernel. I first attempted Line 11, which did not work and then I found in the docs I need to specify the kernel location, which I did but cannot find it for some reason.

I verified this location using mathematica as well as going into the directory itself on the pc to verify it is present. I also tried specifying "WolframKernel.sh" at the end of the file path but that did not help either.

evanhowington avatar Apr 01 '21 17:04 evanhowington

For some unknown reasons os.path.isfile returns false for the kernel path. You should be able to verify that using:

>>> from os.path import isfile
>>> isfile('/path/to/kernel')

(don't forget to set the path accordingly).

According the the Python documentation isfile calls exists which may return False on some platforms due to execute permissions.

DbxDev avatar Apr 15 '21 09:04 DbxDev