Skip to content

Commit

Permalink
Fixes:AttributeError: 'module' object has no attribute 'epoll'
Browse files Browse the repository at this point in the history
Description: gevent monkeypatch should be done before import vnc_api
ClosesBug: 1659463

Change-Id: I7321aaf2eb02653d7ec5ba61f37dd2b961c1f888
(cherry picked from commit 0b0c0ae)
  • Loading branch information
Suresh-vin authored and Édouard Thuleau committed Feb 13, 2017
1 parent d0e4729 commit eaad31f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config/common/tests/test_utils.py
Expand Up @@ -4,6 +4,8 @@
import gevent
import gevent.queue
import gevent.wsgi
import gevent.monkey
gevent.monkey.patch_all()
import os
import sys
import logging
Expand Down
3 changes: 3 additions & 0 deletions src/config/schema-transformer/config_db.py
Expand Up @@ -6,6 +6,9 @@
This file contains config data model for schema transformer
"""

import gevent.monkey
gevent.monkey.patch_all()

import sys
reload(sys)
sys.setdefaultencoding('UTF8')
Expand Down

0 comments on commit eaad31f

Please sign in to comment.