Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory: 'virtualenv' when doing pipsi install pew #125

Closed
cjw296 opened this issue Jan 24, 2018 · 10 comments
Closed

No such file or directory: 'virtualenv' when doing pipsi install pew #125

cjw296 opened this issue Jan 24, 2018 · 10 comments

Comments

@cjw296
Copy link

cjw296 commented Jan 24, 2018

Here's a shell session:

tweedledee:~ chris$ curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python3.6
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4130  100  4130    0     0  21211      0 --:--:-- --:--:-- --:--:-- 21179
Installing pipsi
Collecting pipsi
  Using cached pipsi-0.9.tar.gz
Collecting Click (from pipsi)
  Using cached click-6.7-py2.py3-none-any.whl
Collecting virtualenv (from pipsi)
  Using cached virtualenv-15.1.0-py2.py3-none-any.whl
Installing collected packages: Click, virtualenv, pipsi
  Running setup.py install for pipsi ... done
Successfully installed Click-6.7 pipsi-0.9 virtualenv-15.1.0
Installed pipsi binary in /Users/chris/.local/bin
pipsi is now installed.
tweedledee:~ chris$ pipsi install pew
Traceback (most recent call last):
  File "/Users/chris/.local/bin/pipsi", line 11, in <module>
    load_entry_point('pipsi==0.9', 'console_scripts', 'pipsi')()
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/pipsi.py", line 366, in install
    if repo.install(package, python, editable):
  File "/Users/chris/.local/venvs/pipsi/lib/python3.6/site-packages/pipsi.py", line 236, in install
    if Popen(args).wait() != 0:
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1326, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'virtualenv'

What am I or have I done wrong?

@cjw296
Copy link
Author

cjw296 commented Jan 24, 2018

Hmm, chicken and egg if I try 2.7:

tweedledee:~ chris$ curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4130  100  4130    0     0  25417      0 --:--:-- --:--:-- --:--:-- 25493
Installing pipsi
You need to have virtualenv installed to bootstrap pipsi.

@buzzjmd
Copy link

buzzjmd commented Jan 25, 2018

I had a similar problem and there are many similar related issues reported. I believe they relate to release 0.9, which is the most recent release available, and is the version installed by the recommended installation procedure

curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python

There hasn't been a new release for a long time, so I installed pipsi from the master and this fixed the issue (probably thanks to commit be4abc4). Try installing from master :-

# Download the pipsi installer script from github
$ curl -O https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py

# Read about the --src option in the help menu
$ python get-pipsi.py --help

# Run the installer script to get the master branch from github
$ python get-pipsi.py --src=git+https://github.com/mitsuhiko/pipsi.git#egg=pipsi

@cjw296
Copy link
Author

cjw296 commented Jan 28, 2018

Could anyone persuade @mitsuhiko to do a new release?

@jacobian
Copy link

jacobian commented Feb 20, 2018

I worked around this by creating ~/.local/vens/pipsi/package_info.json containing {"name": "pipsi", "version": "0.10.dev", "scripts": ["/Users/jacobkaplan-moss/.local/bin/pipsi"]}.

@jacobian
Copy link

Oops, I meant to leave that comment on #124.

@halicki
Copy link

halicki commented Mar 30, 2018

In my case (ubuntu 17.10) solution provided by @buzzjmd had to have a modification. Instead of providing --src=git+https://github.com/mitsuhiko/pipsi.git#egg=pipsi I used --src=git+https://github.com/mitsuhiko/pipsi.git so, removed the egg info, and that helped!

@almartin1911
Copy link

I've experienced the same issue performing the recommended installation procedure on a fresh Ubuntu 18 (Bionic Beaver) installation. Here's what I've done to solve it:

  1. Uninstall pipsi
    rm -rf ~/.local/bin ~/.local/venvs
  2. Fresh install (thanks PyGObject team)
    curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python3 - --src=git+https://github.com/mitsuhiko/pipsi.git\#egg=pipsi
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
  3. Install pew (and pipenv)
    pipsi install pew
    pipsi install pipenv

@cjw296
Copy link
Author

cjw296 commented Nov 13, 2018

Doesn't look like this package is maintained anymore, I don't use it and @amartin1911 has provided a workaround, so closing.

@cjw296 cjw296 closed this as completed Nov 13, 2018
@jakul
Copy link

jakul commented Dec 3, 2018

I was also able to workaround this, by manually installing virtualenv in the environment of the base python pipsi uses:

$ curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python3
$ pip3 install virtualenv

@bbrendon
Copy link

Failed out of the gate.

% curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6577  100  6577    0     0  14833      0 --:--:-- --:--:-- --:--:-- 14846
Installing pipsi
You need to have virtualenv installed to bootstrap pipsi.
% dpkg -l|grep virtual
ii  python3-virtualenv                 15.1.0+ds-1                       all          Python virtual environment creator
ii  virtualenv                         15.1.0+ds-1                       all          Python virtual environment creator
% uname -a
Linux homeauto 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants