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
  • Loading branch information
Suresh-vin committed Jan 26, 2017
1 parent 1c4b945 commit 1c29910
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 1c29910

Please sign in to comment.