{"action":"closed","issue":{"url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/106","labels_url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/106/comments","events_url":"https://api.github.com/repos/spotify/dh-virtualenv/issues/106/events","html_url":"https://github.com/spotify/dh-virtualenv/issues/106","id":98754088,"number":106,"title":"dpkg-buildpackage working but not through debuild","user":{"login":"aRkadeFR","id":5289998,"avatar_url":"https://avatars.githubusercontent.com/u/5289998?v=3","gravatar_id":"","url":"https://api.github.com/users/aRkadeFR","html_url":"https://github.com/aRkadeFR","followers_url":"https://api.github.com/users/aRkadeFR/followers","following_url":"https://api.github.com/users/aRkadeFR/following{/other_user}","gists_url":"https://api.github.com/users/aRkadeFR/gists{/gist_id}","starred_url":"https://api.github.com/users/aRkadeFR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aRkadeFR/subscriptions","organizations_url":"https://api.github.com/users/aRkadeFR/orgs","repos_url":"https://api.github.com/users/aRkadeFR/repos","events_url":"https://api.github.com/users/aRkadeFR/events{/privacy}","received_events_url":"https://api.github.com/users/aRkadeFR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-03T14:14:34Z","updated_at":"2015-08-03T14:39:30Z","closed_at":"2015-08-03T14:39:30Z","body":"Hey guys,\r\n\r\nI'm trying to package one Django application with dh-virtualenv, and I'm struggling during the build.\r\nBash / armhf / debian jessie\r\n\r\nIf I'm running \"dpkg-buildpackage -us -uc\" command ,it works perfectly, but if I run \"debuild\" it raises an error. I don't quite know how to debug this one.\r\n\r\n```\r\ngitlab_ci_multi_runner@cloud-dev:~/Projects/cuisine$ debuild \r\n dpkg-buildpackage -rfakeroot -D -us -uc\r\ndpkg-buildpackage: source package cuisine\r\n...\r\n   dh_systemd_start -O--no-test\r\n   dh_perl -O--no-test\r\n   dh_virtualenv -O--no-test\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/dh_virtualenv\", line 85, in <module>\r\n    sys.exit(main() or 0)\r\n  File \"/usr/bin/dh_virtualenv\", line 64, in main\r\n    deploy.create_virtualenv()\r\n  File \"/usr/lib/python2.7/dist-packages/dh_virtualenv/deployment.py\", line 78, in create_virtualenv\r\n    subprocess.check_call(virtualenv)\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 535, in check_call\r\n    retcode = call(*popenargs, **kwargs)\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 522, in call\r\n    return Popen(*popenargs, **kwargs).wait()\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 710, in __init__\r\n    errread, errwrite)\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 1335, in _execute_child\r\n    raise child_exception\r\nOSError: [Errno 2] No such file or directory\r\ndebian/rules:4: recipe for target 'binary' failed\r\nmake: *** [binary] Error 1\r\ndpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2\r\ndebuild: fatal error at line 1376:\r\ndpkg-buildpackage -rfakeroot -D -us -uc failed\r\n```\r\n\r\nand with dpkg-buildpackage:\r\n```\r\ngitlab_ci_multi_runner@cloud-dev:~/Projects/cuisine$ dpkg-buildpackage -rfakeroot -D -us -uc \r\ndpkg-buildpackage: source package cuisine\r\ndpkg-buildpackage: source version 0.1\r\ndpkg-buildpackage: source distribution balthazar\r\n\r\n...\r\n   dh_installinit -O--no-test\r\n   dh_systemd_start -O--no-test\r\n   dh_perl -O--no-test\r\n   dh_virtualenv -O--no-test\r\nUsing base prefix '/usr'\r\nNew python executable in debian/cuisine/usr/share/python/cuisine/bin/python3\r\nAlso creating executable in debian/cuisine/usr/share/python/cuisine/bin/python\r\n...\r\ndpkg-deb: building package `cuisine' in `../cuisine_0.1_armhf.deb'.\r\n dpkg-genchanges  >../cuisine_0.1_armhf.changes\r\ndpkg-genchanges: including full source code in upload\r\n dpkg-source --after-build cuisine\r\ndpkg-buildpackage: full upload; Debian-native package (full source is included)\r\n```\r\n\r\nAfter dumping my environement inside the makefile just before dh_virtualenv, it shows that I have all my variables in the dpkg-buildpackage one (VIRTUALENVWRAPPER_PYTHON for instance) and not through the debuild. Even though I load all this environement variables before calling dh_virtualenv, it throws the same error.\r\n\r\nany idea?\r\n\r\nPS: great work on this package, congrats, it helps lots."}}