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.

[bug] Unable to install conan 1.48.1 using pip

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: Ubuntu 16.04.7 LTS
  • Python version: Python 3.9.4

Steps to reproduce

Issue happens when trying to install conan version 1.48.1 via pip

$ pip3 install conan==1.48.1
Defaulting to user installation because normal site-packages is not writeable
Collecting conan==1.48.1
  Using cached conan-1.48.1-py3-none-any.whl
Requirement already satisfied: PyYAML<6.0,>=3.11 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (5.4.1)
Requirement already satisfied: configparser>=3.5 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (5.2.0)
Requirement already satisfied: urllib3<1.27,>=1.26.6 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (1.26.9)
Requirement already satisfied: patch-ng<1.18,>=1.17.4 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (1.17.4)
Requirement already satisfied: tqdm<5,>=4.28.1 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (4.64.0)
Requirement already satisfied: bottle<0.13,>=0.12.8 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (0.12.19)
Requirement already satisfied: python-dateutil<3,>=2.7.0 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (2.8.2)
Requirement already satisfied: colorama<0.5.0,>=0.3.3 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (0.4.4)
Requirement already satisfied: distro<=1.6.0,>=1.0.2 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (1.6.0)
Collecting MarkupSafe<=2.0.1
  Using cached MarkupSafe-2.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)
Requirement already satisfied: Jinja2<4.0.0,>=3.0 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (3.0.3)
Requirement already satisfied: requests<3.0.0,>=2.25 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (2.27.1)
Requirement already satisfied: fasteners>=0.14.1 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (0.17.3)
Requirement already satisfied: pygments<3.0,>=2.0 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (2.12.0)
Requirement already satisfied: node-semver==0.6.1 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (0.6.1)
Requirement already satisfied: PyJWT<2.0.0,>=1.4.0 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (1.7.1)
Requirement already satisfied: pluginbase>=0.5 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (1.0.1)
Requirement already satisfied: six<=1.16.0,>=1.10.0 in ./.local/lib/python3.9/site-packages (from conan==1.48.1) (1.16.0)
ERROR: Cannot install conan==1.48.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    conan 1.48.1 depends on Jinja2<4.0.0 and >=3.0
    conan 1.48.1 depends on Jinja2<3.0.0 and >=2.9

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

So I am not sure how to sort out this one. I do not have Jinjia2 installed, but there’s no version that would satisfy the requirement.

The conflict is caused by:
    conan 1.48.1 depends on Jinja2<4.0.0 and >=3.0
    conan 1.48.1 depends on Jinja2<3.0.0 and >=2.9

I tried to install from the DEB but it installs version 1.45, which is too old for me.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bbossolacommented, May 26, 2022

Well, I cannot explain it either but I confirm that also the link at https://conan.io/downloads.html provides now the 1.48.1 version. All good, thanks again for the help.

In case you need to explore more the issue I experienced installing it via Python please feel free to drop me a line.

1reaction
bbossolacommented, May 26, 2022

I could get away with conan 1.47.0. This seems to be related to the version of openssl that has been recently upgraded due to a vulnerabilty.

$home/.conan/data/openssl/1.1.1n/_/_/export/conanfile.py': Current Conan version (1.45.0) does not satisfy the defined one (>=1.47.0).
Read more comments on GitHub >

github_iconTop Results From Across the Web

Install — conan 1.48.2 documentation
In Windows, Python 3 installation can fail installing the wrapt dependency because of a bug in pip. Information about this issue and workarounds...
Read more >
Install — conan 1.56.0 documentation
To install Conan using pip , you need Python>=3.6 distribution installed on your machine. Python 2 has been deprecated on January 1st, 2020...
Read more >
Install — conan 1.46.2 documentation
In Windows, Python 3 installation can fail installing the wrapt dependency because of a bug in pip. Information about this issue and workarounds...
Read more >
Troubleshooting — conan 1.33.1 documentation
When conan is installed via pip/PyPI, and python is installed in a path with spaces (like many times in Windows “C:/Program Files…”), conan...
Read more >
Troubleshooting — conan 1.44.1 documentation
When conan is installed via pip/PyPI, and python is installed in a path with spaces (like many times in Windows “C:/Program Files…”), conan...
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