question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SETUP-BUG] Issue in pip dependency resolution of test-requirements.txt

See original GitHub issue

Thank you for submitting an issue. Please refer to our issue policy for information on what types of issues we address.

Please fill in this installation issue template to ensure a timely and thorough response.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 11
  • MLflow installed from (source or binary): NA
  • MLflow version (run mlflow --version): NA
  • Python version: 3.6.13
  • Exact command to reproduce:

conda create --name mlflow-dev-env python=3.6 conda activate mlflow-dev-env pip install -r dev-requirements.txt pip install -r test-requirements.txt

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem.

The setup step ran fine till dev-requirements.txt, but when i ran for test-requirements.txt, pip setup runs for hours but never finishes, it was downloading all the versions of almost all libraries. I could see lots of messages like “pip is looking at multiple versions of <library_name>” for many libraries. When i tried to use pip-compile test-requirements.txt as suggested in https://stackoverflow.com/questions/65122957/resolving-new-pip-backtracking-runtime-issue, I’m getting the below error

Could not find a version that matches gast==0.3.3,==0.4.0 (from tensorflow==2.6.1->-r dev/extra-ml-requirements.txt (line 18)) Tried: 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.2.0, 0.2.1, 0.2.1.post0, 0.2.1.post1, 0.2.2, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.3, 0.4.0, 0.4.0, 0.5.0, 0.5.0, 0.5.1, 0.5.1, 0.5.2, 0.5.2 There are incompatible versions in the resolved dependencies: gast==0.4.0 (from tensorflow==2.6.1->-r dev/extra-ml-requirements.txt (line 18)) gast==0.3.3 (from paddlepaddle==2.1.3->-r dev/extra-ml-requirements.txt (line 44))

Please let me know how to resolve this issue.

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mhemendracommented, Nov 3, 2021

By downgrading the pylint to 2.10.0, i was able to successfully run the pip-compile command. So i was able to generate the dependencies properly by making below changes mxnet == 1.2.0 tensorflow=2.4.4 and pylint >= 2.1.0

PFA the requirements.txt generated by the pip-compile command. requirements.txt

Can we update the documentation to use the pip-compile command to generate requirements.txt, otherwise lots of pip backtracking issues occur during the installation of test-requirements.txt.

0reactions
alonissercommented, Oct 14, 2022

Ping?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependency Resolution - pip documentation v22.3.1
The process of determining which version of a dependency to install is known as dependency resolution. This behaviour can be disabled by passing...
Read more >
How does the dependency resolution works with pip when a ...
The solution is to specify the version of urllib3 you want in your requirements.txt (since you know which versions of its dependencies you ......
Read more >
Our Comprehensive Guide to Python Dependencies - Kiwi.com
The pip install command downloads the packages from a PyPI server and installs them. ... test-requirements.txt has libraries for running tests ...
Read more >
Pin Your Packages - nvie.com
Be explicit, pin all your dependencies, and let pip-tools keep them fresh. ... Don't ever use these styles in requirements.txt :.
Read more >
Is it preferable to add test dependensies as an extra_require ...
Instead, we simply put test requirements in “tests/requirements.txt”, then documented that for testing users will need to run pip install -r ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found