Skip to content

pysetup run bdist_wininst does not work (tries to use "install" command) #57391

Closed

Description

@pfmoore
BPO 13182
Nosy @pfmoore, @vsajip, @tarekziade, @merwok
Superseder
  • bpo-13151: pysetup3 run bdist_wininst fails
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/tarekziade'
    closed_at = <Date 2011-10-15.15:36:13.652>
    created_at = <Date 2011-10-14.18:26:11.162>
    labels = ['type-bug', 'library']
    title = 'pysetup run bdist_wininst does not work (tries to use "install" command)'
    updated_at = <Date 2011-10-17.12:23:13.850>
    user = 'https://github.com/pfmoore'

    bugs.python.org fields:

    activity = <Date 2011-10-17.12:23:13.850>
    actor = 'eric.araujo'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2011-10-15.15:36:13.652>
    closer = 'vinay.sajip'
    components = ['Library (Lib)', 'Distutils2']
    creation = <Date 2011-10-14.18:26:11.162>
    creator = 'paul.moore'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 13182
    keywords = []
    message_count = 2.0
    messages = ['145555', '145594']
    nosy_count = 5.0
    nosy_names = ['paul.moore', 'vinay.sajip', 'tarek', 'eric.araujo', 'alexis']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13151'
    type = 'behavior'
    url = 'https://bugs.python.org/issue13182'
    versions = ['Python 3.3']

    Activity

    1. pfmoore commented on Oct 14, 2011

      @pfmoore
      MemberAuthor
      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
          cmd_obj.run()
        File "D:\Data\cpython\lib\packaging\command\bdist_wininst.py", line 119, in run
          reinit_subcommands=True)
        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

    2. vsajip commented on Oct 15, 2011

      @vsajip
      Member

      Closing as a duplicate of bpo-13151, which also identifies other problems with this command.

    3. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Oct 15, 2011
    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions