-
Notifications
You must be signed in to change notification settings - Fork 46
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
Numpy error when using bundled libs from different python version #209
Comments
Exact line in my repo that triggers this error https://github.com/inimaz/vscode-extension-codecarbon/blob/main/bundled/tool/lsp_server.py#L210 . This line imports |
@inimaz You will need to use platform specific builds. The template was designed with universal builds in mind. But, for scenarios like this where you need platform specific binaries like with numpy, you will need to change the build steps to install Here is an 3rd party extension that builds and ships native binaries based on this template. |
Thanks for the response and the link! @karthiknadig I agree I will need to do this platform specific builds. Thanks for the tip! For example if I support windows and mac, and python 3.7 and python 3.8... Do I need to do:
|
You will have to pull the native builds for each python ABI (i.e, py37, py38, py39, etc) at build time if you want to package it. We do this for |
Hello team,
thanks for this template!
I am building an extension using this template, see the repo.
And it works, but only if the python version is the same as the python version used when it was built.
If it is not the case, when the user's python (python 3.12) has not the same version as the one that built it (python 3.11). I get the following error from
numpy
:What do you think I should do? Build an extension per python version and then detect which one to load?
Thanks!
The text was updated successfully, but these errors were encountered: