chapmanb / bcbb

Incubator for useful bioinformatics code, primarily in Python and R
http://bcbio.wordpress.com
606 stars 243 forks source link

env.local_install in _expand_paths() in biolinux/fabfile.py #17

Closed skinner closed 13 years ago

skinner commented 13 years ago

I was doing a "fab install_biolinux" on a vanilla ubuntu maverick ec2 instance; after the python-setuptools installation, I got this error:

[host] run: mkdir -p /bin/bash: line 0: cd: /home/ubuntu/install: No such file or directory
[host] out: mkdir: cannot create directory `/bin/bash:': Permission denied
[host] out: 

Fatal error: run() encountered an error (return code 1) while executing 'mkdir -p /bin/bash: line 0: cd: /home/ubuntu/install: No such file or directory'

Aborting.

The env.local_install directory didn't initially exist; _expand_paths() was getting called first and changing env.local_install to be the "no such file..." error message. Then, later, _custom_installs() checks for env.local_install and creates it if it doesn't exist, but by that time env.local_install has already been clobbered by _expand_paths().

This is how I addressed it.

Biolinux is cool, Mitch

chapmanb commented 13 years ago

Mitch; Thank you for this and apologies about the problem. Coincidentally enough, I ran into this yesterday as well rolling up a new CloudBioLinux AMI. Merged your fixes in, along with some other updates for clean builds.

Really glad you are finding this useful and let me know if you have any other suggestions. Thanks again, Brad