{"action":"closed","issue":{"url":"https://api.github.com/repos/paolo-losi/stormed-amqp/issues/20","labels_url":"https://api.github.com/repos/paolo-losi/stormed-amqp/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/paolo-losi/stormed-amqp/issues/20/comments","events_url":"https://api.github.com/repos/paolo-losi/stormed-amqp/issues/20/events","html_url":"https://github.com/paolo-losi/stormed-amqp/issues/20","id":53801774,"number":20,"title":"AttributeError exception calling queue_unbind in stormed-amqp 0.2","user":{"login":"sjlongland","id":1710526,"avatar_url":"https://avatars.githubusercontent.com/u/1710526?v=3","gravatar_id":"","url":"https://api.github.com/users/sjlongland","html_url":"https://github.com/sjlongland","followers_url":"https://api.github.com/users/sjlongland/followers","following_url":"https://api.github.com/users/sjlongland/following{/other_user}","gists_url":"https://api.github.com/users/sjlongland/gists{/gist_id}","starred_url":"https://api.github.com/users/sjlongland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjlongland/subscriptions","organizations_url":"https://api.github.com/users/sjlongland/orgs","repos_url":"https://api.github.com/users/sjlongland/repos","events_url":"https://api.github.com/users/sjlongland/events{/privacy}","received_events_url":"https://api.github.com/users/sjlongland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T21:13:27Z","updated_at":"2015-01-23T08:18:45Z","closed_at":"2015-01-23T08:18:45Z","body":"Hi,\r\n\r\nI get the following message when I try to unbind a queue in stormed-amqp 0.2:\r\n```\r\n2015-01-09 07:08:47,594 root@9003[testremote.py: 338] ERROR Exception encountered evaluating e.rm_demand(['a2'])\r\nTraceback (most recent call last):\r\n  File \"testremote.py\", line 328, in prompt\r\n    result = eval(cmd, globals(), local_vars)\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/home/stuartl/vrt/projects/rt/mmda_core/entity/remote.py\", line 231, in rm_demand\r\n    self._stat_ex, *['rt_cos.%s' % attr for attr in attributes]\r\n  File \"/home/stuartl/vrt/projects/rt/mmda_core/source/remote.py\", line 208, in _unsubscribe_queue\r\n    routing_key=t)\r\n  File \"/usr/lib64/python2.7/site-packages/stormed/channel.py\", line 115, in queue_unbind\r\n    self.send_method(_queue.Unind(ticket      = 0,\r\nAttributeError: 'module' object has no attribute 'Unind'\r\n```\r\n\r\nThe code for `_unsubscribe_queue` looks like this:\r\n```\r\n\r\n    def _unsubscribe_queue(self, exchange, *topics):\r\n        '''\r\n        Unsubscribe from one or more topics of an exchange.\r\n        '''\r\n        try:\r\n            topic_set = self._subscriptions[exchange]\r\n        except:\r\n            # Not subscribed\r\n            return\r\n\r\n        if len(topics) == 0:\r\n            # Unsubscribe from all topics\r\n            topics = tuple(topic_set)\r\n\r\n        for t in topics:\r\n            topic_set.discard(t)\r\n            if self._amqp_q is not None:\r\n                self._log.debug('Unsubscribing receive queue (%s) to '\\\r\n                        'exchange %s topic %s',\r\n                        self._amqp_q.queue, exchange, t)\r\n                self._amqp_ch_rx.queue_unbind(\r\n                        exchange=exchange,\r\n                        queue=self._amqp_q.queue,\r\n                        routing_key=t)\r\n        if len(topic_set) == 0:\r\n            del(self._subscriptions[exchange])\r\n```"}}