Skip to content

Binary Ninja fails to import editable (-e) packages from configured virtualenv #7406

@wizche

Description

@wizche

Version and Platform (required):

  • Binary Ninja Version: 5.2.8275-dev (6bcfa4b7)
  • Edition: Commercial
  • OS: Debian
  • OS Version: 12
  • CPU Architecture: x64

Bug Description:
Packages installed in a virtual environment with the editable (-e) flag are not importable in Binary Ninja when the virtual environment’s site-packages is provided via the python.virtualenv setting.

Steps To Reproduce:

  1. Follow the development installation instructions for Mole (editable install, e.g., pip install -e .).
  2. Configure Binary Ninja to use your virtual environment via the python.virtualenv setting so that its site-packages is on the module search path.
  3. Start Binary Ninja and try to import moleModuleNotFoundError: No module named 'mole'.
  4. Open the Python interpreter within the same virtual environment; import mole succeeds.
Image Image

Expected Behavior:
Binary Ninja should resolve and import packages installed with the editable (-e) flag exactly as it does for non-editable installs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions