Skip to content

Interrupting conda-pypi seems to break it forever #140

@ryanskeith

Description

@ryanskeith

Description

It seems if the processes is interrupted during the install, that the user gets to an unrecoverable state if the user attempts the installation again:

conda pypi install steam
Inspecting pypi and conda dependencies
PYPI index channels:
 - https://pypi.org/simple/
Conda channels:
 - file:///Users/rkeith/Library/Application%20Support/conda-pypi
 - main
 - r
 - defaults
Converting required pypi packages: \ failed

CondaError: KeyboardInterrupt

(base)  ✘ rkeith@MacBookPro  ~/code/conda-pypi   main  conda pypi install steam
Inspecting pypi and conda dependencies
PYPI index channels:
 - https://pypi.org/simple/
Conda channels:
 - file:///Users/rkeith/Library/Application%20Support/conda-pypi
 - main
 - r
 - defaults
Converting required pypi packages: done

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/Users/rkeith/altmc/lib/python3.12/site-packages/conda/exception_handler.py", line 28, in __call__
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rkeith/altmc/lib/python3.12/site-packages/conda/cli/main.py", line 61, in main_subshell
        exit_code = do_call(args, parser)
                    ^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rkeith/altmc/lib/python3.12/site-packages/conda/cli/conda_argparse.py", line 181, in do_call
        result = plugin_subcommand.action(getattr(args, "_args", args))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rkeith/code/conda-pypi/conda_pypi/cli/main.py", line 70, in execute
        return execute_install(args)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rkeith/code/conda-pypi/conda_pypi/cli/install.py", line 99, in execute
        packages_to_install = changes[1]
                              ~~~~~~~^^^
    TypeError: 'NoneType' object is not subscriptable

`$ /Users/rkeith/altmc/bin/conda pypi install steam`

  environment variables:
                 CIO_TEST=<not set>
CONDA_ADD_PIP_AS_PYTHON_DEPENDENCY=0
    CONDA_ALLOW_SOFTLINKS=false
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/Users/rkeith/altmc/bin/conda
             CONDA_PREFIX=/Users/rkeith/altmc
           CONDA_PREFIX_1=/Users/rkeith/altmc
           CONDA_PREFIX_2=/Users/rkeith/altmc/envs/conda-build
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/Users/rkeith/altmc/bin/python
               CONDA_ROOT=/Users/rkeith/altmc
              CONDA_SHLVL=3
           CURL_CA_BUNDLE=<not set>
                 INFOPATH=/opt/homebrew/share/info:
               LD_PRELOAD=<not set>
                     PATH=/Users/rkeith/altmc/bin:/Users/rkeith/miniconda3/condabin:/opt/homebre
                          w/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:
                          /usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/cod
                          ex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd
                          /codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/c
                          odex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Us
                          ers/rkeith/.local/bin:/Applications/iTerm.app/Contents/Resources/utili
                          ties
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : /Users/rkeith/altmc
            shell level : 3
       user config file : /Users/rkeith/.condarc
 populated config files : /Users/rkeith/altmc/.condarc
                          /Users/rkeith/.condarc
          conda version : 25.9.0
    conda-build version : 25.9.0
         python version : 3.12.11.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=m1
                          __conda=25.9.0=0
                          __osx=15.6.1=0
                          __unix=0=0
       base environment : /Users/rkeith/altmc  (writable)
      conda av data dir : /Users/rkeith/altmc/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/main/osx-arm64
                          https://conda.anaconda.org/main/noarch
                          https://conda.anaconda.org/r/osx-arm64
                          https://conda.anaconda.org/r/noarch
                          https://repo.anaconda.com/pkgs/main/osx-arm64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-arm64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/rkeith/altmc/pkgs
                          /Users/rkeith/.conda/pkgs
       envs directories : /Users/rkeith/altmc/envs
                          /Users/rkeith/.conda/envs
               platform : osx-arm64
             user-agent : conda/25.9.0 requests/2.32.4 CPython/3.12.11 Darwin/24.6.0 OSX/15.6.1 solver/libmamba conda-libmamba-solver/25.4.0 libmambapy/2.0.5
                UID:GID : 502:20
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]: N

No report sent. To permanently opt-out, use

    $ conda config --set report_errors false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions