-
Unable to install the pykx in DataBricks. Got PyKXException: Failed to initializ
I try to install pykx on my databricks environment. The pip install was done. When I try to import the pykx package, it throws the <b style=”font-style: italic;”>PyKXException: Failed to initialize embedded q error. It seems like, it can’t able to identify the kc.lic / k4.lic, actually the license file exists in the provided QLIC environment. Help me to solve this issue.
Below is my error,
#Set required environment variable. QLIC is must.
>> import os
>> os.environ[“QLIC”] = “/Workspace/Users/senthil/”
>> os.environ[“QHOME”] = “/Workspace/Users/senthil/”
>> os.environ[“QARGS”] = “–licensed -o 1”
>> import pykx as kx
PyKXException: Failed to initialize embedded q.Captured output from initialization attempt:
‘2024.08.12T08:04:56.974 couldn’t connect to license daemon — exiting
License location used:
/Workspace/Users/senthil/kc.lic
—————————————————————————
PyKXException Traceback (most recent call last)
File <command-1353706060359333>, line 1
—-> 1 import pykx as kx
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/pykx/__init__.py:32
28 from . import reimporter
29 # Importing core initializes q if in licensed mode, and loads the q C API symbols. This should
30 # happen early on so that if the qinit check is currently happening then no time is wasted.
31 # The current process will exit while the core module is loading if the qinit check is happening.
—> 32 from . import core
34 from abc import ABCMeta, abstractmethod
35 import itertools as it
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/pykx/core.pyx:326, in init pykx.core()
PyKXException: Failed to initialize embedded q.Captured output from initialization attempt:
‘2024.08.12T08:04:56.974 couldn’t connect to license daemon — exiting
License location used: /Workspace/Users/senthil/kc.lic
Note: The pykx package is working fine on my serverless (low level) compute. In all purpose compute I have the above error.
Log in to reply.