{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/124","labels_url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/124/comments","events_url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/124/events","html_url":"https://github.com/spotify/dh-virtualenv/issues/124","id":120418528,"number":124,"title":"python: bad interpreter: No such file or directory","user":{"login":"dennybaa","id":891419,"avatar_url":"https://avatars.githubusercontent.com/u/891419?v=3","gravatar_id":"","url":"https://api.github.com/users/dennybaa","html_url":"https://github.com/dennybaa","followers_url":"https://api.github.com/users/dennybaa/followers","following_url":"https://api.github.com/users/dennybaa/following{/other_user}","gists_url":"https://api.github.com/users/dennybaa/gists{/gist_id}","starred_url":"https://api.github.com/users/dennybaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennybaa/subscriptions","organizations_url":"https://api.github.com/users/dennybaa/orgs","repos_url":"https://api.github.com/users/dennybaa/repos","events_url":"https://api.github.com/users/dennybaa/events{/privacy}","received_events_url":"https://api.github.com/users/dennybaa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-12-04T15:02:15Z","updated_at":"2016-01-11T00:16:33Z","closed_at":"2015-12-07T12:00:53Z","body":"Hello,\r\n\r\nPackaged python scripts get shebang interpreter `#!python`.\r\n\r\nInvocation like this:\r\n```make\r\noverride_dh_virtualenv:\r\n\tdh_virtualenv --extra-pip-arg '--find-links=$(WHEELDIR)' \\\r\n\t\t\t\t\t\t\t\t--no-test\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/comments/170409079","html_url":"https://github.com/spotify/dh-virtualenv/issues/124#issuecomment-170409079","issue_url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/124","id":170409079,"user":{"login":"evilaliv3","id":217034,"avatar_url":"https://avatars.githubusercontent.com/u/217034?v=3","gravatar_id":"","url":"https://api.github.com/users/evilaliv3","html_url":"https://github.com/evilaliv3","followers_url":"https://api.github.com/users/evilaliv3/followers","following_url":"https://api.github.com/users/evilaliv3/following{/other_user}","gists_url":"https://api.github.com/users/evilaliv3/gists{/gist_id}","starred_url":"https://api.github.com/users/evilaliv3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilaliv3/subscriptions","organizations_url":"https://api.github.com/users/evilaliv3/orgs","repos_url":"https://api.github.com/users/evilaliv3/repos","events_url":"https://api.github.com/users/evilaliv3/events{/privacy}","received_events_url":"https://api.github.com/users/evilaliv3/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T00:16:33Z","updated_at":"2016-01-11T00:16:33Z","body":"@nailor  i'm getting the same error of @dennybaa python is not found.\r\n\r\ni'm packaging GlobaLeaks and Tor2web using dh-virtualenv\r\n\r\ni  think that the issue of @dennybaa (like for me) is that i'm building on a machine 64bits and the machine where i'm installing is a 32 bit so that the python binary and all the other binaries included in the virtual env cannot work because they are all 64bit\r\n\r\nhow do you generally manage with this condition? how to build a multiarchitectural virtualenv/package?\r\n\r\n```bash\r\nroot@tor2web:~# ls /usr/share/python/tor2web/bin/ -al\r\ntotal 3376\r\ndrwxr-xr-x 2 root root    4096 Jan 10 23:59 .\r\ndrwxr-xr-x 6 root root    4096 Jan 10 23:51 ..\r\n-rw-r--r-- 1 root root    2250 Jan 10 23:39 activate\r\n-rw-r--r-- 1 root root    1306 Jan 10 23:39 activate.csh\r\n-rw-r--r-- 1 root root    2519 Jan 10 23:39 activate.fish\r\n-rw-r--r-- 1 root root    1129 Jan 10 23:39 activate_this.py\r\n-rwxr-xr-x 1 root root     346 Jan 10 23:39 cftp\r\n-rwxr-xr-x 1 root root     349 Jan 10 23:39 ckeygen\r\n-rwxr-xr-x 1 root root     347 Jan 10 23:39 conch\r\n-rwxr-xr-x 1 root root     754 Jan 10 23:39 cyclone\r\n-rwxr-xr-x 1 root root     335 Jan 10 23:39 easy_install\r\n-rwxr-xr-x 1 root root     253 Jan 10 23:39 easy_install-2.7\r\n-rwxr-xr-x 1 root root     343 Jan 10 23:39 easy_install-3.4\r\n-rwxr-xr-x 1 root root     346 Jan 10 23:39 lore\r\n-rwxr-xr-x 1 root root     405 Jan 10 23:39 mailmail\r\n-rwxr-xr-x 1 root root     307 Jan 10 23:39 manhole\r\n-rwxr-xr-x 1 root root     225 Jan 10 23:39 pip\r\n-rwxr-xr-x 1 root root     225 Jan 10 23:39 pip2\r\n-rwxr-xr-x 1 root root     225 Jan 10 23:39 pip2.7\r\n-rwxr-xr-x 1 root root     237 Jan 10 23:39 pyhtmlizer\r\n-rwxr-xr-x 1 root root 3345416 Jan 10 23:39 python\r\nlrwxrwxrwx 1 root root       6 Jan 10 23:39 python2 -> python\r\nlrwxrwxrwx 1 root root       6 Jan 10 23:39 python2.7 -> python\r\n-rwxr-xr-x 1 root root     257 Jan 10 23:39 tap2deb\r\n-rwxr-xr-x 1 root root     345 Jan 10 23:39 tap2rpm\r\n-rwxr-xr-x 1 root root     239 Jan 10 23:39 tapconvert\r\n-rwxr-xr-x 1 root root     349 Jan 10 23:39 tkconch\r\n-rwxr-xr-x 1 root root     199 Jan 10 23:39 tor2web\r\n-rwxr-xr-x 1 root root     372 Jan 10 23:39 trial\r\n-rwxr-xr-x 1 root root     289 Jan 10 23:39 twistd\r\n```\r\n\r\nyou can see here that the installed packages has python elf but the python included in the package is a 64bit version not compatible with the 32bit system and if i simply run \"python\" i get command not found simply because the elf file is not compatible\r\n```bash\r\nls /usr/share/python/tor2web/bin/python -al\r\n-rwxr-xr-x 1 root root 3345416 Jan 10 23:39 /usr/share/python/tor2web/bin/python\r\n```\r\n\r\n```bash\r\nfile python\r\npython: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=502c59409208bd0bf5acfa9c497107ec487e3bd6, stripped\r\n```\r\n\r\n```bash\r\n/usr/share/python/tor2web/bin# ./python\r\n-bash: ./python: No such file or directory\r\n```"}}