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

clone issue in 4.0.0 #2178

Closed
adamgreenhall opened this issue Mar 5, 2016 · 11 comments
Closed

clone issue in 4.0.0 #2178

adamgreenhall opened this issue Mar 5, 2016 · 11 comments
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type

Comments

@adamgreenhall
Copy link

getting this error with conda==4.0.0. conda==3.19.3 works just fine.

$ conda create -y -n shiny_new_env --clone root
Fetching package metadata: ....
src_prefix: '/srv/conda'
dst_prefix: '/srv/conda/envs/shiny_new_env'
Packages: 97
Files: 6350
An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub issue tracker at:

    https://github.com/conda/conda/issues

Include the output of the command 'conda info' in your report.

Traceback (most recent call last):
  File "/srv/conda/bin/conda", line 6, in <module>
    sys.exit(main())
  File "/srv/conda/lib/python2.7/site-packages/conda/cli/main.py", line 139, in main
    args_func(args, p)
  File "/srv/conda/lib/python2.7/site-packages/conda/cli/main.py", line 146, in args_func
    args.func(args, p)
  File "/srv/conda/lib/python2.7/site-packages/conda/cli/main_create.py", line 49, in execute
    install.install(args, parser, 'create')
  File "/srv/conda/lib/python2.7/site-packages/conda/cli/install.py", line 247, in install
    clone(args.clone, prefix, json=args.json, quiet=args.quiet, index=index)
  File "/srv/conda/lib/python2.7/site-packages/conda/cli/install.py", line 84, in clone
    quiet=quiet, index=index)
  File "/srv/conda/lib/python2.7/site-packages/conda/misc.py", line 243, in clone_env
    sorted_dists = r.dependency_sort(dists)
  File "/srv/conda/lib/python2.7/site-packages/conda/resolve.py", line 716, in dependency_sort
    for key, value in iteritems(must_have):
  File "/srv/conda/lib/python2.7/site-packages/conda/compat.py", line 157, in iteritems
    return iter(getattr(d, _iteritems)())
AttributeError: 'list' object has no attribute 'iteritems'

$ conda info
Current conda install:

             platform : linux-64
        conda version : 4.0.0
  conda-build version : not installed
       python version : 2.7.11.final.0
     requests version : 2.5.0
     root environment : /srv/conda  (read only)
  default environment : /srv/conda
         channel URLs : https://repo.continuum.io/pkgs/free/linux-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/linux-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : None
    is foreign system : False
@adamgreenhall adamgreenhall changed the title clone doesn't work clone issue in 4.0.0 Mar 5, 2016
@ilanschnell
Copy link
Contributor

CC @kalefranz

@ilanschnell ilanschnell added the type::bug describes erroneous operation, use severity::* to classify the type label Mar 5, 2016
@ilanschnell
Copy link
Contributor

Thanks for posting this issue. The conda 4.0 release was a big deal, and brought many changes with it. Even though we have done more the usual testing, and two public beta releases, we missed this issue. We will probably release conda 4.0.1 on Monday or Tuesday.

@mcg1969
Copy link
Contributor

mcg1969 commented Mar 5, 2016

Looks like it is the same issue as #2160, which was closed because it seemed like updating conda fixed it. But it looks like there are some circumstances where it is still an issue. @ilanschnell, I think the problem is that resolve.dependency_sort is expecting a dictionary of packages---package names as keys, dists as values---but the clone function seems to be sending it a list instead.

@kalefranz
Copy link
Contributor

This stack trace has been fixed in 4.0.1.

@adamgreenhall
Copy link
Author

thanks!

@mcg1969
Copy link
Contributor

mcg1969 commented Mar 7, 2016

Fix in preparation.

@mcg1969
Copy link
Contributor

mcg1969 commented Mar 8, 2016

Fix here: #2193

@edurand
Copy link

edurand commented Mar 8, 2016

Thanks! When will this be released?

@mcg1969
Copy link
Contributor

mcg1969 commented Mar 8, 2016

4.0.2 I assume, do not know the timeline

@kalefranz
Copy link
Contributor

Should be fixed with today's 4.0.2 release.

@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity type::bug describes erroneous operation, use severity::* to classify the type
Projects
None yet
Development

No branches or pull requests

5 participants