This repository has been archived by the owner. It is now read-only.

pyvenv can't install distribute with Python 3.3 #18728

Closed
SoftwareMaven opened this Issue Mar 25, 2013 · 3 comments

Comments

Projects
None yet
3 participants

Trying to install distribute inside of a virtualenv created with pyvenv gives an error:

Checking .pth file support in /usr/local/lib/python3.3/site-packages/
/Users/travis/.virtualenvs/uln/bin/python3 -E -c pass
TEST FAILED: /usr/local/lib/python3.3/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python3.3/site-packages/

and your PYTHONPATH environment variable currently contains:

'/Applications/MacPorts/Emacs.app/Contents/Resources/etc'

Here are some of your options for correcting the problem:

  • You can choose a different installation directory, i.e., one that is
    on PYTHONPATH or supports .pth files

  • You can add the installation directory to the PYTHONPATH environment
    variable. (It must then also be on PYTHONPATH whenever you run
    Python and want to use the package(s) you are installing.)

  • You can set up the installation directory to support ".pth" files by
    using one of the approaches described here:

    http://packages.python.org/distribute/easy_install.html#custom-installation-locations

Please make the appropriate changes for your system and try again.

According to comments at http://stackoverflow.com/questions/14097423/installing-distribute-in-python-3-3-venv-os-x-homebrew, Macports and the Python.org distribution work.

Contributor

adamv commented Mar 25, 2013

Please report the problem to pyenv.

@adamv adamv closed this Mar 25, 2013

Are problems with Formulae not supposed to be reported here?

On Mon, Mar 25, 2013 at 1:40 PM, Adam Vandenberg
notifications@github.comwrote:

Please report the problem to pyenv.


Reply to this email directly or view it on GitHubhttps://github.com/mxcl/homebrew/issues/18728#issuecomment-15418571
.

Travis Jensen


*Read the Software Maven @ http://softwaremaven.innerbrane.com/
Read my LinkedIn profile @ http://www.linkedin.com/in/travisjensen
Read my Twitter mumblings @ http://twitter.com/SoftwareMaven
Send me email @ travis.jensen@gmail.com

What kind of guy calls himself the Software Maven???

@adamv @SoftwareMaven

We should consider re-opening this bug. The issue is caused by a possible bug in Python that applies distutils.cfg settings to virtual environments created using venv. See the bug report here: http://bugs.python.org/issue17732

With that in mind, no one at the Python project has confirmed yet whether this is a bug or intended behavior. It seems to me that distutils.cfg settings can potentially cause a lot of unexpected behavior, and that perhaps we should explore a solution for homebrew that does not require shipping a distutils.cfg by default.

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.