marrow / WebCore

WebCore, the super tiny and blazingly fast modular Python web nanoframework.
MIT License
94 stars 10 forks source link

Installation error: "No such file or directory while executing command /home/nj/bccs/brave/bin/easy_install pip" #140

Closed therealplato closed 9 years ago

therealplato commented 10 years ago

I haven't yet identified whether this is an issue with WebCore or a dependency. If the latter, perhaps the install script could output something more explicit? I'm running on a fresh install of Linux Mint 15 XFCE, please let me know any steps I can take to help troubleshoot!

Installation command and error:

[nj@barleguet bccs]$ python --version; pip --version; easy_install --version;
Python 2.7.4
pip 1.3.1 from /usr/lib/python2.7/dist-packages (python 2.7)
distribute 0.6.34
[nj@barleguet bccs]$ python webcore-bootstrap.py brave                       
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in brave/bin/python
Installing distribute.................................done.
Installing pip...
  Error [Errno 2] No such file or directory while executing command /home/nj/bccs/brave/bin/easy_install pip
...Installing pip...done.
Traceback (most recent call last):
  File "webcore-bootstrap.py", line 2009, in <module>
    main()
  File "webcore-bootstrap.py", line 794, in main
    never_download=options.never_download)
  File "webcore-bootstrap.py", line 908, in create_environment
    install_pip(py_executable, search_dirs=search_dirs, never_download=never_download)
  File "webcore-bootstrap.py", line 506, in install_pip
    filter_stdout=_filter_setup)
  File "webcore-bootstrap.py", line 832, in call_subprocess
    cwd=cwd, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Contents of ./brave after the error:

[nj@barleguet bccs]$ ls -aR brave
brave:
.  ..  bin  include  lib  local

brave/bin:
.  ..  python

brave/include:
.  ..  python2.7

brave/lib:
.  ..  python2.7

brave/lib/python2.7:
.            copy_reg.pyc     linecache.pyc                re.py              sre_parse.py   warnings.py
..           distutils        locale.py                    re.pyc             sre_parse.pyc  warnings.pyc
_abcoll.py   encodings        no-global-site-packages.txt  site-packages      sre.py         _weakrefset.py
_abcoll.pyc  fnmatch.py       ntpath.py                    site.py            stat.py        _weakrefset.pyc
abc.py       fnmatch.pyc      orig-prefix.txt              site.pyc           stat.pyc
abc.pyc      genericpath.py   os.py                        sre_compile.py     types.py
codecs.py    genericpath.pyc  os.pyc                       sre_compile.pyc    types.pyc
codecs.pyc   lib-dynload      posixpath.py                 sre_constants.py   UserDict.py
copy_reg.py  linecache.py     posixpath.pyc                sre_constants.pyc  UserDict.pyc

brave/lib/python2.7/distutils:
.  ..  distutils.cfg  __init__.py  __init__.pyc

brave/lib/python2.7/site-packages:
.  ..
[nj@barleguet bccs]$ 
therealplato commented 10 years ago

I found a workaround by manually setting up the virtualenv:

[nj@barleguet bccs]$ virtualenv brave
Installing distribute...................done.
Installing pip................done.
[nj@barleguet bccs]$ cd brave
[nj@barleguet brave]$ source bin/activate
(brave)[nj@barleguet src]$ echo hooray!
hooray!