Closed ZanSara closed 1 year ago
lmk if I can help
Hey @ofek thank you for jumping in! I didn't try to debug this one yet. However I'm curious, is there any "obvious" reason why the flag -U
might not trigger the execution of the hook? I'm not very knowledgeable of how Hatch works, but at a first glance I could find no mention to an issue like this in the hatch-autorun
docs or repo.
This is how pip install . -vvv
looks like. After this, the autorun code is definitely executed when I invoke the Python interpreter (the script logs).
This is how pip install -U . -vvv
looks like instead. The autorun code is not executed.
The package seems to be re-installed in both cases, so -U
doesn't seem to be preventing the re-installation of Haystack. But I might have missed something. Leads welcome :slightly_smiling_face:
With https://github.com/deepset-ai/haystack/pull/3533 we changed strategy, generating the schema lazily instead of at startup, closing as not valid.
Describe the bug
pip install -U farm-haystack
does not trigger schema generationError message
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/haystack/haystack/json-schemas/haystack-pipeline-main.schema.json'
Workaround
-U
option.Expected behavior
Additional context
hatch-autorun
. I'll reach out to them for help.To Reproduce
pip install -U .
, then try to load any pipeline.FAQ Check
System:
main