Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda index gives a KeyError: timestamp #3560

Closed
mcs07 opened this issue Jun 21, 2019 · 1 comment · Fixed by #3561
Closed

conda index gives a KeyError: timestamp #3560

mcs07 opened this issue Jun 21, 2019 · 1 comment · Fixed by #3561
Labels
locked [bot] locked due to inactivity

Comments

@mcs07
Copy link
Contributor

mcs07 commented Jun 21, 2019

Actual Behavior

conda index gives a KeyError:

conda index
Traceback (most recent call last):
  File "/opt/anaconda/bin/conda-index", line 11, in <module>
    sys.exit(main())
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/cli/main_index.py", line 91, in main
    return execute(sys.argv[1:])
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/cli/main_index.py", line 87, in execute
    current_index_versions=args.current_index_versions_file)
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/api.py", line 401, in update_index
    subdirs=ensure_list(subdir), current_index_versions=current_index_versions)
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/index.py", line 312, in update_index
    current_index_versions=current_index_versions)
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/index.py", line 857, in index
    self._update_channeldata(channel_data, patched_repodata, subdir)
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/index.py", line 1258, in _update_channeldata
    for pkg_name, pkg_tuples in package_groups.items()]
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/index.py", line 1258, in <listcomp>
    for pkg_name, pkg_tuples in package_groups.items()]
  File "/opt/anaconda/lib/python3.7/site-packages/conda_build/index.py", line 1257, in <lambda>
    package_groups = [next(iter(sorted(pkg_tuples, key=lambda x: x[1]['timestamp'])))
KeyError: 'timestamp'

Expected Behavior

Successful conda index.

Steps to Reproduce

Run conda index with conda-build v3.18.3.

No problem with conda-build v3.18.2. Could be related to #3528?

Output of conda info
     active environment : None
            shell level : 0
       user config file : /root/.condarc
 populated config files : /opt/anaconda/.condarc
                          /root/.condarc
          conda version : 4.6.14
    conda-build version : 3.18.3
         python version : 3.7.3.final.0
       base environment : /opt/anaconda  (writable)
           channel URLs : <private channel>/linux-64
                          <private channel>/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/schrodinger/linux-64
                          https://conda.anaconda.org/schrodinger/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/anaconda/pkgs
                          /root/.conda/pkgs
       envs directories : /opt/anaconda/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/4.6.14 requests/2.22.0 CPython/3.7.3 Linux/3.13.0-147-generic ubuntu/14.04.6 glibc/2.19
                UID:GID : 0:0
             netrc file : None
           offline mode : False
@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically locked because it has not had recent activity after being closed.

Please open a new issue if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant