daniel-s
5/28/2017 - 11:11 AM

global name 'YowsupEnv' is not defined

global name 'YowsupEnv' is not defined

On yowsup/env/env.py change

class YowsupEnv(with_metaclass(YowsupEnvType, object)):

to

@six.add_metaclass(YowsupEnvType)
class YowsupEnv(object):

(and import six instead of from six import add_metaclass).