It is really weird because I am using Python3.1 and easy_installed distribute-0.6.13 right now. The difference I can tell you is that I had setuptools installation: Setuptools installation detected at /home/hugo/.../site-packages
On Tue, Jul 13, 2010 at 7:56 PM, Michael Foord <fuzzy...@voidspace.org.uk> wrote: > I get the following error attempting to install distribute 0.6.13 with > Python 3.0 / 3.1: > > python3.0 setup.py install > creating build > creating build/src > creating build/src/docs > creating build/src/docs/_templates > > creating build/src/docs/_theme > creating build/src/docs/_theme/nature > creating build/src/docs/_theme/nature/static > creating build/src/setuptools > creating build/src/setuptools/command > creating build/src/setuptools/tests > > creating build/src/tests > creating build/src/tests/shlib_test > copying setuptools/__init__.py -> build/src/setuptools > copying setuptools/archive_util.py -> build/src/setuptools > copying setuptools/depends.py -> build/src/setuptools > > copying setuptools/dist.py -> build/src/setuptools > copying setuptools/extension.py -> build/src/setuptools > copying setuptools/package_index.py -> build/src/setuptools > copying setuptools/sandbox.py -> build/src/setuptools > > copying setuptools/tests/__init__.py -> build/src/setuptools/tests > copying setuptools/tests/doctest.py -> build/src/setuptools/tests > copying setuptools/tests/server.py -> build/src/setuptools/tests > copying setuptools/tests/test_build_ext.py -> build/src/setuptools/tests > > copying setuptools/tests/test_develop.py -> build/src/setuptools/tests > copying setuptools/tests/test_easy_install.py -> build/src/setuptools/tests > copying setuptools/tests/test_packageindex.py -> build/src/setuptools/tests > > copying setuptools/tests/test_resources.py -> build/src/setuptools/tests > copying setuptools/tests/test_sandbox.py -> build/src/setuptools/tests > copying setuptools/tests/test_upload_docs.py -> build/src/setuptools/tests > > copying setuptools/command/__init__.py -> build/src/setuptools/command > copying setuptools/command/alias.py -> build/src/setuptools/command > copying setuptools/command/bdist_egg.py -> build/src/setuptools/command > > copying setuptools/command/bdist_rpm.py -> build/src/setuptools/command > copying setuptools/command/bdist_wininst.py -> build/src/setuptools/command > copying setuptools/command/build_ext.py -> build/src/setuptools/command > > copying setuptools/command/build_py.py -> build/src/setuptools/command > copying setuptools/command/develop.py -> build/src/setuptools/command > copying setuptools/command/easy_install.py -> build/src/setuptools/command > > copying setuptools/command/easy_install2.py -> build/src/setuptools/command > copying setuptools/command/egg_info.py -> build/src/setuptools/command > copying setuptools/command/install.py -> build/src/setuptools/command > > copying setuptools/command/install_egg_info.py -> > build/src/setuptools/command > copying setuptools/command/install_lib.py -> build/src/setuptools/command > copying setuptools/command/install_scripts.py -> > build/src/setuptools/command > > copying setuptools/command/register.py -> build/src/setuptools/command > copying setuptools/command/rotate.py -> build/src/setuptools/command > copying setuptools/command/saveopts.py -> build/src/setuptools/command > > copying setuptools/command/sdist.py -> build/src/setuptools/command > copying setuptools/command/setopt.py -> build/src/setuptools/command > copying setuptools/command/test.py -> build/src/setuptools/command > > copying setuptools/command/upload.py -> build/src/setuptools/command > copying setuptools/command/upload_docs.py -> build/src/setuptools/command > copying setuptools/tests/win_script_wrapper.txt -> > build/src/setuptools/tests > > copying setuptools/cli.exe -> build/src/setuptools > copying setuptools/gui.exe -> build/src/setuptools > copying tests/install_test.py -> build/src/tests > copying tests/manual_test.py -> build/src/tests > > copying tests/test_distribute_setup.py -> build/src/tests > copying tests/shlib_test/setup.py -> build/src/tests/shlib_test > copying tests/shlib_test/test_hello.py -> build/src/tests/shlib_test > copying tests/shlib_test/hello.c -> build/src/tests/shlib_test > > copying tests/shlib_test/hellolib.c -> build/src/tests/shlib_test > copying tests/shlib_test/hello.pyx -> build/src/tests/shlib_test > copying tests/api_tests.txt -> build/src/tests > RefactoringTool: Skipping implicit fixer: buffer > > RefactoringTool: Skipping implicit fixer: idioms > RefactoringTool: Skipping implicit fixer: set_literal > RefactoringTool: Skipping implicit fixer: ws_comma > --- build/src/tests/api_tests.txt (original) > +++ build/src/tests/api_tests.txt (refactored) > > @@ -39,7 +39,7 @@ > >>> dist.py_version == sys.version[:3] > True > > - >>> print dist.platform > + >>> print(dist.platform) > None > > Including various computed attributes:: > > @@ -199,7 +199,7 @@ > You can ask a WorkingSet to ``find()`` a distribution matching a > requirement:: > > >>> from pkg_resources import Requirement > - >>> print ws.find(Requirement.parse("Foo==1.0")) # no match, return > None > > + >>> print(ws.find(Requirement.parse("Foo==1.0"))) # no match, return > None > None > > >>> ws.find(Requirement.parse("Bar==0.9")) # match, return > distribution > > @@ -211,7 +211,7 @@ > >>> try: > ... ws.find(Requirement.parse("Bar==1.0")) > ... except VersionConflict: > - ... print 'ok' > + ... print('ok') > > ok > > You can subscribe a callback function to receive notifications whenever a > new > @@ -219,7 +219,7 @@ > once for each existing distribution in the working set, and then is called > again for new distributions added thereafter:: > > > - >>> def added(dist): print "Added", dist > + >>> def added(dist): print("Added", dist) > >>> ws.subscribe(added) > Added Bar 0.9 > >>> foo12 = Distribution(project_name="Foo", version="1.2", > location="f12") > > RefactoringTool: Files that were modified: > RefactoringTool: build/src/tests/api_tests.txt > copying docs/conf.py -> build/src/docs > copying docs/easy_install.txt -> build/src/docs > copying docs/index.txt -> build/src/docs > > copying docs/pkg_resources.txt -> build/src/docs > copying docs/python3.txt -> build/src/docs > copying docs/roadmap.txt -> build/src/docs > copying docs/setuptools.txt -> build/src/docs > copying docs/using.txt -> build/src/docs > > copying docs/_theme/nature/theme.conf -> build/src/docs/_theme/nature > copying docs/_theme/nature/static/pygments.css -> > build/src/docs/_theme/nature/static > copying docs/_theme/nature/static/nature.css_t -> > build/src/docs/_theme/nature/static > > copying docs/Makefile -> build/src/docs > copying docs/_templates/indexsidebar.html -> build/src/docs/_templates > copying distribute_setup.py -> build/src > copying easy_install.py -> build/src > copying pkg_resources.py -> build/src > > copying setup.py -> build/src > copying site.py -> build/src > copying CHANGES.txt -> build/src > copying CONTRIBUTORS.txt -> build/src > copying DEVGUIDE.txt -> build/src > copying pip-log.txt -> build/src > > copying README.txt -> build/src > copying MANIFEST.in -> build/src > copying launcher.c -> build/src > Skipping implicit fixer: buffer > Skipping implicit fixer: idioms > Skipping implicit fixer: set_literal > > Skipping implicit fixer: ws_comma > Before install bootstrap. > Scanning installed packages > No setuptools distribution found > running install > Traceback (most recent call last): > File "setup.py", line 211, in <module> > > scripts = scripts, > File > "/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/distutils/core.py", > line 149, in setup > dist.run_commands() > File > "/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/distutils/dist.py", > line 942, in run_commands > > self.run_command(cmd) > File > "/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/distutils/dist.py", > line 962, in run_command > cmd_obj.run() > File "build/src/setuptools/command/install.py", line 73, in run > > self.do_egg_install() > File "build/src/setuptools/command/install.py", line 82, in do_egg_install > easy_install = self.distribution.get_command_class('easy_install') > File "build/src/setuptools/dist.py", line 361, in get_command_class > > self.cmdclass[command] = cmdclass = ep.load() > File "build/src/pkg_resources.py", line 1954, in load > entry = __import__(self.module_name, globals(),globals(), ['__name__']) > File "build/src/setuptools/command/easy_install.py", line 16, in <module> > > from setuptools.sandbox import run_setup > File "build/src/setuptools/sandbox.py", line 232, in <module> > WRITE_FLAGS = reduce( > NameError: name 'reduce' is not defined > bigmac:distribute-0.6.13 michael$ python3.1 setup.py install > > Before install bootstrap. > Scanning installed packages > No setuptools distribution found > running install > Traceback (most recent call last): > File "setup.py", line 211, in <module> > scripts = scripts, > > File > "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/core.py", > line 149, in setup > dist.run_commands() > File > "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", > line 919, in run_commands > > self.run_command(cmd) > File > "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", > line 938, in run_command > cmd_obj.run() > File "build/src/setuptools/command/install.py", line 73, in run > > self.do_egg_install() > File "build/src/setuptools/command/install.py", line 82, in do_egg_install > easy_install = self.distribution.get_command_class('easy_install') > File "build/src/setuptools/dist.py", line 361, in get_command_class > > self.cmdclass[command] = cmdclass = ep.load() > File "build/src/pkg_resources.py", line 1954, in load > entry = __import__(self.module_name, globals(),globals(), ['__name__']) > File "build/src/setuptools/command/easy_install.py", line 16, in <module> > > from setuptools.sandbox import run_setup > File "build/src/setuptools/sandbox.py", line 232, in <module> > WRITE_FLAGS = reduce( > NameError: name 'reduce' is not defined > > > -- > http://www.voidspace.org.uk > > > > _______________________________________________ > Distutils-SIG maillist - distutils-...@python.org > http://mail.python.org/mailman/listinfo/distutils-sig > > _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig