We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On mac os it works well with packages installed with brew but when using venv and packages installed with pip - it can't find it.
brew
The sys.path is different when run with python and bunpy, the bunpy misses the venv installation dir
sys.path
python
bunpy
python [ '/Users/alex/base/projects/ext_ts/math', '/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python312.zip', '/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12', '/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload', '/Applications/misc/python/lib/python3.12/site-packages' ] bunpy (misses '/Applications/misc/python/lib/python3.12/site-packages' ) [ '/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python312.zip', '/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12', '/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload', '/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages' ]
P.S.
I also had to explicitly set python lib, by default it can't find it
export DENO_PYTHON_PATH=/usr/local/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/libpython3.12.dylib
The text was updated successfully, but these errors were encountered:
Solution:
Add env variable
export DENO_DEPS_PATH=/Applications/misc/python/lib/python3.12/site-packages
Add this variable to sys.path
const sys = python.import('sys') sys.path.append(process.env.DENO_DEPS_PATH)
Then python.import works well
python.import
Sorry, something went wrong.
No branches or pull requests
On mac os it works well with packages installed with
brew
but when using venv and packages installed with pip - it can't find it.The
sys.path
is different when run withpython
andbunpy
, the bunpy misses the venv installation dirP.S.
I also had to explicitly set
python
lib, by default it can't find itThe text was updated successfully, but these errors were encountered: