sidx
sidx

Reputation: 640

virtualenv: Too many levels of symbolic links

I'm using virtualenv and developing some pyramid applications. When I try to use

../bin/python setup.py

I get:

bash: ../bin/python/: Too many levels of symbolic links

What am I doing wrong?

Upvotes: 1

Views: 7324

Answers (2)

Jin Zhang
Jin Zhang

Reputation: 11

Hi~ i just encountered the same issue as you, i believe if you remove the 'env' file, and activate virtualenv again, this problem will be solved. It may not be the best solution but it could be a quick method.

Upvotes: 1

Steve Piercy
Steve Piercy

Reputation: 15065

You've omitted a space from your command.

From the directory in which the file setup.py is located, the command should be $VENV/bin/python setup.py.

Although Pyramid installation documentation recommends virtualenv, it does not recommend activating the virtualenv. Instead it is much preferable to set an environment variable to the path of the virtualenv for your project.

export VENV=~/projects/myproject/env

Which then makes it easy to set up a virtualenv.

virtualenv $VENV

And correctly execute commands from any directory in your project.

$VENV/bin/python setup.py

Upvotes: 0

Related Questions