{"action":"created","issue":{"url":"https://api.github.com/repos/saschpe/libvirt-hook-qemu/issues/1","labels_url":"https://api.github.com/repos/saschpe/libvirt-hook-qemu/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/saschpe/libvirt-hook-qemu/issues/1/comments","events_url":"https://api.github.com/repos/saschpe/libvirt-hook-qemu/issues/1/events","html_url":"https://github.com/saschpe/libvirt-hook-qemu/issues/1","id":69145196,"number":1,"title":"ValueError: need more than 0 values to unpack","user":{"login":"hillbicks","id":3480073,"avatar_url":"https://avatars.githubusercontent.com/u/3480073?v=3","gravatar_id":"","url":"https://api.github.com/users/hillbicks","html_url":"https://github.com/hillbicks","followers_url":"https://api.github.com/users/hillbicks/followers","following_url":"https://api.github.com/users/hillbicks/following{/other_user}","gists_url":"https://api.github.com/users/hillbicks/gists{/gist_id}","starred_url":"https://api.github.com/users/hillbicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillbicks/subscriptions","organizations_url":"https://api.github.com/users/hillbicks/orgs","repos_url":"https://api.github.com/users/hillbicks/repos","events_url":"https://api.github.com/users/hillbicks/events{/privacy}","received_events_url":"https://api.github.com/users/hillbicks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-17T14:04:49Z","updated_at":"2015-04-17T14:40:34Z","closed_at":null,"body":"Hey, \r\n\r\nfirst of all, thanks for the script. Unfortunately though, it is not working for me. When starting the virtual machine it fails with error code 256. Starting the script from the shell results in the following error:\r\n\r\nroot@debiantest:/etc/libvirt/hooks# ./qemu \r\nTraceback (most recent call last):\r\n  File \"./qemu\", line 96, in <module>\r\n    vir_domain, action = sys.argv[1:3]\r\nValueError: need more than 0 values to unpack\r\n\r\nThis is on a debian wheezy machine with python 2.7.3.\r\n\r\noh, and test_qemu.py also fails:\r\n\r\nroot@debiantest:~/libvirt-hook-qemu-master# python test_qemu.py \r\nTraceback (most recent call last):\r\n  File \"test_qemu.py\", line 5, in <module>\r\n    import qemu  # Our local libvirt hooks module\r\nImportError: No module named qemu\r\n\r\n\r\nCould you give me a hint what is going on here?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/saschpe/libvirt-hook-qemu/issues/comments/93999091","html_url":"https://github.com/saschpe/libvirt-hook-qemu/issues/1#issuecomment-93999091","issue_url":"https://api.github.com/repos/saschpe/libvirt-hook-qemu/issues/1","id":93999091,"user":{"login":"gtirloni","id":5902830,"avatar_url":"https://avatars.githubusercontent.com/u/5902830?v=3","gravatar_id":"","url":"https://api.github.com/users/gtirloni","html_url":"https://github.com/gtirloni","followers_url":"https://api.github.com/users/gtirloni/followers","following_url":"https://api.github.com/users/gtirloni/following{/other_user}","gists_url":"https://api.github.com/users/gtirloni/gists{/gist_id}","starred_url":"https://api.github.com/users/gtirloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtirloni/subscriptions","organizations_url":"https://api.github.com/users/gtirloni/orgs","repos_url":"https://api.github.com/users/gtirloni/repos","events_url":"https://api.github.com/users/gtirloni/events{/privacy}","received_events_url":"https://api.github.com/users/gtirloni/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T14:40:34Z","updated_at":"2015-04-17T14:40:34Z","body":"First error is because you didn't pass all the argument on the command-line (as libvirtd would) and the hook's code failed to validate that before unpacking.\r\n\r\nSecond error is because it's trying to import the hook's code as a python module. `ln -s qemu qemu.py` and try again please."}}