Skip to content

Usage with venv #11

Open
Open
@platon-ivanov

Description

@platon-ivanov

Hello! Is it possible to use the library with venv? Running it this way:

export PYTHONHOME=$(pwd)/.venv
export PYTHONPATH=$(pwd)/.venv/lib/python3.13/site-packages
export BUN_PYTHON_PATH=/usr/lib/libpython3.13.so
bun run "./src/main.ts" 

I get such output:

Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fd9aa241240 (most recent call first):
  <no Python frame>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions