# Error with installing PYKX

**URL:** <https://forum.kx.com/t/error-with-installing-pykx/14115>\
**Category:** Community Support\
**Tags:** pykx, imported\
**Created:** [January 8, 2025, 3:54pm UTC](https://forum.kx.com/t/error-with-installing-pykx/14115 "2025-01-08T15:54:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Anthony](https://forum.kx.com/u/Anthony)\
**Post date:** [January 8, 2025, 3:54pm UTC](https://forum.kx.com/t/error-with-installing-pykx/14115/1 "2025-01-08T15:54:09Z")

</div>

[https://learninghub.kx.com/forums/topic/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?

---

<div class="post-metadata">

**Author:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [January 8, 2025, 4:11pm UTC](https://forum.kx.com/t/error-with-installing-pykx/14115/2 "2025-01-08T16:11:08Z")

</div>

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:&nbsp;[Download kdb Insights | KX](https://kx.com/kdb-insights-personal-edition-license-download/)

---

<div class="post-metadata">

**Author:** ![Anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Anthony](https://forum.kx.com/u/Anthony)\
**Post date:** [January 8, 2025, 4:28pm UTC](https://forum.kx.com/t/error-with-installing-pykx/14115/3 "2025-01-08T16:28:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [January 8, 2025, 4:56pm UTC](https://forum.kx.com/t/error-with-installing-pykx/14115/4 "2025-01-08T16:56:01Z")

</div>

You likely downloaded from:&nbsp;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:&nbsp;https://kx.com/kdb-insights-personal-edition-license-download/

---

<div class="post-metadata">

**Author:** ![Anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Anthony](https://forum.kx.com/u/Anthony)\
**Post date:** [January 9, 2025, 8:53am UTC](https://forum.kx.com/t/error-with-installing-pykx/14115/5 "2025-01-09T08:53:18Z")

</div>

Thank you so much. This solved the issue :)
