KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums PyKX PyKX license error

  • rocuinneagain

    Member
    July 11, 2023 at 12:00 am

    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:UsersrocuinneagainAppDataLocalPackagesPythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0LocalCachelocal-packagesPython310site-packagespykxutil.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:UsersrocuinneagainAppDataLocalMicrosoftWindowsAppspython.EXE 
    which python3: C:UsersrocuinneagainAppDataLocalMicrosoftWindowsAppspython3.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:qw64q.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

     

     

Log in to reply.