-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
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
:
File "/home/inigo/.vscode-server/extensions/codecarbon.codecarbon-0.1.0/bundled/libs/codecarbon/core/cpu.py", line 13, in <module>
import pandas as pd
File "/home/inigo/.vscode-server/extensions/codecarbon.codecarbon-0.1.0/bundled/libs/pandas/__init__.py", line 19, in <module>
raise ImportError(
ImportError: Unable to import required dependencies:
numpy: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
What do you think I should do? Build an extension per python version and then detect which one to load?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels