njpipeorgan / wolfram-language-notebook

Notebook support for Wolfram Language in VS Code
Apache License 2.0
159 stars 11 forks source link

License issue with free Wolfram Engine and kernel limits #22

Closed liveod3 closed 2 years ago

liveod3 commented 2 years ago

Activated license expired

I installed the free Wolfram Engine in Windows Subsystem of Linux, Ubuntu 20.04.3 LTS and tried using it with this extension in VSCode. However, each time after using it for a while, wolframscript prompts that the license is no long valid.

The Problem might be the kernel limit.

When I'm using wolfram-language-notebook, command

pgrep wolfram

returns 2 pid.

When I'm using wolframscript in command-line, command

pgrep wolfram

returns 1 pid.

Environment

njpipeorgan commented 2 years ago

Thanks for the feedback. It is normal to find two wolfram processes running--one process is responsible for communication and the other one for computation. The latter process is launched as a subkernel, so it should not trigger the kernel limit problem in principle.

Where did you get the "license no longer valid" message?

liveod3 commented 2 years ago

At first the extension works fine, but then it indicates me that it failed to connect to the kernel. So I checked the output of the extension. The kernel returns a piece of error message says that my wolfram account is not valid for activating wolfram engine because I might have activated the engine twice whereas I haven't. I also tried wolframscript command in powershell and got the same result.

I guess the problem might relate to the environment instead of kernels and the extension.

Thanks for the explanation.