My question is similar to the one posted here: WolframEngine install + wolframclient for Python on Ubuntu. However, this solution is not fixing my problem.
I cannot get the wolframclient library to successfully connect to the WolframKernel that is installed on my machine.
I have installed Mathematica 12.0 (for student) on laptop (Pixelbook).
When I run:
from wolframclient.evaluation import WolframLanguageSession
session = WolframLanguageSession(kernel='/usr/local/Wolfram/WolframEngine/12.0/Executables/wolfram')
session.start() <-- this call will fail resulting in a socket exception: Socket operation aborted.
we 'Failed to communicate with kernel'
Furthermore, I am able to launch Mathematica from terminal, so there is clearly an activated kernel.
Any thoughts?