Issues

Issue #199 resolved

Packaging problem: unable to use virtualenvwrapper as a dependency

Kevin McCarthy
created an issue

I have a project that uses virtualenvwrapper as a dependency. When I attempted to bump the version in my setup.py, I started getting this strange error:

TypeError: dist must be a Distribution instance

Here is an example setup.py that reproduces the problem:

#!/usr/bin/env python

from setuptools import setup, find_packages

setup(
    name='VEW Fail Test',
    packages=find_packages(),
    license='MIT',
    install_requires=['virtualenvwrapper==4.1.1'],
    classifiers=[
        'Development Status :: 4 - Beta',
    ],
)

Try running python setup.py install with the latest setuptools (0.9.7 as of now) and p ython 2.7 and you will get the following output:

$ python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to VEW_Fail_Test.egg-info/requires.txt
writing VEW_Fail_Test.egg-info/PKG-INFO
writing top-level names to VEW_Fail_Test.egg-info/top_level.txt
writing dependency_links to VEW_Fail_Test.egg-info/dependency_links.txt
reading manifest file 'VEW_Fail_Test.egg-info/SOURCES.txt'
writing manifest file 'VEW_Fail_Test.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/wp_export_parser
copying build/lib/wp_export_parser/autop.py -> build/bdist.linux-x86_64/egg/wp_export_parser
copying build/lib/wp_export_parser/__init__.py -> build/bdist.linux-x86_64/egg/wp_export_parser
copying build/lib/wp_export_parser/parse_shortcodes.py -> build/bdist.linux-x86_64/egg/wp_export_parser
copying build/lib/wp_export_parser/parse.py -> build/bdist.linux-x86_64/egg/wp_export_parser
creating build/bdist.linux-x86_64/egg/wp_export_parser/shortcodes
copying build/lib/wp_export_parser/shortcodes/__init__.py -> build/bdist.linux-x86_64/egg/wp_export_parser/shortcodes
copying build/lib/wp_export_parser/shortcodes/youtube.py -> build/bdist.linux-x86_64/egg/wp_export_parser/shortcodes
copying build/lib/wp_export_parser/shortcodes/caption.py -> build/bdist.linux-x86_64/egg/wp_export_parser/shortcodes
byte-compiling build/bdist.linux-x86_64/egg/wp_export_parser/autop.py to autop.pyc
byte-compiling build/bdist.linux-x86_64/egg/wp_export_parser/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/wp_export_parser/parse_shortcodes.py to parse_shortcodes.pyc
byte-compiling build/bdist.linux-x86_64/egg/wp_export_parser/parse.py to parse.pyc
byte-compiling build/bdist.linux-x86_64/egg/wp_export_parser/shortcodes/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/wp_export_parser/shortcodes/youtube.py to youtube.pyc
byte-compiling build/bdist.linux-x86_64/egg/wp_export_parser/shortcodes/caption.py to caption.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying VEW_Fail_Test.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying VEW_Fail_Test.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying VEW_Fail_Test.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying VEW_Fail_Test.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying VEW_Fail_Test.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/VEW_Fail_Test-0.0.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing VEW_Fail_Test-0.0.0-py2.7.egg
Copying VEW_Fail_Test-0.0.0-py2.7.egg to /home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages
Adding VEW-Fail-Test 0.0.0 to easy-install.pth file

Installed /home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/VEW_Fail_Test-0.0.0-py2.7.egg
Processing dependencies for VEW-Fail-Test==0.0.0
Searching for virtualenvwrapper==4.1.1
Reading https://pypi.python.org/simple/virtualenvwrapper/
Best match: virtualenvwrapper 4.1.1
Downloading https://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-4.1.1.tar.gz#md5=f18f2c612b936583a8ec0f7114b6637e
Processing virtualenvwrapper-4.1.1.tar.gz
Writing /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/setup.cfg
Running virtualenvwrapper-4.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/egg-dist-tmp-8Af9uW
Searching for pbr>=0.5.19
Reading https://pypi.python.org/simple/pbr/
Best match: pbr 0.5.20
Downloading https://pypi.python.org/packages/source/p/pbr/pbr-0.5.20.tar.gz#md5=bbfd338b8971084e6ef999f0b3b5a73a
Processing pbr-0.5.20.tar.gz
Writing /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/temp/easy_install-Sq2kUX/pbr-0.5.20/setup.cfg
Running pbr-0.5.20/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/temp/easy_install-Sq2kUX/pbr-0.5.20/egg-dist-tmp-1GcEVV
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution

