-
pykx install lic error
Posted by hiuq on March 13, 2025 at 9:03 amHi,
I am new to pykx.
What license do I need to install pykx . At the moment I only have q license
Error:
shutil.SameFileError: ‘/home/xxx/q/kc.lic’ and ‘/home/xxx/q/kc.lic’ are the same file
rocuinneagain replied 19 minutes ago 2 Members · 7 Replies -
7 Replies
-
PyKX and q/kdb+ use the same license.
1. What command is giving you that error?
It suggests you are trying to install the license a second time.
2. What output do you see when you ‘import pykx’ in your python session?
-
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 filethis is the complete message .
-
Your license does not have a needed flag to enable PyKX.
Go to: https://kx.com/kdb-insights-sdk-personal-edition-download/
Download this new license and install it and this new license will work for kdb+ and PyKX for you.
-
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 licenseAre all licenses only valid for 4 days now ?
-
What is the output of: kx.q.take(4,kx.q.z.l) ? Normally it should be issued with a longer duration.
-
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"
'))-
I checked and if you previously registered for that type of licence and you request a new one before the previous is expired you will be sent the original license. When this one expires you can request a new one on the 18th which will be valid for a further 90 days.
-
-
-
-
-
Log in to reply.