cancel
Showing results for 
Search instead for 
Did you mean: 

PyKX license error

jhgkinds
New Contributor

Dear KX community,

I did a fresh install of q on windows with a new license file.

Q works ok.

But after installing PyKX v1.6 it remains saying "Failed to initialize PyKX fully licensed functionality.
To access all functionality of PyKX please download an evaluation license from https://kx.com/kdb-insights-personal-edition-license-download/
Full installation instructions can be found at https://code.kx.com/pykx/getting-started/installing.html
Falling back to unlicensed mode, which has limited functionality.
Refer to https://code.kx.com/pykx/user-guide/advanced/modes.html for more information on licensed vs unlicensed modalities.
Captured output from initialization attempt:
'2023.07.11T21:46:14.219 licence error: k4.lic

I have put QLIC and QHOME in my environment variables, but nothing helps.

Any solution?

1 ACCEPTED SOLUTION

rocuinneagain
Valued Contributor
Valued Contributor

Can you run these 2 commands in your command prompt and share the output?

 

set QARGS="--unlicensed"
python -c "import pykx;pykx.util.debug_environment()"

 

 

This is the output for me:

 

**** PyKX information ****
pykx.args: ('--unlicensed',)
pykx.qhome: C:\q
pykx.qlic: C:\q
pykc.licensed: False
pykx.__version__: 1.6.0
pykx.file: C:\Users\rocuinneagain\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pykx\util.py

**** Python information ****
sys.version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
pandas: 1.5.3
numpy: 1.25.0
pytz: 2022.7.1
which python: C:\Users\rocuinneagain\AppData\Local\Microsoft\WindowsApps\python.EXE
which python3: C:\Users\rocuinneagain\AppData\Local\Microsoft\WindowsApps\python3.EXE

**** Platform information ****
platform.platform: Windows-10-10.0.19045-SP0

**** Environment Variables ****
IGNORE_QHOME:
KEEP_LOCAL_TIMES:
PYKX_ALLOCATOR:
PYKX_ENABLE_PANDAS_API:
PYKX_GC:
PYKX_LOAD_PYARROW_UNSAFE:
PYKX_MAX_ERROR_LENGTH:
PYKX_NOQCE:
PYKX_Q_LIB_LOCATION:
PYKX_RELEASE_GIL:
PYKX_Q_LOCK:
QARGS: "--unlicensed"
QHOME: C:\q
QLIC: C:\q
PYKX_DEFAULT_CONVERSION:
SKIP_UNDERQ:
UNSET_PYKX_GLOBALS:

**** License information ****
pykx.qlic directory: True
pykx.lic writable: True
pykx.qhome lics: ['k4.lic', 'kc.lic']
pykx.qlic lics: ['k4.lic', 'kc.lic']

**** q information ****
which q: C:\q\w64\q.EXE
q info:
(`w64;4f;2023.04.17)
"insights.lib.embedq insights.lib.pykx insights.lib.sql insights.lib.qlog insights.lib.kurl insights.lib.objstore insights.lib.bigquery insights.lib.restserver"

 

 

Note:

  • QLIC must point to the folder containing the licence, it should not point to the the file itself.
  • The license needs to have the flags  insights.lib.embedq insights.lib.pykx

 

 

View solution in original post

1 REPLY 1

rocuinneagain
Valued Contributor
Valued Contributor

Can you run these 2 commands in your command prompt and share the output?

 

set QARGS="--unlicensed"
python -c "import pykx;pykx.util.debug_environment()"

 

 

This is the output for me:

 

**** PyKX information ****
pykx.args: ('--unlicensed',)
pykx.qhome: C:\q
pykx.qlic: C:\q
pykc.licensed: False
pykx.__version__: 1.6.0
pykx.file: C:\Users\rocuinneagain\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pykx\util.py

**** Python information ****
sys.version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
pandas: 1.5.3
numpy: 1.25.0
pytz: 2022.7.1
which python: C:\Users\rocuinneagain\AppData\Local\Microsoft\WindowsApps\python.EXE
which python3: C:\Users\rocuinneagain\AppData\Local\Microsoft\WindowsApps\python3.EXE

**** Platform information ****
platform.platform: Windows-10-10.0.19045-SP0

**** Environment Variables ****
IGNORE_QHOME:
KEEP_LOCAL_TIMES:
PYKX_ALLOCATOR:
PYKX_ENABLE_PANDAS_API:
PYKX_GC:
PYKX_LOAD_PYARROW_UNSAFE:
PYKX_MAX_ERROR_LENGTH:
PYKX_NOQCE:
PYKX_Q_LIB_LOCATION:
PYKX_RELEASE_GIL:
PYKX_Q_LOCK:
QARGS: "--unlicensed"
QHOME: C:\q
QLIC: C:\q
PYKX_DEFAULT_CONVERSION:
SKIP_UNDERQ:
UNSET_PYKX_GLOBALS:

**** License information ****
pykx.qlic directory: True
pykx.lic writable: True
pykx.qhome lics: ['k4.lic', 'kc.lic']
pykx.qlic lics: ['k4.lic', 'kc.lic']

**** q information ****
which q: C:\q\w64\q.EXE
q info:
(`w64;4f;2023.04.17)
"insights.lib.embedq insights.lib.pykx insights.lib.sql insights.lib.qlog insights.lib.kurl insights.lib.objstore insights.lib.bigquery insights.lib.restserver"

 

 

Note:

  • QLIC must point to the folder containing the licence, it should not point to the the file itself.
  • The license needs to have the flags  insights.lib.embedq insights.lib.pykx