Installed /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/pbr-0.5.20-py2.7.egg
Searching for setuptools-git>=0.4
Reading https://pypi.python.org/simple/setuptools_git/
Best match: setuptools-git 1.0
Downloading https://pypi.python.org/packages/source/s/setuptools-git/setuptools-git-1.0.tar.gz#md5=de63b541a10c2b83caa478c687458b16
Processing setuptools-git-1.0.tar.gz
Writing /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/temp/easy_install-DiTIER/setuptools-git-1.0/setup.cfg
Running setuptools-git-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/temp/easy_install-DiTIER/setuptools-git-1.0/egg-dist-tmp-3rZi35

Installed /tmp/easy_install-LCVLnq/virtualenvwrapper-4.1.1/setuptools_git-1.0-py2.7.egg
warning: no files found matching '*.html' under directory 'docs'
warning: no files found matching '*.css' under directory 'docs'
warning: no files found matching '*.js' under directory 'docs'
warning: no files found matching '*.png' under directory 'docs'
Adding virtualenvwrapper 4.1.1 to easy-install.pth file
Installing virtualenvwrapper_lazy.sh script to /home/kevin/.virtualenvs/wtf/bin
Installing virtualenvwrapper.sh script to /home/kevin/.virtualenvs/wtf/bin

Installed /home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/virtualenvwrapper-4.1.1-py2.7.egg
Searching for stevedore
Reading https://pypi.python.org/simple/stevedore/
Best match: stevedore 0.10
Downloading https://pypi.python.org/packages/source/s/stevedore/stevedore-0.10.tar.gz#md5=3c8fdc4ec460a4b3958eeb43ce147613
Processing stevedore-0.10.tar.gz
Writing /tmp/easy_install-wAkYuO/stevedore-0.10/setup.cfg
Running stevedore-0.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wAkYuO/stevedore-0.10/egg-dist-tmp-9XWrnT
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'namespace_packages'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    'Development Status :: 4 - Beta',
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/install.py", line 73, in run
    self.do_egg_install()
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/install.py", line 101, in do_egg_install
    cmd.run()
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 380, in run
    self.easy_install(spec, not self.no_deps)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 604, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 655, in install_item
    self.process_distribution(spec, dist, deps)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 706, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
    return self.obtain(req, installer) # try and download/install
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
    return installer(requirement)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 653, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 849, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1130, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1115, in run_setup
    run_setup(setup_script, args)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/sandbox.py", line 69, in run_setup
    lambda: execfile(
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/sandbox.py", line 120, in run
    return func()
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/sandbox.py", line 71, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 66, in <module>

  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 970, in run_command
    cmd_obj = self.get_command_obj(command)
  File "/usr/lib64/python2.7/distutils/dist.py", line 846, in get_command_obj
    cmd_obj = self.command_obj[command] = klass(self)
  File "/home/kevin/.virtualenvs/wtf/lib/python2.7/site-packages/setuptools/__init__.py", line 60, in __init__
    _Command.__init__(self,dist)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance

Comments (16)

  1. Ellis Percival

    Same here.

    STDOUT: Searching for virtualenvwrapper
    Reading http://pypi.python.org/simple/virtualenvwrapper/
    Best match: virtualenvwrapper 4.1.1
    Downloading https://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-4.1.1.tar.gz#md5=f18f2c612b936583a8ec0f7114b6637e
    Processing virtualenvwrapper-4.1.1.tar.gz
    Writing /tmp/easy_install-nSfK8i/virtualenvwrapper-4.1.1/setup.cfg
    Running virtualenvwrapper-4.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nSfK8i/virtualenvwrapper-4.1.1/egg-dist-tmp-Fs5_7G
    Checking .pth file support in .
    /usr/bin/python -E -c pass
    Searching for pbr>=0.5.19
    Reading http://pypi.python.org/simple/pbr/
    Best match: pbr 0.5.21
    Downloading https://pypi.python.org/packages/source/p/pbr/pbr-0.5.21.tar.gz#md5=1dafd1ef666b9bce4d880170ddc39387
    Processing pbr-0.5.21.tar.gz
    Writing /tmp/easy_install-nSfK8i/virtualenvwrapper-4.1.1/temp/easy_install-hkHVF6/pbr-0.5.21/setup.cfg
    Running pbr-0.5.21/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nSfK8i/virtualenvwrapper-4.1.1/temp/easy_install-hkHVF6/pbr-0.5.21/egg-dist-tmp-LoOLzA
    
    Installed /tmp/easy_install-nSfK8i/virtualenvwrapper-4.1.1/pbr-0.5.21-py2.7.egg
    Adding virtualenvwrapper 4.1.1 to easy-install.pth file
    Installing virtualenvwrapper_lazy.sh script to /usr/local/bin
    Installing virtualenvwrapper.sh script to /usr/local/bin
    
    Installed /usr/local/lib/python2.7/dist-packages/virtualenvwrapper-4.1.1-py2.7.egg
    Processing dependencies for virtualenvwrapper
    Searching for stevedore
    Reading http://pypi.python.org/simple/stevedore/
    Best match: stevedore 0.10
    Downloading https://pypi.python.org/packages/source/s/stevedore/stevedore-0.10.tar.gz#md5=3c8fdc4ec460a4b3958eeb43ce147613
    Processing stevedore-0.10.tar.gz
    Writing /tmp/easy_install-zZ7yUV/stevedore-0.10/setup.cfg
    Running stevedore-0.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zZ7yUV/stevedore-0.10/egg-dist-tmp-NKySdm
    STDERR: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'namespace_packages'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "/usr/local/bin/easy_install", line 9, in <module>
        load_entry_point('distribute==0.6.49', 'console_scripts', 'easy_install')()
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 1973, in main
        with_ei_usage(lambda:
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 1954, in with_ei_usage
        return f()
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 1977, in <lambda>
        distclass=DistributionWithoutHelpCommands, **kw
      File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 360, in run
        self.easy_install(spec, not self.no_deps)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 604, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 636, in install_item
        self.process_distribution(spec, dist, deps)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 688, in process_distribution
        [requirement], self.local_index, self.easy_install
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 588, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 833, in best_match
        return self.obtain(req, installer) # try and download/install
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 845, in obtain
        return installer(requirement)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 604, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 634, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 829, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 1109, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/command/easy_install.py", line 1095, in run_setup
        run_setup(setup_script, args)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/sandbox.py", line 33, in run_setup
        lambda: execfile(
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/sandbox.py", line 81, in run
        return func()
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/sandbox.py", line 35, in <lambda>
        {'__file__':setup_script, '__name__':'__main__'}
      File "setup.py", line 66, in <module>
      File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 970, in run_command
        cmd_obj = self.get_command_obj(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
        cmd_obj = self.command_obj[command] = klass(self)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/setuptools/__init__.py", line 70, in __init__
        _Command.__init__(self,dist)
      File "/usr/lib/python2.7/distutils/cmd.py", line 59, in __init__
        raise TypeError, "dist must be a Distribution instance"
    TypeError: dist must be a Distribution instance
    
  2. Phil Moore

    Does not install nicely with Python 3.3.3, under easy_install on Windows8. Takes three attempts, each seemingly resolving a missing dependency. This may be related is issue #208 - there is a copy of my command line output there.

  3. Doug Hellmann repo owner

    I suspect this was a setuptools/pbr issue. There have been several releases of both by now, so I'm closing this. If it is still a problem, please re-open.

  4. Kevin McCarthy reporter

    I can confirm that this is still happening with setuptools 5.1 and python 2.7. Something to note: If I require pbr directly as a depencency in my setup.py (and don't include virtualenvwrapper), it works fine. If I require virtualenvwrapper as in my example setup.py it fails.

    Using my setup.py from when I opened the issue:

    python -c "import setuptools;print(setuptools.__version__)"
    5.1
    
    python setup.py install
    python setup.py install
    running install
    running bdist_egg
    running egg_info
    creating VEW_Fail_Test.egg-info
    writing requirements to VEW_Fail_Test.egg-info/requires.txt
    writing VEW_Fail_Test.egg-info/PKG-INFO
    writing top-level names to VEW_Fail_Test.egg-info/top_level.txt
    writing dependency_links to VEW_Fail_Test.egg-info/dependency_links.txt
    writing manifest file 'VEW_Fail_Test.egg-info/SOURCES.txt'
    reading manifest file 'VEW_Fail_Test.egg-info/SOURCES.txt'
    writing manifest file 'VEW_Fail_Test.egg-info/SOURCES.txt'
    installing library code to build/bdist.macosx-10.9-x86_64/egg
    running install_lib
    warning: install_lib: 'build/lib' does not exist -- no Python modules to install
    
    creating build
    creating build/bdist.macosx-10.9-x86_64
    creating build/bdist.macosx-10.9-x86_64/egg
    creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
    copying VEW_Fail_Test.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
    copying VEW_Fail_Test.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
    copying VEW_Fail_Test.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
    copying VEW_Fail_Test.egg-info/requires.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
    copying VEW_Fail_Test.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
    zip_safe flag not set; analyzing archive contents...
    creating dist
    creating 'dist/VEW_Fail_Test-0.0.0-py2.7.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
    removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
    Processing VEW_Fail_Test-0.0.0-py2.7.egg
    Copying VEW_Fail_Test-0.0.0-py2.7.egg to /Users/kevin/test/lib/python2.7/site-packages
    Adding VEW-Fail-Test 0.0.0 to easy-install.pth file
    
    Installed /Users/kevin/test/lib/python2.7/site-packages/VEW_Fail_Test-0.0.0-py2.7.egg
    Processing dependencies for VEW-Fail-Test==0.0.0
    Searching for virtualenvwrapper
    Reading https://pypi.python.org/simple/virtualenvwrapper/
    Best match: virtualenvwrapper 4.3
    Downloading https://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-4.3.tar.gz#md5=d526bc0a2cca27d3d37e5c42a4511a1f
    Processing virtualenvwrapper-4.3.tar.gz
    Writing /var/folders/py/60ttmwgd62l8yp6r34jk29w00000gn/T/easy_install-0qd6ZC/virtualenvwrapper-4.3/setup.cfg
    Running virtualenvwrapper-4.3/setup.py -q bdist_egg --dist-dir /var/folders/py/60ttmwgd62l8yp6r34jk29w00000gn/T/easy_install-0qd6ZC/virtualenvwrapper-4.3/egg-dist-tmp-HvHTOd
    Searching for pbr
    Reading https://pypi.python.org/simple/pbr/
    Best match: pbr 0.8.2
    Downloading https://pypi.python.org/packages/source/p/pbr/pbr-0.8.2.tar.gz#md5=e634d42285755724ad3d75ebbc68173a
    Processing pbr-0.8.2.tar.gz
    Writing /var/folders/py/60ttmwgd62l8yp6r34jk29w00000gn/T/easy_install-0qd6ZC/virtualenvwrapper-4.3/temp/easy_install-JXaOAo/pbr-0.8.2/setup.cfg
    Running pbr-0.8.2/setup.py -q bdist_egg --dist-dir /var/folders/py/60ttmwgd62l8yp6r34jk29w00000gn/T/easy_install-0qd6ZC/virtualenvwrapper-4.3/temp/easy_install-JXaOAo/pbr-0.8.2/egg-dist-tmp-vvkjbC
    
    Installed /private/var/folders/py/60ttmwgd62l8yp6r34jk29w00000gn/T/easy_install-0qd6ZC/virtualenvwrapper-4.3/pbr-0.8.2-py2.7.egg
    Adding virtualenvwrapper 4.3 to easy-install.pth file
    Installing virtualenvwrapper_lazy.sh script to /Users/kevin/test/bin
    Installing virtualenvwrapper.sh script to /Users/kevin/test/bin
    
    Installed /Users/kevin/test/lib/python2.7/site-packages/virtualenvwrapper-4.3-py2.7.egg
    Searching for stevedore
    Reading https://pypi.python.org/simple/stevedore/
    Best match: stevedore 0.15
    Downloading https://pypi.python.org/packages/source/s/stevedore/stevedore-0.15.tar.gz#md5=437ee0a0168c78433b2b8faec0ae482d
    Processing stevedore-0.15.tar.gz
    Writing /var/folders/py/60ttmwgd62l8yp6r34jk29w00000gn/T/easy_install-mYjdu5/stevedore-0.15/setup.cfg
    Running stevedore-0.15/setup.py -q bdist_egg --dist-dir /var/folders/py/60ttmwgd62l8yp6r34jk29w00000gn/T/easy_install-mYjdu5/stevedore-0.15/egg-dist-tmp-uJ0hJf
    /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
      warnings.warn(msg)
    /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'pbr'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "setup.py", line 11, in <module>
        'Development Status :: 4 - Beta',
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/install.py", line 65, in run
        self.do_egg_install()
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/install.py", line 115, in do_egg_install
        cmd.run()
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 360, in run
        self.easy_install(spec, not self.no_deps)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 576, in easy_install
        return self.install_item(None, spec, tmpdir, deps, True)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 627, in install_item
        self.process_distribution(spec, dist, deps)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 675, in process_distribution
        [requirement], self.local_index, self.easy_install
      File "/Users/kevin/test/lib/python2.7/site-packages/pkg_resources.py", line 631, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/Users/kevin/test/lib/python2.7/site-packages/pkg_resources.py", line 871, in best_match
        return self.obtain(req, installer)
      File "/Users/kevin/test/lib/python2.7/site-packages/pkg_resources.py", line 883, in obtain
        return installer(requirement)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 595, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 625, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 811, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1024, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1009, in run_setup
        run_setup(setup_script, args)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/sandbox.py", line 50, in run_setup
        lambda: execfile(
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/sandbox.py", line 100, in run
        return func()
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/sandbox.py", line 52, in <lambda>
        {'__file__':setup_script, '__name__':'__main__'}
      File "setup.py", line 14, in <module>
    
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 970, in run_command
        cmd_obj = self.get_command_obj(command)
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
        cmd_obj = self.command_obj[command] = klass(self)
      File "/Users/kevin/test/lib/python2.7/site-packages/setuptools/__init__.py", line 125, in __init__
        _Command.__init__(self,dist)
      File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 59, in __init__
        raise TypeError, "dist must be a Distribution instance"
    TypeError: dist must be a Distribution instance
    
  5. Log in to comment