{"action":"opened","issue":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/1222","labels_url":"https://api.github.com/repos/tgalal/yowsup/issues/1222/labels{/name}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/1222/comments","events_url":"https://api.github.com/repos/tgalal/yowsup/issues/1222/events","html_url":"https://github.com/tgalal/yowsup/issues/1222","id":124335533,"number":1222,"title":"AttributeError: 'ProtocolTreeNode' object has no attribute 'getTag' - even with all layers in place and proper order!","user":{"login":"jodersus","id":7756382,"avatar_url":"https://avatars.githubusercontent.com/u/7756382?v=3","gravatar_id":"","url":"https://api.github.com/users/jodersus","html_url":"https://github.com/jodersus","followers_url":"https://api.github.com/users/jodersus/followers","following_url":"https://api.github.com/users/jodersus/following{/other_user}","gists_url":"https://api.github.com/users/jodersus/gists{/gist_id}","starred_url":"https://api.github.com/users/jodersus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodersus/subscriptions","organizations_url":"https://api.github.com/users/jodersus/orgs","repos_url":"https://api.github.com/users/jodersus/repos","events_url":"https://api.github.com/users/jodersus/events{/privacy}","received_events_url":"https://api.github.com/users/jodersus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-30T11:18:36Z","updated_at":"2015-12-30T11:18:36Z","closed_at":null,"body":"Hi,\r\nI am trying to send an image; I literally copied the code from yowsup-cli, but I keep getting this error.\r\nI have read #595 and other issues reference from there, and ammended my stack build (not much change from my original setup).\r\n```\r\n      layers = (\r\n            WsapLayer,\r\n            YowParallelLayer([\r\n              YowAuthenticationProtocolLayer, \r\n              YowMessagesProtocolLayer, \r\n              YowReceiptProtocolLayer, \r\n              YowAckProtocolLayer, \r\n              YowMediaProtocolLayer, \r\n              YowIqProtocolLayer,\r\n              YowPresenceProtocolLayer,\r\n              YowChatstateProtocolLayer,\r\n              YowContactsIqProtocolLayer,\r\n              YowGroupsProtocolLayer,\r\n              YowIbProtocolLayer,\r\n              YowPrivacyProtocolLayer,\r\n              YowProfilesProtocolLayer,\r\n              YowCallsProtocolLayer]),\r\n            YowAxolotlLayer) +\\\r\n            (YowLoggerLayer,\r\n            YowCoderLayer,\r\n            YowCryptLayer,\r\n            YowStanzaRegulator,\r\n            YowNetworkLayer\r\n        )\r\n      self.stack = YowStack(layers)\r\n      self.stack.setCredentials(credentials)\r\n```\r\n\r\nAnd this is the error message I get. \r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/threading.py\", line 810, in __bootstrap_inner\r\n    self.run()\r\n  File \"/usr/lib/python2.7/threading.py\", line 763, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"/data/wsap/echo/wsap_layer.py\", line 90, in onMessage\r\n    self.image_send(jid = messageProtocolEntity.getFrom(), path = emo[1], caption = emo[2])\r\n  File \"/data/wsap/echo/wsap_layer.py\", line 192, in image_send\r\n    self._sendIq(entity, successFn, errorFn)\r\n  File \"/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py\", line 126, in _sendIq\r\n    self.toLower(iqEntity.toProtocolTreeNode())\r\n  File \"/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py\", line 63, in toLower\r\n    self.__lower.send(data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py\", line 173, in send\r\n    s.send(data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py\", line 108, in send\r\n    if entity.getTag() in self.handleMap:\r\nAttributeError: 'ProtocolTreeNode' object has no attribute 'getTag'\r\n```\r\n\r\nHelp, please?\r\nA\r\n"}}