bootstrap fails with ImportError on Anaconda 2.0.0 on Windows

Bug #1328598 reported by Joel Berendzen on 2014-06-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
Undecided
Unassigned

Bug Description

Anaconda 2.0.0 installed in path on Windows 7. Default settings, except for download of mercurial and biopython.

>python bootstrap.py
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-4.0.1.zip
....[stuff suppressed]..

ImportError: No module named email

>python
>>>import sys
>>>print sys.path
['', 'C:\Anacona\\python27.zip', 'C:\\Anaconda\\DLLs', 'C:Anaconda\\lib', 'C:\\Anaconda\\lib\\plat-win\',
...[much stuff in path suppressed]

Clearly the system libraries are getting removed from sys.path. If I comment out the following lines in bootstrap.py, then
bootstrap succeeds:

#if hasattr(site, 'getsitepackages'):
# for sitepackage_path in site.getsitepackages():
# sys.path[:] = [x for x in sys.path if sitepackage_path not in x]

I believe this behavior has changed recently, perhaps in going from Anaconda 1.9.1 to Anaconda 2.0.0. Anaconda 2.0.0 on Mac does not suffer from this problem.

I believe that bootstrap.py should not assume that the stuff in sys.path can be removed with impunity. If I bootstrap with the "--allow-site-packages" option, then bootstrap fails with:
  The required version of setuptools (>=4.0.1) is not available, and can't be installed while this script is running....

Setuptools 4.0.1 is not available in the Anaconda distribution for separate installation.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers