Error during easy_install

Create issue
Issue #143 resolved
Denis Defreyne created an issue

A {{{sudo easy_install hgsubversion}}} fails with the following error:

{{{ Searching for hgsubversion Reading http://pypi.python.org/simple/hgsubversion/ Reading http://bitbucket.org/durin42/hgsubversion Best match: hgsubversion 1.0 Downloading http://pypi.python.org/packages/source/h/hgsubversion/hgsubversion-1.0.tar.gz#md5=52b3e26667cf7b222569a81242632cfa Processing hgsubversion-1.0.tar.gz Running hgsubversion-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2dMlwI/hgsubversion-1.0/egg-dist-tmp-8XmQN9 Traceback (most recent call last): File "/usr/bin/easy_install-2.6", line 10, in <module> load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')() File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 1671, in main with_ei_usage(lambda: File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 1659, in with_ei_usage return f() File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 1675, in <lambda> distclass=DistributionWithoutHelpCommands, **kw File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 211, in run self.easy_install(spec, not self.no_deps) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 446, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 476, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 655, in install_eggs return self.build_and_install(setup_script, setup_base) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 930, in build_and_install self.run_setup(setup_script, setup_base, args) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 919, in run_setup run_setup(setup_script, args) File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/sandbox.py", line 27, in run_setup lambda: execfile( File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/sandbox.py", line 63, in run return func() File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/sandbox.py", line 29, in <lambda> {'file':setup_script, 'name':'main'} File "setup.py", line 86, in <module> File "/tmp/easy_install-2dMlwI/hgsubversion-1.0/hgsubversion/init.py", line 27, in <module> File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 12, in <module> import hg, util, revlog, bundlerepo, extensions, copies, error File "/Library/Python/2.6/site-packages/mercurial/hg.py", line 11, in <module> import localrepo, bundlerepo, httprepo, sshrepo, statichttprepo File "/Library/Python/2.6/site-packages/mercurial/httprepo.py", line 11, in <module> import repo, changegroup, statichttprepo, error, url, util File "/Library/Python/2.6/site-packages/mercurial/statichttprepo.py", line 11, in <module> import changelog, byterange, url, error File "/Library/Python/2.6/site-packages/mercurial/url.py", line 234, in <module> class httpsendfile(file): TypeError: Error when calling the metaclass bases first argument must be callable }}}

Comments (2)

  1. Augie Fackler repo owner

    easy_install replaces the file builtin with something that isn't a class. Not sure how to workaround this, as we really do need to import hgsubversion.__version__...

  2. Log in to comment