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:
The sidecar binary will inconsistently throw the following error:
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-transformersdependencies. We do not currently do any explicit multiprocessing.This seems like a relevant issue from the pyinstaller github: