Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 676178

Summary: dev-python/cherrypy-18.1.0: ModuleNotFoundError: No module named 'zc'
Product: Gentoo Linux Reporter: Hector Martin <marcan>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: florian.berger, zmedico
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hector Martin 2019-01-24 19:43:45 UTC
File "module.py", line 1, in <module>
    import cherrypy
  File "/usr/lib64/python3.6/site-packages/cherrypy/__init__.py", line 73, in <module>
    from ._cptools import default_toolbox as tools, Tool
  File "/usr/lib64/python3.6/site-packages/cherrypy/_cptools.py", line 29, in <module>
    from cherrypy.lib import sessions as _sessions, xmlrpcutil as _xmlrpc
  File "/usr/lib64/python3.6/site-packages/cherrypy/lib/sessions.py", line 112, in <module>
    import zc.lockfile
ModuleNotFoundError: No module named 'zc'

zc.lockfile is a new dependency for CherryPy but isn't even packaged for Gentoo yet as far as I can tell.

This needs a new package for the dependency, but until that's done, dev-python/cherrypy-18.1.0 should probably be masked.
Comment 1 Zac Medico gentoo-dev 2019-03-07 01:02:00 UTC
We'll need a dev-python/namespace-zc packages (note that there's a dev-python/zc-buildout ebuild that installs the zc package).
Comment 2 Florian Berger 2019-03-08 19:48:55 UTC
A temporary fix is to do

    $ easy_install --user zc.lockfile

which installs the missing package for the current user.

Sidenote: there apparently used to be a zc-lockfile ebuild when net-zope was still in the tree, but that's all gone now.
Comment 3 Mike Gilbert gentoo-dev 2020-06-05 04:05:41 UTC
zc-lockfile has since been added, and zc-buildout was removed.