Skip to content

Instantly share code, notes, and snippets.

@silenius
Created April 20, 2016 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silenius/2575e71c153bb86fb7ebc956f8be58b3 to your computer and use it in GitHub Desktop.
Save silenius/2575e71c153bb86fb7ebc956f8be58b3 to your computer and use it in GitHub Desktop.
----------
ID: alienalert_venv
Function: virtualenv.managed
Name: /usr/local/venvs/alienalert
Result: False
Comment: Fatal Python error: Py_Initialize: can't initialize sys standard streams
OSError: [Errno 9] Bad file descriptor
Current thread 0x0000000801c06400 (most recent call first):
Started: 12:46:46.770735
Duration: 161.996 ms
Changes:
state file:
# Install the virtualenv
{{ venv }}_venv:
virtualenv.managed:
- name: {{ cfg.full_path }}
- venv_bin: {{ cfg.venv_builder }}
- system_site_packages: False
- user: {{ cfg.user }}
- clear: False
- require:
- file: {{ cfg.full_path }}
- user: {{ cfg.user }}
- pkg: {{ salt['pillar.get']('postgresql:lookup:pkg_client') }}
{% if cfg.python_version == 3.4 %}
- pkg: python34
{% elif cfg.python_version == 2.7 %}
- pkg: python27
- pkg: py27-virtualenv
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment