[Bugs] [Bug 1374587] New: gf_event python fails with ImportError

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 9 07:17:55 UTC 2016


            Bug ID: 1374587
           Summary: gf_event python fails with ImportError
           Product: GlusterFS
           Version: mainline
         Component: eventsapi
          Assignee: bugs at gluster.org
          Reporter: avishwan at redhat.com

Description of problem:

Calling gf_event causes import error for python-requests library. 

ImportError: No module named requests

As a workaround, we can install python-requests but this library not required
if we are not using Events feature.

Traceback (most recent call last):
  File "/usr/local/libexec/glusterfs/python/syncdaemon/syncdutils.py", line
313, in twrap
  File "/usr/local/libexec/glusterfs/python/syncdaemon/monitor.py", line 403,
in wmon
    slave_host, master)
  File "/usr/local/libexec/glusterfs/python/syncdaemon/monitor.py", line 384,
in monitor
  File "/usr/local/libexec/glusterfs/python/syncdaemon/syncdutils.py", line
519, in gf_event
    from events.gf_event import gf_event as gfevent
  File "/usr/local/libexec/glusterfs/events/gf_event.py", line 19, in <module>
    from utils import logger, setup_logger, get_config
  File "/usr/local/libexec/glusterfs/events/utils.py", line 16, in <module>
    import requests
ImportError: No module named requests

You are receiving this mail because:
You are the assignee for the bug.

More information about the Bugs mailing list