barbican installation without pyenv

asked 2015-04-21 11:41:20 -0600

nutshi gravatar image

updated 2015-04-22 03:35:59 -0600

SGPJ gravatar image

I want to install Barbican without installing pyenv and creating virtualenv e.t.c

when i tried to do that I ran into this issue :- "pyenv: command not found"

any pointers or work arounds ?

TASK: [barbican | setup barbican] ********************************************* 
failed: [barbican-04] => {"changed": true, "cmd": "cd /root/barbican; bin/ latest", "delta": "0:00:00.005827", "end": "2015-04-21 16:34:58.157378", "rc": 1, "start": "2015-04-21 16:34:58.151551", "warnings": []}
**stderr: bin/ line 8: pyenv: command not found**
stdout: DIR: /root/barbican/bin
Usage:  {install|start|stop|debug <debug_params>|restart}
where debug_params are: --pydev-debug-host <host> --pydev-debug-port <port>, <host> defaults to 'localhost' and <port> defaults to '5678'

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/neetu/site.retry

barbican-04                : ok=4    changed=0    unreachable=0    failed=1
edit retag flag offensive close merge delete


Is there a reason you don't want to use pyenv? It seems to be a requirement for Barbican installation.

raul.flores gravatar imageraul.flores ( 2015-04-21 13:41:14 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-04-22 10:17:43 -0600

You should be able to manually install Barbican without pyenv or virtualenv by doing the following:


  • sudo pip install /path/to/barbican/
  • sudo pip install uwsgi
  • sudo mkdir -p /var/lib/barbican
  • sudo cp -r /path/to/barbican/etc/barbican /etc/barbican

Note: If you're using sqlite for your db you'll need to make sure that the user running the barbican service has access to /var/lib/barbican and /etc/barbican.


  • uwsgi --master --emperor /etc/barbican/vassals
edit flag offensive delete link more


I would still recommend using some virtual environment for local development. Another step in the bin/ script you need to run is pip install -r requirements.txt

john-wood-w gravatar imagejohn-wood-w ( 2015-04-24 09:33:41 -0600 )edit

answered 2015-04-22 13:43:23 -0600

Yes, that startup script does want you to use pyenv and uWSGI. We have discussed updating it to be more generic, but in the mean time, please consider using pyenv for you local development efforts.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-04-21 11:41:20 -0600

Seen: 317 times

Last updated: Apr 22 '15