Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637500 - www-apps/nikola with dev-python/logbook-0.9.1 does not work in auto mode : ImportError: No module named 'gevent.coros'
Summary: www-apps/nikola with dev-python/logbook-0.9.1 does not work in auto mode : Im...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-14 15:58 UTC by Gabriele Svelto
Modified: 2019-12-06 20:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriele Svelto 2017-11-14 15:58:34 UTC
STR:

1. Install www-apps/nikola with the watchdog and websocket USE flags enabled:

env USE="watchdog websocket" emerge www-apps/nikola

2. Initialize a new nikola project

nikola init --quiet foo

3. Run nikola in automatic/watchdog mode

cd foo
nikola auto

At this point nikola fails with the following stack trace:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/nikola", line 11, in <module>
    load_entry_point('Nikola==7.8.8', 'console_scripts', 'nikola')()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 560, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2642, in load_entry_point
    return ep.load()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2296, in load
    return self.resolve()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2302, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib64/python3.4/site-packages/nikola/__init__.py", line 35, in <module>
    from .nikola import Nikola  # NOQA
  File "/usr/lib64/python3.4/site-packages/nikola/nikola.py", line 62, in <module>
    from .post import Post  # NOQA
  File "/usr/lib64/python3.4/site-packages/nikola/post.py", line 44, in <module>
    from . import utils
  File "/usr/lib64/python3.4/site-packages/nikola/utils.py", line 49, in <module>
    import logbook
  File "/usr/lib64/python3.4/site-packages/logbook/__init__.py", line 14, in <module>
    from logbook.base import LogRecord, Logger, LoggerGroup, NestedSetup, \
  File "/usr/lib64/python3.4/site-packages/logbook/base.py", line 18, in <module>
    from logbook.concurrency import thread_get_name, thread_get_ident, greenlet_get_ident
  File "/usr/lib64/python3.4/site-packages/logbook/concurrency.py", line 37, in <module>
    from gevent.coros import BoundedSemaphore
ImportError: No module named 'gevent.coros'

The root issue is that the current stable version of dev-python/logbook (0.9.1) relies on the deprecated gevent.coros module which has been renamed to gevent.lock.

Upgrading to version 1.1.0 of the logbook package solves the problem.
Comment 1 Gabriele Svelto 2019-12-06 20:59:26 UTC
This has been fixed when the logbook stable version was bumped