Forum Replies Created

  • hiuq

    Member
    March 13, 2025 at 11:06 am in reply to: pykx install lic error

    1>>> import pykx as kx

    You appear to be using a non kdb Insights license.
    Captured output from initialization attempt:
    '2025.03.13T15:18:11.437 licence error: embedq
    License location used:
    /home/xxx/q/kc.lic
    Running PyKX in the absence of a kdb Insights license has reduced functionality.
    Would you like to install a kdb Insights personal license? [Y/n]: y
    Do you have access to an existing license for PyKX that you would like to use? [N/y]: y
    Please confirm the license type:
    [1] Personal use (kc.lic)
    [2] Commercial use (k4.lic)
    Enter your choice here [1/2]: 1
    Please select the method you wish to use to activate your license:
    [1] Provide the location of your license
    [2] Input the activation key
    Enter your choice here [1/2]: 1
    Provide the download location of your license (for example, ~/path/to/kc.lic) : /home/xxx/q/kc.lic
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/home/xxx/anaconda3/lib/<wbr>python3.11/site-packages/pykx/<wbr>__init__.py", line 32, in <module>
    from . import core
    File "pykx/core.pyx", line 320, in init pykx.core
    File "/home/xxx/anaconda3/lib/<wbr>python3.11/site-packages/pykx/<wbr>config.py", line 356, in _license_install
    _license_install_path(root, lic_type, qlic)
    File "/home/xxx/anaconda3/lib/<wbr>python3.11/site-packages/pykx/<wbr>config.py", line 168, in _license_install_path
    shutil.copy(download_location, qlic)
    File "/home/xxx/anaconda3/lib/<wbr>python3.11/shutil.py", line 419, in copy
    copyfile(src, dst, follow_symlinks=follow_<wbr>symlinks)
    File "/home/xxx/anaconda3/lib/<wbr>python3.11/shutil.py", line 236, in copyfile
    raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
    shutil.SameFileError: '/home/xxx/q/kc.lic' and '/home/xxx/q/kc.lic' are the same file

    this is the complete message . 

  • hiuq

    Member
    March 13, 2025 at 12:09 pm in reply to: pykx install lic error

    hi this is the output

    >>> kx.q.take(4,kx.q.z.l)
    pykx.List(pykx.q('
    "24"
    "2025.03.17"
    "2025.03.17"
    ,"1"
    '))

  • hiuq

    Member
    March 13, 2025 at 11:52 am in reply to: pykx install lic error

    thank you.

    I downloaded a new lic but it is only valid for 4 days.

    >>> import pykx as kx
    WARNING:root:PyKX license set to expire in 4 days, please consider installing an updated license

    Are all licenses only valid for 4 days now ?