Opened 6 years ago

Closed 6 years ago

#58337 closed defect (fixed)

cherrpy port should depend on more-itertools

Reported by: vkuznet (Valentin Kuznetsov) Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: freespace@…
Port: py27-jaraco.functools py27-cherrypy

Description

The cherrpy package (tested in Python 2.7) should depend on more-itertools. Here is the chain of failed dependency:

python
Python 2.7.16 (default, Apr  1 2019, 14:50:41)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cherrypy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cherrypy/__init__.py", line 83, in <module>
    from cherrypy import _cpserver
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cherrypy/_cpserver.py", line 8, in <module>
    from cherrypy.process.servers import ServerAdapter
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cherrypy/process/__init__.py", line 14, in <module>
    from cherrypy.process import plugins, servers  # noqa
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cherrypy/process/servers.py", line 126, in <module>
    import portend
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/portend.py", line 22, in <module>
    from tempora import timing
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tempora/timing.py", line 12, in <module>
    import jaraco.functools
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jaraco/functools.py", line 27, in <module>
    import more_itertools.recipes
ImportError: No module named more_itertools.recipes

Once I installed manually more-intertools everything comeback to normal

sudo port install py27-more-itertools
Password:
--->  Computing dependencies for py27-more-itertools
--->  Fetching archive for py27-more-itertools
--->  Attempting to fetch py27-more-itertools-5.0.0_0.darwin_18.noarch.tbz2 from https://packages.macports.org/py27-more-itertools
--->  Attempting to fetch py27-more-itertools-5.0.0_0.darwin_18.noarch.tbz2.rmd160 from https://packages.macports.org/py27-more-itertools
--->  Installing py27-more-itertools @5.0.0_0
--->  Activating py27-more-itertools @5.0.0_0
--->  Cleaning py27-more-itertools
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.

vk@vkair(7:24:00)$ python
Python 2.7.16 (default, Apr  1 2019, 14:50:41)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cherrypy
>>>

Change History (2)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Cc: freespace@… added; khindenburg@… removed
Owner: set to kurthindenburg
Port: py27-jaraco.functools added
Status: newassigned

Looks more like it's py27-jaraco.functools that needs the dependency. Although there's a lot going on here: cherrypy is importing portend but doesn't appear to depend on it, and tempora is importing jaraco.functools but doesn't appear to depend on it.

comment:2 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: assignedclosed

In 9fd2c7271f691c4822baa3d93a676c0c96fc47c8/macports-ports (master):

py-cherrypy: update; add python 3.7; add dependencies

For python 3, update to 18.1.1
For python 2.7, update to last version supported 17.4.1

Tested with both 27 and 37 using the 10 tutorialsa

closes #58337

Note: See TracTickets for help on using tickets.