saga-project / BigJob

SAGA-based Pilot-Job Implementation for Compute and Data
http://saga-project.github.com/BigJob/
Other
19 stars 8 forks source link

Bootstrap fails if PYTHONPATH is set #64

Closed ashleyz closed 11 years ago

ashleyz commented 11 years ago

This is a minor issue, but for completeness' sake, I am adding it :)

If $PYTHONHOME is set, you will get a warning such as the following when running the bootstrap script:

ashleyz@login2:~$ python bigjob-bootstrap.py $HOME/.bigjob/python/ PYTHONHOME is set. You must activate the virtualenv before using it

which then fails ungracefully with an error such as the following:

Renaming /opt/apps/python/2.7.1/modules/lib/python/setuptools-0.6c11-py2.7.egg-info to /opt/apps/python/2.7.1/modules/lib/python/setuptools-0.6c1 1-py2.7.egg-info.OLD.1358143335.4

error: Permission denied

...Installing setuptools...done. Traceback (most recent call last): File "bigjob-bootstrap.py", line 1967, in main() File "bigjob-bootstrap.py", line 817, in main never_download=options.never_download) File "bigjob-bootstrap.py", line 917, in create_environment search_dirs=search_dirs, never_download=never_download) File "bigjob-bootstrap.py", line 610, in install_setuptools search_dirs=search_dirs, never_download=never_download) File "bigjob-bootstrap.py", line 584, in _install_req cwd=cwd) File "bigjob-bootstrap.py", line 885, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /home1/01414/ashleyz...ob/python/bin/python -c "#!python \"\"\"Bootstra...sys.argv[1:])

" --always-copy -U setuptools failed with error code 1

ashleyz commented 11 years ago

Closed because I couldn't duplicate...