Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.9 support #106

Open
cmccarthy1 opened this issue Sep 3, 2021 · 3 comments
Open

Python 3.9 support #106

cmccarthy1 opened this issue Sep 3, 2021 · 3 comments

Comments

@cmccarthy1
Copy link
Contributor

Currently embedPy does not operate within Python 3.9 anaconda build environments

q p.q
KDB+ 4.0 2020.05.04 Copyright (C) 1993-2020 Kx Systems

'libpython
  [2]  /usr/local/anaconda3/envs/qenv/q/p.q:12: 
 `L`M`H`P`B set'@[system"python3 ",;c;{system"python ",c}];if[count M;if[k~key k:`$":",M;L::M]];.P.env:not H~P;
 .p:(`:./p 2:(`init;3))[L;H;B]]
    ^
q.p))\

As indicated here for Python 3.8 https://docs.python.org/3/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build the issue is likely due to libpython not being shipped with conda.

@cmccarthy1
Copy link
Contributor Author

Resolved with release of 1.5.0

@borisal
Copy link

borisal commented Mar 27, 2022

Hi,

I think I have the same issue with the release 1.5 and Python 3.9.7/Windows (64 bit) not working on KDB 4.0 2021.07.12 (64 bit).
I manually installed embedPy_windows-1.5.0 release by copying p.q and p.k to c:\q and copying q.dll to c:\q\w64. I am not using Anaconda Python.

How can I resolve this?

Output from q test.q (same as from 'q p.q'):

q test.q

'libpython
[5] D:\long_path\p.q:14:
.P.env:not H~P;
.p:(:./p 2:(init;3))[L;H;B]]

Thank you

@borisal
Copy link

borisal commented Mar 28, 2022

I switched to Anaconda and created Python 3.8 environment. Now, I can install embedPy and jupyterq.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants