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.

pip can no longer install cherrypy (without tweaking) on python 3.5.3 due to 4 dependencies requiring 3.6

See original GitHub issue

I’m submitting a …

  • bug report

What is the current behavior? When trying to pip3 install cherrypy on raspbian (stretch) with python 3.5.3, I get the following error message:

jaraco.collections requires Python ‘>=3.6’ but the running Python is 3.5.3

According to jaraco.collections ChangeLog, the Version 3.0.0 now requires python 3.6 --> workaround is to install jaraco.collections<3.0.0. The same issue then pops up 3 more times:

jaraco.functools requires Python ‘>=3.6’ but the running Python is 3.5.3 jaraco.classes requires Python ‘>=3.6’ but the running Python is 3.5.3 tempora requires Python ‘>=3.6’ but the running Python is 3.5.3

My final workaround therefore is pip3 install "jaraco.collections<3.0.0" "jaraco.classes<3.0.0" "jaraco.functools<3.0.0" "tempora<2.0.0" "cherrypy"

What is the expected behavior? Cherrypy should automatically request the correct versions of these tools in python3.5, to avoid the error messages

What is the motivation / use case for changing the behavior? Less hassle installing cherrypy.

Please tell us about your environment:

  • Cheroot version: cheroot-8.2.1
  • CherryPy version: cherrypy-18.5.0
  • Python version: 3.5.3
  • OS: Linux raspberrypi 4.14.34-v7+
  • Browser: n/a

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
brainwanecommented, Feb 3, 2020

Looks like https://github.com/piwheels/piwheels/issues/208 is about this issue so Piwheels is in the process of fixing it.

0reactions
webknjazcommented, Jan 29, 2020

Ah… I was right, it doesn’t: https://github.com/pypa/setuptools/issues/1976#issuecomment-576036922

Compare the source code (HTML view) of https://pypi.org/simple/jaraco-collections/ vs. https://www.piwheels.org/simple/jaraco.collections/.

PyPI injects data-requires-python into the link attributes and piwheels doesn’t. This means when Pip fetches the list of dists from this index, it doesn’t know which versions have Python restriction and just gets the latest one.

Anyway, you should complain to piwheels about this. As a workaround, you could stop using piwheels. CherryPy is pure-python anyway and the official dists should work just fine on Rpi.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip installs python library under wrong version of python
Use pip3 install to install for python 3.
Read more >
Installation — CherryPy 18.6.1.dev49+g98929b51.d20210117 ...
CherryPy is a pure Python library. This has various consequences: It can run anywhere Python runs. It does not require a C compiler....
Read more >
PDF - Werkzeug Documentation (1.0.x)
Werkzeug does not have any direct dependencies. ... You can use pip to install the required libraries: pip install Jinja2 redis Werkzeug.
Read more >
CherryPy - PyPI
CherryPy is a pythonic, object-oriented HTTP framework. ... allowing for the Python object model to be dynamically presented as a website and/or API....
Read more >
Bug listing with status RESOLVED with resolution UPSTREAM ...
[5-9] a real dependency of svn 1.1? apr-0.9.4 is latest release" status:RESOLVED ... Bug:97698 - "knetattach - can't select high ssh ports" status:RESOLVED ......
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