Skip to content

Instantly share code, notes, and snippets.

@dsaiztc
Created May 28, 2017 11:11
Show Gist options
  • Save dsaiztc/49af7967e60a832663b33888ad25a682 to your computer and use it in GitHub Desktop.
Save dsaiztc/49af7967e60a832663b33888ad25a682 to your computer and use it in GitHub Desktop.
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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment