Skip to content

Sidecar dylib binary errors: PyInstaller --onedir does not play nicely with Tauri sidecar pattern #56

Description

@gjreda

The sidecar binary will inconsistently throw the following error:

usage: main [-h] [--debug] {ingest,ai} ...
main: error: argument command: invalid choice: 'from multiprocessing.resource_tracker import main;main(14)' (choose from 'ingest', 'ai')

Sometimes this error will not be thrown. Other times it will be thrown and not return any results. Other times it will return the proper results and then throw this error.

It seems related to spawning multiple processes deeper within the binary, likely coming from one of the sentence-transformers dependencies. We do not currently do any explicit multiprocessing.

This seems like a relevant issue from the pyinstaller github:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions