Issue #276 invalid

Install instructions won't install

Anonymous created an issue

I get this error, using python 3.2.2:

C:\Python32\Lib\distribute-0.6.25>python setup.py install warning: no files found matching 'Makefile' under directory 'docs' warning: no files found matching 'indexsidebar.html' under directory 'docs' creating build\src\build creating build\src\build\src creating build\src\build\src.hg creating build\src\build\src\distribute.egg-info creating build\src\build\src\distribute creating build\src\build\src\distribute\build creating build\src\build\src\distribute\build\lib creating build\src\build\src\distribute\build\lib\distribute creating build\src\build\src\distribute\build\lib\distribute\command creating build\src\build\src\distribute\build\lib\distribute\core creating build\src\build\src\docs creating build\src\build\src\docs\build creating build\src\build\src\docs\build\html creating build\src\build\src\docs\build\html_sources creating build\src\build\src\setuptools creating build\src\build\src\setuptools\command creating build\src\build\src\setuptools\tests creating build\src\build\src\tests creating build\src\build\src\tests\shlib_test copying build\src\distribute_setup.py -> build\src\build\src copying build\src\easy_install.py -> build\src\build\src copying build\src\pkg_resources.py -> build\src\build\src copying build\src\release.py -> build\src\build\src copying build\src\setup.py -> build\src\build\src copying build\src\site.py -> build\src\build\src copying build\src\tests\install_test.py -> build\src\build\src\tests copying build\src\tests\manual_test.py -> build\src\build\src\tests copying build\src\tests\test_distribute_setup.py -> build\src\build\src\tests copying build\src\tests\shlib_test\setup.py -> build\src\build\src\tests\shlib_test copying build\src\tests\shlib_test\test_hello.py -> build\src\build\src\tests\shlib_test copying build\src\setuptools\archive_util.py -> build\src\build\src\setuptools copying build\src\setuptools\depends.py -> build\src\build\src\setuptools copying build\src\setuptools\dist.py -> build\src\build\src\setuptools copying build\src\setuptools\extension.py -> build\src\build\src\setuptools copying build\src\setuptools\package_index.py -> build\src\build\src\setuptools copying build\src\setuptools\sandbox.py -> build\src\build\src\setuptools copying build\src\setuptools\script template (dev).py -> build\src\build\src\setuptools copying build\src\setuptools\script template.py -> build\src\build\src\setuptools copying build\src\setuptools__init.py -> build\src\build\src\setuptools copying build\src\setuptools\tests\doctest.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\server.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\test_build_ext.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\test_develop.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\test_easy_install.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\test_packageindex.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\test_resources.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\test_sandbox.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests\test_upload_docs.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\tests__init.py -> build\src\build\src\setuptools\tests copying build\src\setuptools\command\alias.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\bdist_egg.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\bdist_rpm.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\bdist_wininst.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\build_ext.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\build_py.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\develop.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\easy_install.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\egg_info.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\install.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\install_egg_info.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\install_lib.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\install_scripts.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\register.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\rotate.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\saveopts.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\sdist.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\setopt.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\test.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\upload.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command\upload_docs.py -> build\src\build\src\setuptools\command copying build\src\setuptools\command__init.py -> build\src\build\src\setuptools\command copying build\src\docs\conf.py -> build\src\build\src\docs copying build\src\distribute\build\lib\distribute__init.py -> build\src\build\src\distribute\build\lib\distribut e copying build\src\distribute\build\lib\distribute\core\archive_util.py -> build\src\build\src\distribute\build\lib\ distribute\core copying build\src\distribute\build\lib\distribute\core\util.py -> build\src\build\src\distribute\build\lib\distribu te\core copying build\src\distribute\build\lib\distribute\core__init.py -> build\src\build\src\distribute\build\lib\dist ribute\core copying build\src\distribute\build\lib\distribute\command\build_egg_info.py -> build\src\build\src\distribute\build \lib\distribute\command copying build\src\distribute\build\lib\distribute\command\develop.py -> build\src\build\src\distribute\build\lib\di stribute\command copying build\src\distribute\build\lib\distribute\command\install_egg_info.py -> build\src\build\src\distribute\bui ld\lib\distribute\command copying build\src\distribute\build\lib\distribute\command__init.py -> build\src\build\src\distribute\build\lib\d istribute\command copying build\src\CHANGES.txt -> build\src\build\src copying build\src\CONTRIBUTORS.txt -> build\src\build\src copying build\src\DEVGUIDE.txt -> build\src\build\src copying build\src\README.txt -> build\src\build\src copying build\src\tests\api_tests.txt -> build\src\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 RefactoringTool: Refactored build\src\tests\api_tests.txt --- 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 @@ -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 build\src\setuptools\tests\win_script_wrapper.txt -> build\src\build\src\setuptools\tests copying build\src\docs\easy_install.txt -> build\src\build\src\docs copying build\src\docs\index.txt -> build\src\build\src\docs copying build\src\docs\pkg_resources.txt -> build\src\build\src\docs copying build\src\docs\python3.txt -> build\src\build\src\docs copying build\src\docs\roadmap.txt -> build\src\build\src\docs copying build\src\docs\setuptools.txt -> build\src\build\src\docs copying build\src\docs\using.txt -> build\src\build\src\docs copying build\src\docs\build\html_sources\easy_install.txt -> build\src\build\src\docs\build\html_sources copying build\src\docs\build\html_sources\index.txt -> build\src\build\src\docs\build\html_sources copying build\src\docs\build\html_sources\pkg_resources.txt -> build\src\build\src\docs\build\html_sources copying build\src\docs\build\html_sources\python3.txt -> build\src\build\src\docs\build\html_sources copying build\src\docs\build\html_sources\roadmap.txt -> build\src\build\src\docs\build\html_sources copying build\src\docs\build\html_sources\setuptools.txt -> build\src\build\src\docs\build\html_sources copying build\src\docs\build\html_sources\using.txt -> build\src\build\src\docs\build\html_sources copying build\src\distribute.egg-info\dependency_links.txt -> build\src\build\src\distribute.egg-info copying build\src\distribute.egg-info\entry_points.txt -> build\src\build\src\distribute.egg-info copying build\src\distribute.egg-info\SOURCES.txt -> build\src\build\src\distribute.egg-info copying build\src\distribute.egg-info\top_level.txt -> build\src\build\src\distribute.egg-info copying build\src.hg\last-message.txt -> build\src\build\src.hg Skipping implicit fixer: buffer Skipping implicit fixer: idioms Skipping implicit fixer: set_literal Skipping implicit fixer: ws_comma Can't parse build\src\build\src\setuptools\sandbox.py: ParseError: bad input: type=1, value='exec', context=(' ', ( 31, 24)) Traceback (most recent call last): File "setup.py", line 37, in <module> exec(open(init_path).read(), d) File "<string>", line 8, in <module> File "build\src\setuptools__init.py", line 2, in <module> from setuptools.extension import Extension, Library File "build\src\setuptools\extension.py", line 2, in <module> from setuptools.dist import _get_unpatched File "build\src\setuptools\dist.py", line 6, in <module> from setuptools.command.install import install File "build\src\setuptools\command__init.py", line 8, in <module> from setuptools.command import install_scripts File "build\src\setuptools\command\install_scripts.py", line 3, in <module> from pkg_resources import Distribution, PathMetadata, ensure_directory File "build\src\pkg_resources.py", line 2732, in <module> add_activation_listener(lambda dist: dist.activate()) File "build\src\pkg_resources.py", line 704, in subscribe callback(dist) File "build\src\pkg_resources.py", line 2732, in <lambda> add_activation_listener(lambda dist: dist.activate()) File "build\src\pkg_resources.py", line 2232, in activate self.insert_on(path) File "build\src\pkg_resources.py", line 2333, in insert_on "with distribute. Found one at %s" % str(self.location)) ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at c:\python32\lib\site-packages \setuptools-0.7a1dev_r66-py3.2.egg

Comments (1)

  1. Jason R. Coombs

    The error output you included has this message at the end:

    ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at c:\python32\lib\site-packages\setuptools-0.7a1dev_r66-py3.2.egg
    

    This suggests that you have a later version of setuptools which Distribute can't patch.

    You should remove setuptools 0.7 before attempting to install distribute. Please re-open if the indication is in error (that is, setuptools 0.7 isn't in fact installed), or if installing distribute on a clean Python installation somehow causes this error on its own.

  2. Log in to comment