[New-bugs-announce] [issue13182] pysetup run bdist_wininst does not work (tries to use "install" command)

Paul Moore report at bugs.python.org
Fri Oct 14 20:26:11 CEST 2011

New submission from Paul Moore <p.f.moore at gmail.com>:

PS D:\Data\python-sample\python> pysetup run bdist_wininst
running bdist_wininst
running build
running build_py
Invalid command install
Traceback (most recent call last):
  File "D:\Data\cpython\lib\packaging\command\__init__.py", line 57, in get_command_class
    cls = _COMMANDS[name]
KeyError: 'install'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Data\cpython\lib\packaging\run.py", line 653, in main
    return dispatcher()
  File "D:\Data\cpython\lib\packaging\run.py", line 642, in __call__
    return func(self, self.args)
  File "D:\Data\cpython\lib\packaging\run.py", line 91, in wrapper
    return f(*args, **kwargs)
  File "D:\Data\cpython\lib\packaging\run.py", line 288, in _run
    dist.run_command(cmd, dispatcher.command_options[cmd])
  File "D:\Data\cpython\lib\packaging\dist.py", line 709, in run_command
  File "D:\Data\cpython\lib\packaging\command\bdist_wininst.py", line 119, in run
  File "D:\Data\cpython\lib\packaging\command\cmd.py", line 323, in get_reinitialized_command
    command, reinit_subcommands)
  File "D:\Data\cpython\lib\packaging\dist.py", line 660, in get_reinitialized_command
    command = self.get_command_obj(command_name)
  File "D:\Data\cpython\lib\packaging\dist.py", line 583, in get_command_obj
    cls = get_command_class(command)
  File "D:\Data\cpython\lib\packaging\command\__init__.py", line 59, in get_command_class
    raise PackagingModuleError("Invalid command %s" % name)
packaging.errors.PackagingModuleError: Invalid command install

Looking at bdist_wininst.py (line 118) it is indeed trying to use an "install" command, which is not present in command\__init__.py

assignee: tarek
components: Distutils2
messages: 145555
nosy: alexis, eric.araujo, pmoore, tarek
priority: normal
severity: normal
status: open
title: pysetup run bdist_wininst does not work (tries to use "install" command)
type: behavior
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list