installation fails

Issue #14 invalid
Eelco Hoogendoorn
created an issue

Installation fails for me (anaconda python 2.7.3).

Note: I get the same result for both easy_install as pip. Seems like an internal bug in my distutils; but that seems difficult to believe. Perhaps it means something to you?

C:\Docs\AE\testcode>easy_install gipc
Searching for gipc
Reading http://pypi.python.org/simple/gipc/
Best match: gipc 0.4.0
Downloading https://pypi.python.org/packages/source/g/gipc/gipc-0.4.0.zip#md5=60
398322fb0c8f661796783a17d086e2
Processing gipc-0.4.0.zip
Writing c:\users\eelco\appdata\local\temp\easy_install-1g_mv0\gipc-0.4.0\setup.c
fg
Running gipc-0.4.0\setup.py -q bdist_egg --dist-dir c:\users\eelco\appdata\local
\temp\easy_install-1g_mv0\gipc-0.4.0\egg-dist-tmp-atjsjc
zip_safe flag not set; analyzing archive contents...
Adding gipc 0.4.0 to easy-install.pth file

Installed c:\anaconda\lib\site-packages\gipc-0.4.0-py2.7.egg
Processing dependencies for gipc
Searching for gevent>=1.0
Reading http://pypi.python.org/simple/gevent/
Best match: gevent 1.0.1
Downloading https://pypi.python.org/packages/source/g/gevent/gevent-1.0.1.tar.gz
#md5=7b952591d1a0174d6eb6ac47bd975ab6
Processing gevent-1.0.1.tar.gz
Writing c:\users\eelco\appdata\local\temp\easy_install-sjtwrx\gevent-1.0.1\setup
.cfg
Running gevent-1.0.1\setup.py -q bdist_egg --dist-dir c:\users\eelco\appdata\loc
al\temp\easy_install-sjtwrx\gevent-1.0.1\egg-dist-tmp-hxbw2p
Traceback (most recent call last):
  File "C:\Anaconda\Scripts\easy_install-script.py", line 5, in <module>
    sys.exit(main())
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
1949, in main
    with_ei_usage(lambda:
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
1930, in with_ei_usage
    return f()
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
1953, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "C:\Anaconda\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Anaconda\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Anaconda\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
358, in run
    self.easy_install(spec, not self.no_deps)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
598, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
630, in install_item
    self.process_distribution(spec, dist, deps)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
682, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "C:\Anaconda\lib\site-packages\pkg_resources.py", line 586, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "C:\Anaconda\lib\site-packages\pkg_resources.py", line 831, in best_match

    return self.obtain(req, installer) # try and download/install
  File "C:\Anaconda\lib\site-packages\pkg_resources.py", line 843, in obtain
    return installer(requirement)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
598, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
628, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
823, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
1103, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "C:\Anaconda\lib\site-packages\setuptools\command\easy_install.py", line
1089, in run_setup
    run_setup(setup_script, args)
  File "C:\Anaconda\lib\site-packages\setuptools\sandbox.py", line 33, in run_se
tup
    lambda: execfile(
  File "C:\Anaconda\lib\site-packages\setuptools\sandbox.py", line 81, in run
    return func()
  File "C:\Anaconda\lib\site-packages\setuptools\sandbox.py", line 35, in <lambd
a>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 316, in <module>
  File "setup.py", line 311, in run_setup
  File "C:\Anaconda\lib\distutils\core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "C:\Anaconda\lib\site-packages\setuptools\dist.py", line 225, in __init__

    _Distribution.__init__(self,attrs)
  File "C:\Anaconda\lib\distutils\dist.py", line 287, in __init__
    self.finalize_options()
  File "C:\Anaconda\lib\site-packages\setuptools\dist.py", line 258, in finalize
_options
    ep.load()(self, ep.name, value)
  File "C:\Anaconda\lib\site-packages\pkg_resources.py", line 2013, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "C:\Anaconda\lib\site-packages\setuptools_cython.py", line 21, in <module
>
    class build_cython(Cython.Distutils.build_ext, object):
AttributeError: 'module' object has no attribute 'Distutils'

Comments (2)

  1. Jan-Philip Gehrcke repo owner

    Pip does not even reach gipc installation in your case. Your gevent installation is failing already. But you also should not report this to the gevent issue tracker, because your setup is "broken". I recommend setting up a clean environment using virtualenv, which pulls fresh pip/setuptools code which you can then use -- independently of the possibly old and screwed packaging environment provided by your anaconda.

    Closing this now.

  2. Log in to comment