systempkgs = true breaks pyvenv

Open
#333 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
devops

Research direction

No file or test is named in the report. Start by locating the pyvenv resource and its systempkgs option, then reproduce the missing pip command with a Python 3.4 virtual environment on CentOS 7. Done means systempkgs=true creates or resolves the expected pip executable and the virtual environment uses the intended Python version.

Written by the indexing model from the issue text.

Description

Setting systempkgs => true, in pyvenv gives the following error -

Could not evaluate: Could not find command '/opt/jupyterhubenv_p34/bin/pip'

Virtual Env Dir:

 ls -l /opt/jupyterhubenv_p34/bin/
total 12
-rw-r--r--. 1 root root 2164 Sep 15 18:30 activate
-rw-r--r--. 1 root root 1280 Sep 15 18:30 activate.csh
-rw-r--r--. 1 root root 2416 Sep 15 18:30 activate.fish
lrwxrwxrwx. 1 root root    9 Sep 15 18:30 python -> python3.4
lrwxrwxrwx. 1 root root    9 Sep 15 18:30 python3 -> python3.4
lrwxrwxrwx. 1 root root   18 Sep 15 18:30 python3.4 -> /usr/bin/python3.4

Also default pip in the virtual env seems to be python2.7 :

(jupyterhubenv_p34) [vagrant@amar-test-centos7 ~]$ pip -V   
pip 7.1.0 from /usr/lib/python2.7/site-packages (python 2.7)
Dominant language
Ruby
Stars
196
Forks
372
Avg merge
1d 18m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voxpupuli/puppet-python

All issues in voxpupuli/puppet-python

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.