{"action":"created","issue":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/1435","repository_url":"https://api.github.com/repos/tgalal/yowsup","labels_url":"https://api.github.com/repos/tgalal/yowsup/issues/1435/labels{/name}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/1435/comments","events_url":"https://api.github.com/repos/tgalal/yowsup/issues/1435/events","html_url":"https://github.com/tgalal/yowsup/issues/1435","id":145108893,"number":1435,"title":"NameError: global name 'YowsupEnv' is not defined","user":{"login":"jroman","id":1663110,"avatar_url":"https://avatars.githubusercontent.com/u/1663110?v=3","gravatar_id":"","url":"https://api.github.com/users/jroman","html_url":"https://github.com/jroman","followers_url":"https://api.github.com/users/jroman/followers","following_url":"https://api.github.com/users/jroman/following{/other_user}","gists_url":"https://api.github.com/users/jroman/gists{/gist_id}","starred_url":"https://api.github.com/users/jroman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroman/subscriptions","organizations_url":"https://api.github.com/users/jroman/orgs","repos_url":"https://api.github.com/users/jroman/repos","events_url":"https://api.github.com/users/jroman/events{/privacy}","received_events_url":"https://api.github.com/users/jroman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-04-01T07:30:24Z","updated_at":"2016-04-04T13:00:55Z","closed_at":"2016-04-04T08:28:58Z","body":"Hi,\r\njust git-pulled and, on starting demo, I see this uncatched exception:\r\n\r\n  ```\r\nFile \"./yowsup/env/env.py\", line 10, in __init__\r\n    YowsupEnv.registerEnv(cls)\r\nNameError: global name 'YowsupEnv' is not defined\r\n```\r\n\r\nIs it just me?\r\n\r\nCheers!"},"comment":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/comments/205286980","html_url":"https://github.com/tgalal/yowsup/issues/1435#issuecomment-205286980","issue_url":"https://api.github.com/repos/tgalal/yowsup/issues/1435","id":205286980,"user":{"login":"maykel535","id":3702872,"avatar_url":"https://avatars.githubusercontent.com/u/3702872?v=3","gravatar_id":"","url":"https://api.github.com/users/maykel535","html_url":"https://github.com/maykel535","followers_url":"https://api.github.com/users/maykel535/followers","following_url":"https://api.github.com/users/maykel535/following{/other_user}","gists_url":"https://api.github.com/users/maykel535/gists{/gist_id}","starred_url":"https://api.github.com/users/maykel535/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maykel535/subscriptions","organizations_url":"https://api.github.com/users/maykel535/orgs","repos_url":"https://api.github.com/users/maykel535/repos","events_url":"https://api.github.com/users/maykel535/events{/privacy}","received_events_url":"https://api.github.com/users/maykel535/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T13:00:55Z","updated_at":"2016-04-04T13:00:55Z","body":"With python 2.7 in ubuntu 14.04 LTS:\r\n\r\n# python2.7 yowsup-cli demos --yowsup --config /usr/local/nagios/yowsup/yowsup.config -d\r\n\r\nTraceback (most recent call last):\r\n  File \"yowsup-cli\", line 6, in <module>\r\n    from yowsup.env import YowsupEnv\r\n  File \"/usr/local/nagios/yowsup/yowsup/env/__init__.py\", line 1, in <module>\r\n    from .env import YowsupEnv\r\n  File \"/usr/local/nagios/yowsup/yowsup/env/env.py\", line 13, in <module>\r\n    class YowsupEnv(with_metaclass(YowsupEnvType, object)):\r\n  File \"/usr/lib/python2.7/dist-packages/six.py\", line 617, in with_metaclass\r\n    return meta(\"NewBase\", bases, {})\r\n  File \"/usr/local/nagios/yowsup/yowsup/env/env.py\", line 10, in __init__\r\n    YowsupEnv.registerEnv(cls)\r\nNameError: global name 'YowsupEnv' is not defined\r\n\r\nWith python 3.4:\r\n\r\n# python3.4 yowsup-cli demos --yowsup --config /usr/local/nagios/yowsup/yowsup.config -d\r\nTraceback (most recent call last):\r\n  File \"yowsup-cli\", line 6, in <module>\r\n    from yowsup.env import YowsupEnv\r\n  File \"/usr/local/nagios/yowsup/yowsup/env/__init__.py\", line 1, in <module>\r\n    from .env import YowsupEnv\r\n  File \"/usr/local/nagios/yowsup/yowsup/env/env.py\", line 3, in <module>\r\n    from six import with_metaclass\r\nImportError: No module named 'six'\r\n\r\n\r\nI have updated module six python:\r\n\r\napt-get install python3-six\r\n\r\nAnd now:\r\n\r\n# python3.4 yowsup-cli demos --yowsup --config yowsup-cli.config -d\r\nTraceback (most recent call last):\r\n  File \"yowsup-cli\", line 6, in <module>\r\n    from yowsup.env import YowsupEnv\r\n  File \"/home/maykel/yowsup-master/yowsup/env/__init__.py\", line 1, in <module>\r\n    from .env import YowsupEnv\r\n  File \"/home/maykel/yowsup-master/yowsup/env/env.py\", line 13, in <module>\r\n    class YowsupEnv(with_metaclass(YowsupEnvType, object)):\r\n  File \"/usr/lib/python3/dist-packages/six.py\", line 617, in with_metaclass\r\n    return meta(\"NewBase\", bases, {})\r\n  File \"/home/maykel/yowsup-master/yowsup/env/env.py\", line 10, in __init__\r\n    YowsupEnv.registerEnv(cls)\r\nNameError: name 'YowsupEnv' is not defined\r\n\r\n\r\nTo do the whole installation with Python 3? You need python 3.5 exclusively to work ...\r\nI took more than two weeks without being able to run yowsup between one thing and another ...\r\n\r\nThanks for all."}}