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.

cookietemple fails to install in python version 3.10+

See original GitHub issue

Associated Template/Command/Core

pip install cookietemple

Installation fails resulting in

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

To Reproduce

Steps to reproduce the behavior:

  1. Create a virtual environment with conda: conda create -n myenv python=3.10
  2. activate the env: conda activate myenv
  3. install cookietemple with pip: pip install cookietemple

Expected behavior

package installation should succeed.

System [please complete the following information]:

  • OS: Ubuntu 20.04
  • Python: 3.10
  • Virtual environment: conda
  • cookietemple: latest

Additional context

  • python version confirmation:
(myenv)  plastikfan@Janus  ~ λ  python --version
Python 3.10.0
  • cookietemple failed installation:
(myenv)  plastikfan@Janus  ~ λ  pip install cookietemple
Collecting cookietemple
  Using cached cookietemple-1.3.3-py2.py3-none-any.whl (7.7 MB)
Collecting cffi==1.14.5
  Using cached cffi-1.14.5.tar.gz (475 kB)
Collecting requests>=2.25.1
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting pynacl==1.4.0
  Using cached PyNaCl-1.4.0-cp35-abi3-manylinux1_x86_64.whl (961 kB)
Collecting autopep8==1.5.6
  Using cached autopep8-1.5.6-py2.py3-none-any.whl (44 kB)
Collecting cryptography==3.4.7
  Using cached cryptography-3.4.7-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB)
Collecting packaging>=20.9
  Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting cookietemple
  Using cached cookietemple-1.3.2-py2.py3-none-any.whl (7.7 MB)
  Using cached cookietemple-1.3.1-py2.py3-none-any.whl (7.7 MB)
  Using cached cookietemple-1.3.0-py2.py3-none-any.whl (7.7 MB)
Collecting ruamel.yaml==0.16.12
  Using cached ruamel.yaml-0.16.12-py2.py3-none-any.whl (111 kB)
Collecting cryptography==3.4.6
  Using cached cryptography-3.4.6-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB)
Collecting cookietemple
  Using cached cookietemple-1.2.4-py2.py3-none-any.whl (7.7 MB)
Collecting autopep8==1.5.4
  Using cached autopep8-1.5.4.tar.gz (121 kB)
Collecting cookietemple
  Using cached cookietemple-1.2.3-py2.py3-none-any.whl (7.7 MB)
  Using cached cookietemple-1.2.2-py2.py3-none-any.whl (7.7 MB)
Collecting cryptography==3.2.1
  Using cached cryptography-3.2.1-cp35-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting cookietemple
  Using cached cookietemple-1.2.1-py2.py3-none-any.whl (7.7 MB)
Collecting packaging==20.4
  Using cached packaging-20.4-py2.py3-none-any.whl (37 kB)
Collecting rich==9.2.0
  Using cached rich-9.2.0-py3-none-any.whl (164 kB)
Collecting cookietemple
  Using cached cookietemple-1.2.0-py2.py3-none-any.whl (7.7 MB)
  Using cached cookietemple-1.0.1-py2.py3-none-any.whl (7.7 MB)
Collecting requests==2.24.0
  Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting rich==9.1.0
  Using cached rich-9.1.0-py3-none-any.whl (161 kB)
Collecting cookietemple
  Using cached cookietemple-1.0.0-py2.py3-none-any.whl (7.7 MB)
ERROR: Cannot install cookietemple==1.0.0, cookietemple==1.0.1, cookietemple==1.2.0, cookietemple==1.2.1, cookietemple==1.2.2, cookietemple==1.2.3, cookietemple==1.2.4, cookietemple==1.3.0, cookietemple==1.3.1, cookietemple==1.3.2 and cookietemple==1.3.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    cookietemple 1.3.3 depends on questionary==1.9.0
    cookietemple 1.3.2 depends on questionary==1.9.0
    cookietemple 1.3.1 depends on questionary==1.9.0
    cookietemple 1.3.0 depends on questionary==1.9.0
    cookietemple 1.2.4 depends on questionary==1.8.1
    cookietemple 1.2.3 depends on questionary==1.8.1
    cookietemple 1.2.2 depends on questionary==1.8.1
    cookietemple 1.2.1 depends on questionary==1.8.1
    cookietemple 1.2.0 depends on questionary==1.8.1
    cookietemple 1.0.1 depends on questionary==1.7.0
    cookietemple 1.0.0 depends on questionary==1.7.0

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/user_guide/#fixing-conflicting-dependencies
(myenv)  ✘ plastikfan@Janus

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Zethsoncommented, Feb 28, 2022

Thank you! Will look into this.

0reactions
Zethsoncommented, Mar 12, 2022

Will be a part of the next release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to upgrade Python 3.8.10 to 3.10 - SOLVED
When we reached 2nd command in Step 3: Add Python 3.8 & Python 3.10 to update-alternatives, we see this error.
Read more >
cookietemple · PyPI
A cookiecutter based project template creation tool supporting several domains and languages with advanced linting, syncing and standardized workflows to ...
Read more >
pip install failing with Python 3.10 · Issue #434 · basler/pypylon
I'm having trouble installing pypylon on a Windows 11 machine with Python 10 3.10 and pip version 21.3.1. > py -m pip install...
Read more >
Pip is not working for Python 3.10 on Ubuntu - Stack Overflow
This is likely caused by a too old system pip version. Install the latest with: curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10.
Read more >
Python packages no longer installing on jammy with python 3.10
The issue installing psycopg2 is failing when importing a module from setuptools. A detailed attempt showcasing the above can be found below. $ ......
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