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

Workers in distributed mode fail to run virtualenv #127

Open
ludovicchabant opened this issue Apr 14, 2014 · 3 comments
Open

Workers in distributed mode fail to run virtualenv #127

ludovicchabant opened this issue Apr 14, 2014 · 3 comments

Comments

@ludovicchabant
Copy link

In Distribute.py (line 496), FunkLoad tries to create a new virtual environment by running python virtualenv.py /path/to/temp. At least in my case, it failed to run it because virtualenv.py couldn't be found. I'm not sure what caused this, my workers were all fresh EC2 instances running the standard Ubuntu AMI, and the only thing I did on them was to install pip and virtualenv.

I worked around the issue by modifying the code locally to just run virtualenv /path/to/temp directly.

I'm not sure why FunkLoad goes to all the trouble of finding the virtualenv script and all that, instead of just running it anyway?

@bdelbosc
Copy link
Member

Hi,
you don't need to install virtualenv on the slave, only install virtualenv and paramiko on the master as described in the doc:

sudo aptitude install python-paramiko, python-virtualenv

I will commit some fix today regarding the --distribute-workers opts that fails when submitting pwd or explicit ssh port.

@ludovicchabant
Copy link
Author

Mmmh I had paramiko and virtualenv installed on the master. So unless installing virtualenv on the slave somehow disrupts funkload, then something was still not working right... I'll try again soon.

@jerri
Copy link

jerri commented May 15, 2014

I am trying this also and the problem persists even with funkload-1.17.0. The created virtualenv.py on the worker-servers seem to have problems to find pip and die. Therefore the needed virtual environment is never set up correctly.

@filosi filosi mentioned this issue Oct 22, 2014
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

3 participants