This package cannot be safely installed by EasyInstall

Bug #1264090 reported by Axel Walker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ZODB
New
Undecided
Unassigned

Bug Description

I tried installing ZODB on Python 3.3 64-bit under Windows. It failed with this message:
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

Full error message:

Error occurred when installing packages.

The following command was executed:

packaging_tool.py install --build-dir C:\Users\Owner\AppData\Local\Temp\pycharm-packaging1505568906058819947.tmp ZODB

The error output of the command:

Downloading/unpacking ZODB
  Running setup.py egg_info for package ZODB
    Traceback (most recent call last):
      File "C:\Python33x64CGScipySt\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 929, in run_commands
        self.run_command(cmd)
      File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 948, in run_command
        cmd_obj.run()
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\bdist_egg.py", line 177, in run
        self.run_command("egg_info")
      File "C:\Python33x64CGScipySt\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 948, in run_command
        cmd_obj.run()
      File "<string>", line 14, in replacement_run
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\egg_info.py", line 261, in find_sources
        mm.run()
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\egg_info.py", line 327, in run
        self.add_defaults()
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\egg_info.py", line 363, in add_defaults
        sdist.add_defaults(self)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\sdist.py", line 205, in add_defaults
        build_py = self.get_finalized_command('build_py')
      File "C:\Python33x64CGScipySt\lib\distutils\cmd.py", line 298, in get_finalized_command
        cmd_obj = self.distribution.get_command_obj(command, create)
      File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 820, in get_command_obj
        klass = self.get_command_class(command)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 363, in get_command_class
        self.cmdclass[command] = cmdclass = ep.load()
      File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 2108, in load
        entry = __import__(self.module_name, globals(),globals(), ['__name__'])
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\build_py.py", line 10, in <module>
        from lib2to3.refactor import RefactoringTool, get_fixers_from_package
      File "C:\Python33x64CGScipySt\lib\lib2to3\refactor.py", line 27, in <module>
        from .fixer_util import find_root
      File "C:\Python33x64CGScipySt\lib\lib2to3\fixer_util.py", line 9, in <module>
        from .pygram import python_symbols as syms
      File "C:\Python33x64CGScipySt\lib\lib2to3\pygram.py", line 32, in <module>
        python_grammar = driver.load_grammar(_GRAMMAR_FILE)
      File "C:\Python33x64CGScipySt\lib\lib2to3\pgen2\driver.py", line 125, in load_grammar
        g.dump(gp)
      File "C:\Python33x64CGScipySt\lib\lib2to3\pgen2\grammar.py", line 89, in dump
        f = open(filename, "wb")
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 240, in _open
        self._violation("open", path, mode, *args, **kw)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 230, in _violation
        raise SandboxViolation(operation, args, kw)
    setuptools.sandbox.SandboxViolation: SandboxViolation: open('C:\\Python33x64CGScipySt\\lib\\lib2to3\\Grammar3.3.3.final.0.pickle', 'wb') {}

    The package setup script has attempted to modify files on your system
    that are not within the EasyInstall build area, and has been aborted.

    This package cannot be safely installed by EasyInstall, and may not
    support alternate installation locations even if you run its setup
    script by hand. Please inform the package's author and the EasyInstall
    maintainers to find out if a fix or workaround is available.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 1016, in run_setup
        run_setup(setup_script, args)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 69, in run_setup
        lambda: execfile(
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 120, in run
        return func()
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 71, in <lambda>
        {'__file__':setup_script, '__name__':'__main__'}
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\compat.py", line 92, in execfile
        exec_(compile(source, fn, 'exec'), globs, locs)
      File "setup.py", line 109, in <module>
        if filename.endswith('.py') and filename.startswith('test'):
      File "C:\Python33x64CGScipySt\lib\distutils\core.py", line 165, in setup
        raise SystemExit("error: " + str(msg))
    SystemExit: error: SandboxViolation: open('C:\\Python33x64CGScipySt\\lib\\lib2to3\\Grammar3.3.3.final.0.pickle', 'wb') {}

    The package setup script has attempted to modify files on your system
    that are not within the EasyInstall build area, and has been aborted.

    This package cannot be safely installed by EasyInstall, and may not
    support alternate installation locations even if you run its setup
    script by hand. Please inform the package's author and the EasyInstall
    maintainers to find out if a fix or workaround is available.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "C:\Users\Owner\AppData\Local\Temp\pycharm-packaging1505568906058819947.tmp\ZODB\setup.py", line 170, in <module>
        include_package_data = True,
      File "C:\Python33x64CGScipySt\lib\distutils\core.py", line 109, in setup
        _setup_distribution = dist = klass(attrs)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 239, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 263, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 568, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 806, in best_match
        return self.obtain(req, installer) # try and download/install
      File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 818, in obtain
        return installer(requirement)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 313, in fetch_build_egg
        return cmd.easy_install(req)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 609, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 639, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 825, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 1031, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 1019, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: open('C:\\Python33x64CGScipySt\\lib\\lib2to3\\Grammar3.3.3.final.0.pickle', 'wb') {}

    The package setup script has attempted to modify files on your system
    that are not within the EasyInstall build area, and has been aborted.

    This package cannot be safely installed by EasyInstall, and may not
    support alternate installation locations even if you run its setup
    script by hand. Please inform the package's author and the EasyInstall
    maintainers to find out if a fix or workaround is available.
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "C:\Python33x64CGScipySt\lib\distutils\core.py", line 148, in setup

    dist.run_commands()

  File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 929, in run_commands

    self.run_command(cmd)

  File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 948, in run_command

    cmd_obj.run()

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\bdist_egg.py", line 177, in run

    self.run_command("egg_info")

  File "C:\Python33x64CGScipySt\lib\distutils\cmd.py", line 313, in run_command

    self.distribution.run_command(command)

  File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 948, in run_command

    cmd_obj.run()

  File "<string>", line 14, in replacement_run

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\egg_info.py", line 261, in find_sources

    mm.run()

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\egg_info.py", line 327, in run

    self.add_defaults()

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\egg_info.py", line 363, in add_defaults

    sdist.add_defaults(self)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\sdist.py", line 205, in add_defaults

    build_py = self.get_finalized_command('build_py')

  File "C:\Python33x64CGScipySt\lib\distutils\cmd.py", line 298, in get_finalized_command

    cmd_obj = self.distribution.get_command_obj(command, create)

  File "C:\Python33x64CGScipySt\lib\distutils\dist.py", line 820, in get_command_obj

    klass = self.get_command_class(command)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 363, in get_command_class

    self.cmdclass[command] = cmdclass = ep.load()

  File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 2108, in load

    entry = __import__(self.module_name, globals(),globals(), ['__name__'])

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\build_py.py", line 10, in <module>

    from lib2to3.refactor import RefactoringTool, get_fixers_from_package

  File "C:\Python33x64CGScipySt\lib\lib2to3\refactor.py", line 27, in <module>

    from .fixer_util import find_root

  File "C:\Python33x64CGScipySt\lib\lib2to3\fixer_util.py", line 9, in <module>

    from .pygram import python_symbols as syms

  File "C:\Python33x64CGScipySt\lib\lib2to3\pygram.py", line 32, in <module>

    python_grammar = driver.load_grammar(_GRAMMAR_FILE)

  File "C:\Python33x64CGScipySt\lib\lib2to3\pgen2\driver.py", line 125, in load_grammar

    g.dump(gp)

  File "C:\Python33x64CGScipySt\lib\lib2to3\pgen2\grammar.py", line 89, in dump

    f = open(filename, "wb")

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 240, in _open

    self._violation("open", path, mode, *args, **kw)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 230, in _violation

    raise SandboxViolation(operation, args, kw)

setuptools.sandbox.SandboxViolation: SandboxViolation: open('C:\\Python33x64CGScipySt\\lib\\lib2to3\\Grammar3.3.3.final.0.pickle', 'wb') {}

The package setup script has attempted to modify files on your system

that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not

support alternate installation locations even if you run its setup

script by hand. Please inform the package's author and the EasyInstall

maintainers to find out if a fix or workaround is available.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 1016, in run_setup

    run_setup(setup_script, args)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 69, in run_setup

    lambda: execfile(

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 120, in run

    return func()

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\sandbox.py", line 71, in <lambda>

    {'__file__':setup_script, '__name__':'__main__'}

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\compat.py", line 92, in execfile

    exec_(compile(source, fn, 'exec'), globs, locs)

  File "setup.py", line 109, in <module>

    if filename.endswith('.py') and filename.startswith('test'):

  File "C:\Python33x64CGScipySt\lib\distutils\core.py", line 165, in setup

    raise SystemExit("error: " + str(msg))

SystemExit: error: SandboxViolation: open('C:\\Python33x64CGScipySt\\lib\\lib2to3\\Grammar3.3.3.final.0.pickle', 'wb') {}

The package setup script has attempted to modify files on your system

that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not

support alternate installation locations even if you run its setup

script by hand. Please inform the package's author and the EasyInstall

maintainers to find out if a fix or workaround is available.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "C:\Users\Owner\AppData\Local\Temp\pycharm-packaging1505568906058819947.tmp\ZODB\setup.py", line 170, in <module>

    include_package_data = True,

  File "C:\Python33x64CGScipySt\lib\distutils\core.py", line 109, in setup

    _setup_distribution = dist = klass(attrs)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 239, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 263, in fetch_build_eggs

    parse_requirements(requires), installer=self.fetch_build_egg

  File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 568, in resolve

    dist = best[req.key] = env.best_match(req, self, installer)

  File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 806, in best_match

    return self.obtain(req, installer) # try and download/install

  File "C:\Python33x64CGScipySt\lib\site-packages\pkg_resources.py", line 818, in obtain

    return installer(requirement)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\dist.py", line 313, in fetch_build_egg

    return cmd.easy_install(req)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 609, in easy_install

    return self.install_item(spec, dist.location, tmpdir, deps)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 639, in install_item

    dists = self.install_eggs(spec, download, tmpdir)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 825, in install_eggs

    return self.build_and_install(setup_script, setup_base)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 1031, in build_and_install

    self.run_setup(setup_script, setup_base, args)

  File "C:\Python33x64CGScipySt\lib\site-packages\setuptools\command\easy_install.py", line 1019, in run_setup

    raise DistutilsError("Setup script exited with %s" % (v.args[0],))

distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: open('C:\\Python33x64CGScipySt\\lib\\lib2to3\\Grammar3.3.3.final.0.pickle', 'wb') {}

The package setup script has attempted to modify files on your system

that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not

support alternate installation locations even if you run its setup

script by hand. Please inform the package's author and the EasyInstall

maintainers to find out if a fix or workaround is available.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\Users\Owner\AppData\Local\Temp\pycharm-packaging1505568906058819947.tmp\ZODB
Storing complete log in C:\Users\Owner\pip\pip.log

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.