Error with installing PYKX

https://learninghub.kx.com/forums/topic/error-with-installing-pykx

I am following the installation for PYKX. When I run "import pykx as kx" and then follow the prompts. After I provide the base64 code, I get:

PyKX license successfully installed to: {qlic / lic_type}

--------------------------------------------------------------------------- PyKXException Traceback (most recent call last) Cell In[17], line 1 ----> 1 import pykx as kx File c:\Users\ali\OneDrive - Onyx Commodities\Documents\Projects\kdbq environment\.venv\lib\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 c:\Users\ali\OneDrive - Onyx Commodities\Documents\Projects\kdbq environment\.venv\lib\site-packages\pykx\core.pyx:342, in init pykx.core() PyKXException: Non-zero qinit following license install with configuration: {'qhome': 'C:\\Users\\ali\\OneDrive - Onyx Commodities\\Documents\\Projects\\kdbq environment\\.venv\\Lib\\site-packages\\pykx\\lib', 'qlic': WindowsPath('C:/q'), 'ignore_qhome': False, 'qargs': []} failed with output: '2025.01.08T15:51:33.536 licence error: embedq

How do I fix this?

The error 'embedq' means you license does not have the needed flag to enable PyKX.


To get an Insights and PyKX enabled license go to: Download kdb Insights | KX

I see. Is this because I am on the free trial? How do I obtain the flag?

You likely downloaded from: https://kx.com/kdb-personal-edition-download/

But it does not have the Insights and PyKX features enabled.


You nee to get a license from: https://kx.com/kdb-insights-personal-edition-license-download/



Thank you so much. This solved the issue :)