6/26/2015 - 12:18 PM

pip fails for st2

Ignoring indexes:
Processing /code/st2api
    Complete output from command python egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-uMDMQe-build/", line 32, in <module>
        with open(os.path.join(current_dir, 'st2_version'), 'r') as f:
    IOError: [Errno 2] No such file or directory: '/tmp/pip-uMDMQe-build/st2_version'
Command "python egg_info" failed with error code 1 in /tmp/pip-uMDMQe-build
Traceback (most recent call last):
  File "/usr/bin/dh_virtualenv", line 106, in <module>
    sys.exit(main() or 0)
  File "/usr/bin/dh_virtualenv", line 89, in main
  File "/usr/lib/python2.7/dist-packages/dh_virtualenv/", line 182, in install_package
    subprocess.check_call(self.pip('.'), cwd=os.path.abspath(self.sourcedirectory))
  File "/usr/lib/python2.7/", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/code/st2api/debian/st2api/usr/share/python/st2api/bin/python', '/code/st2api/debian/st2api/usr/share/python/st2api/bin/pip', 'install', '--log=/tmp/tmpm_6nkB', '--no-index', '--find-links=/tmp/wheelhouse', '.']' returned non-zero exit status 1
debian/rules:16: recipe for target 'override_dh_virtualenv' failed
make[1]: *** [override_dh_virtualenv] Error 1
make[1]: Leaving directory '/code/st2api'
debian/rules:11: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2