Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install farm-haystack[all] gets lost during backtracking #2280

Closed
tstadel opened this issue Mar 7, 2022 · 2 comments
Closed

pip install farm-haystack[all] gets lost during backtracking #2280

tstadel opened this issue Mar 7, 2022 · 2 comments
Assignees
Labels
type:bug Something isn't working

Comments

@tstadel
Copy link
Member

tstadel commented Mar 7, 2022

Describe the bug
pip install farm-haystack[all] gets lost during backtracking. For no apparent reason pip backtracks heavily and finally crashes due to trying to build older packages. CI builds are affected as linter job uses pip install farm-haystack[all]. build-cache also seems to never finish. I tried a few shots and a hint of databind==1.5.1 seems to solve it short term. But it seems like a bigger bug within pip's backtracking logic.

Error message
CIs crash during pip install farm-haystack[all] as build tools for older dependency versions are not available on github runners:
E.g.:

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 74.4 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      Could not find "protoc" executable!
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Error: Process completed with exit code 1.```

Before that it backtracked almost all onnx versions for no good reason.

**Expected behavior**
pip install farm-haystack[all] works and CIs work again

**Additional context**
Seems to only affect farm-haystack[all]. The default install seems to work.

**To Reproduce**
- Create clean conda environment with python==3.7
- pip install farm-haystack[all]


**System:**
tried it on ubuntu and windows. Both have same problem even though dependencies are a little different.
@tstadel
Copy link
Member Author

tstadel commented Mar 9, 2022

Just in case someone also runs into this issue with the current 1.2.0 release, a workaround is:

pip install farm-haystack[all] "azure-core<1.23"

This might also be needed for other non-default dependencies (e.g. farm-haystack[dev] "azure-core<1.23").

@tstadel
Copy link
Member Author

tstadel commented Mar 9, 2022

Depending on your environment the error message might look different or might never occur. Some backtracked dependencies need protoc or CMAKE to install. If you don't have them installed the install process will end with a similar error message as above. If you have them installed however backtacking might take hours...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants