Skip to content

miniforge on windows fails to load #8022

@psifertex

Description

@psifertex

Trying to specify a python from miniforge (and potentially miniconda or other similar distributions on windows) can fail in binary ninja.

The main reason is that we don't specify the local library path for loading the dll and if the library links to other libraries in the same folder, it can fail. This is not the case for standard python.org downloads which is why we currently have this behavior.

To resolve this, first we need to update our documentation to describe the existing work-around (simply adding the appropriate path to your PATH environment variable) to the troubleshooting docs.

Alternatively, we could switch the loading of python.dll to use LoadLibraryEX with LOAD_WITH_ALTERED_SEARCH_PATH or SetDllDirectory but this requires much more testing to ensure it doesn't cause issues or break other existing python versions which this issue will track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Effort: MediumIssues require < 1 month of workImpact: LowIssue is a papercut or has a good, supported workaroundUI: Python ConsoleIssues with the Python Console

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions