after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def execute(args, parser): prefix = context.prefix_w_legacy_search regex = args.regex if args.full_name: regex = r"^%s$" % regex if args.revisions: from ..history import History h = History(prefix) if isfile(h.path): if not context.json: h.print_log() else: stdout_json(h.object_log()) else: raise CondaFileNotFoundError(h.path) return if args.explicit: print_explicit(prefix, args.md5) return if args.canonical: format = "canonical" elif args.export: format = "export" else: format = "human" if context.json: format = "canonical" exitcode = print_packages( prefix, regex, format, piplist=args.pip, json=context.json, show_channel_urls=context.show_channel_urls, ) return exitcode
def execute(args, parser): prefix = context.prefix_w_legacy_search regex = args.regex if args.full_name: regex = r"^%s$" % regex if args.revisions: from conda.history import History h = History(prefix) if isfile(h.path): if not context.json: h.print_log() else: stdout_json(h.object_log()) else: raise CondaFileNotFoundError(h.path) return if args.explicit: print_explicit(prefix, args.md5) return if args.canonical: format = "canonical" elif args.export: format = "export" else: format = "human" if context.json: format = "canonical" exitcode = print_packages( prefix, regex, format, piplist=args.pip, json=context.json, show_channel_urls=context.show_channel_urls, ) return exitcode
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def execute(args, parser): from ..core.linked_data import linked_data from ..gateways.disk.delete import rm_rf from ..instructions import PREFIX from ..plan import ( add_unlink, display_actions, execute_actions, is_root_prefix, nothing_to_do, remove_actions, ) if not (args.all or args.package_names): raise CondaValueError( 'no package names supplied,\n try "conda remove -h" for more details' ) prefix = context.prefix_w_legacy_search if args.all and prefix == context.default_prefix: msg = "cannot remove current environment. deactivate and run conda remove again" raise CondaEnvironmentError(msg) check_write("remove", prefix, json=context.json) ensure_use_local(args) ensure_override_channels_requires_channel(args) if not args.features and args.all: index = linked_data(prefix) index = {dist: info for dist, info in iteritems(index)} else: index = get_index( channel_urls=context.channels, prepend=not args.override_channels, use_local=args.use_local, use_cache=args.use_index_cache, prefix=prefix, ) specs = None if args.features: specs = ["@" + f for f in set(args.package_names)] actions = remove_actions(prefix, specs, index, pinned=args.pinned) action_groups = (actions,) elif args.all: if is_root_prefix(prefix): raise CondaEnvironmentError( "cannot remove root environment,\n" " add -n NAME or -p PREFIX option" ) actions = {PREFIX: prefix} for dist in sorted(iterkeys(index)): add_unlink(actions, dist) action_groups = (actions,) else: specs = specs_from_args(args.package_names) r = Resolve(index) prefix_spec_map = create_prefix_spec_map_with_deps(r, specs, prefix) if ( context.conda_in_root and is_root_prefix(prefix) and names_in_specs(ROOT_NO_RM, specs) and not args.force ): raise CondaEnvironmentError( "cannot remove %s from root environment" % ", ".join(ROOT_NO_RM) ) actions = [] for prfx, spcs in iteritems(prefix_spec_map): index = linked_data(prfx) index = {dist: info for dist, info in iteritems(index)} actions.append( remove_actions( prfx, list(spcs), index=index, force=args.force, pinned=args.pinned ) ) action_groups = tuple(actions) delete_trash() if any(nothing_to_do(actions) for actions in action_groups): if args.all: print( "\nRemove all packages in environment %s:\n" % prefix, file=sys.stderr ) if not context.json: confirm_yn(args) rm_rf(prefix) if context.json: stdout_json({"success": True, "actions": action_groups}) return error_message = "no packages found to remove from environment: %s" % prefix raise PackageNotFoundError(error_message) for action in action_groups: if not context.json: print() print( "Package plan for package removal in environment %s:" % action["PREFIX"] ) display_actions(action, index) if context.json and args.dry_run: stdout_json({"success": True, "dry_run": True, "actions": action_groups}) return if not context.json: confirm_yn(args) for actions in action_groups: if context.json and not context.quiet: with json_progress_bars(): execute_actions(actions, index, verbose=not context.quiet) else: execute_actions(actions, index, verbose=not context.quiet) if specs: try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# remove specs: %s\n" % ",".join(specs)) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise target_prefix = actions["PREFIX"] if ( is_private_env(prefix_to_env_name(target_prefix, context.root_prefix)) and linked_data(target_prefix) == {} ): rm_rf(target_prefix) if args.all: rm_rf(prefix) if context.json: stdout_json({"success": True, "actions": actions})
def execute(args, parser): import conda.plan as plan import conda.instructions as inst from conda.gateways.disk.delete import rm_rf from conda.core.linked_data import linked_data if not (args.all or args.package_names): raise CondaValueError( 'no package names supplied,\n try "conda remove -h" for more details' ) prefix = context.prefix_w_legacy_search if args.all and prefix == context.default_prefix: msg = "cannot remove current environment. deactivate and run conda remove again" raise CondaEnvironmentError(msg) check_write("remove", prefix, json=context.json) ensure_use_local(args) ensure_override_channels_requires_channel(args) if not args.features and args.all: index = linked_data(prefix) index = {dist: info for dist, info in iteritems(index)} else: index = get_index( channel_urls=context.channels, prepend=not args.override_channels, use_local=args.use_local, use_cache=args.use_index_cache, prefix=prefix, ) specs = None if args.features: specs = ["@" + f for f in set(args.package_names)] actions = plan.remove_actions(prefix, specs, index, pinned=args.pinned) action_groups = (actions,) elif args.all: if plan.is_root_prefix(prefix): raise CondaEnvironmentError( "cannot remove root environment,\n" " add -n NAME or -p PREFIX option" ) actions = {inst.PREFIX: prefix} for dist in sorted(iterkeys(index)): plan.add_unlink(actions, dist) action_groups = (actions,) else: specs = specs_from_args(args.package_names) r = Resolve(index) prefix_spec_map = create_prefix_spec_map_with_deps(r, specs, prefix) if ( context.conda_in_root and plan.is_root_prefix(prefix) and names_in_specs(ROOT_NO_RM, specs) and not args.force ): raise CondaEnvironmentError( "cannot remove %s from root environment" % ", ".join(ROOT_NO_RM) ) actions = [] for prfx, spcs in iteritems(prefix_spec_map): index = linked_data(prfx) index = {dist: info for dist, info in iteritems(index)} actions.append( plan.remove_actions( prfx, list(spcs), index=index, force=args.force, pinned=args.pinned ) ) action_groups = tuple(actions) delete_trash() if any(plan.nothing_to_do(actions) for actions in action_groups): if args.all: print( "\nRemove all packages in environment %s:\n" % prefix, file=sys.stderr ) if not context.json: confirm_yn(args) rm_rf(prefix) if context.json: stdout_json({"success": True, "actions": action_groups}) return error_message = "no packages found to remove from environment: %s" % prefix raise PackageNotFoundError(error_message) for action in action_groups: if not context.json: print() print( "Package plan for package removal in environment %s:" % action["PREFIX"] ) plan.display_actions(action, index) if context.json and args.dry_run: stdout_json({"success": True, "dry_run": True, "actions": action_groups}) return if not context.json: confirm_yn(args) for actions in action_groups: if context.json and not context.quiet: with json_progress_bars(): plan.execute_actions(actions, index, verbose=not context.quiet) else: plan.execute_actions(actions, index, verbose=not context.quiet) if specs: try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# remove specs: %s\n" % ",".join(specs)) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise target_prefix = actions["PREFIX"] if ( is_private_env(prefix_to_env_name(target_prefix, context.root_prefix)) and linked_data(target_prefix) == {} ): rm_rf(target_prefix) if args.all: rm_rf(prefix) if context.json: stdout_json({"success": True, "actions": actions})
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def execute_search(args, parser): import re from ..resolve import Resolve if args.reverse_dependency: if not args.regex: parser.error("--reverse-dependency requires at least one package name") if args.spec: parser.error("--reverse-dependency does not work with --spec") pat = None ms = None if args.regex: if args.spec: ms = MatchSpec(arg2spec(args.regex)) else: regex = args.regex if args.full_name: regex = r"^%s$" % regex try: pat = re.compile(regex, re.I) except re.error as e: raise CommandArgumentError( "Failed to compile regex pattern for " "search: %(regex)s\n" "regex error: %(regex_error)s", regex=regex, regex_error=repr(e), ) prefix = context.prefix_w_legacy_search from ..core.linked_data import linked as linked_data from ..core.package_cache import PackageCache linked = linked_data(prefix) extracted = set( pc_entry.dist.name for pc_entry in PackageCache.get_all_extracted_entries() ) # XXX: Make this work with more than one platform platform = args.platform or "" if platform and platform != context.subdir: args.unknown = False ensure_use_local(args) ensure_override_channels_requires_channel(args, dashc=False) index = get_index( channel_urls=context.channels, prepend=not args.override_channels, platform=args.platform, use_local=args.use_local, use_cache=args.use_index_cache, prefix=None, unknown=args.unknown, ) r = Resolve(index) if args.canonical: json = [] else: json = {} names = [] for name in sorted(r.groups): if "@" in name: continue res = [] if args.reverse_dependency: res = [ dist for dist in r.get_dists_for_spec(name) if any(pat.search(dep.name) for dep in r.ms_depends(dist)) ] elif ms is not None: if ms.name == name: res = r.get_dists_for_spec(ms) elif pat is None or pat.search(name): res = r.get_dists_for_spec(name) if res: names.append((name, res)) for name, pkgs in names: disp_name = name if args.names_only and not args.outdated: print(name) continue if not args.canonical: json[name] = [] if args.outdated: vers_inst = [dist.quad[1] for dist in linked if dist.quad[0] == name] if not vers_inst: continue assert len(vers_inst) == 1, name if not pkgs: continue latest = pkgs[-1] if latest.version == vers_inst[0]: continue if args.names_only: print(name) continue for dist in pkgs: index_record = r.index[dist] if args.canonical: if not context.json: print(dist.dist_name) else: json.append(dist.dist_name) continue if platform and platform != context.subdir: inst = " " elif dist in linked: inst = "*" elif dist in extracted: inst = "." else: inst = " " features = r.features(dist) if not context.json: print( "%-25s %s %-15s %15s %-15s %s" % ( disp_name, inst, index_record.version, index_record.build, index_record.schannel, disp_features(features), ) ) disp_name = "" else: data = {} data.update(index_record.dump()) data.update( { "fn": index_record.fn, "installed": inst == "*", "extracted": inst in "*.", "version": index_record.version, "build": index_record.build, "build_number": index_record.build_number, "channel": index_record.schannel, "full_channel": index_record.channel, "features": list(features), "license": index_record.get("license"), "size": index_record.get("size"), "depends": index_record.get("depends"), "type": index_record.get("type"), } ) if data["type"] == "app": data["icon"] = make_icon_url(index_record.info) json[name].append(data) if context.json: stdout_json(json)
def execute_search(args, parser): import re from conda.resolve import Resolve if args.reverse_dependency: if not args.regex: parser.error("--reverse-dependency requires at least one package name") if args.spec: parser.error("--reverse-dependency does not work with --spec") pat = None ms = None if args.regex: if args.spec: ms = MatchSpec(arg2spec(args.regex)) else: regex = args.regex if args.full_name: regex = r"^%s$" % regex try: pat = re.compile(regex, re.I) except re.error as e: raise CommandArgumentError( "Failed to compile regex pattern for " "search: %(regex)s\n" "regex error: %(regex_error)s", regex=regex, regex_error=repr(e), ) prefix = context.prefix_w_legacy_search from ..core.linked_data import linked as linked_data from ..core.package_cache import PackageCache linked = linked_data(prefix) extracted = set( pc_entry.dist.name for pc_entry in PackageCache.get_all_extracted_entries() ) # XXX: Make this work with more than one platform platform = args.platform or "" if platform and platform != context.subdir: args.unknown = False ensure_use_local(args) ensure_override_channels_requires_channel(args, dashc=False) index = get_index( channel_urls=context.channels, prepend=not args.override_channels, platform=args.platform, use_local=args.use_local, use_cache=args.use_index_cache, prefix=None, unknown=args.unknown, ) r = Resolve(index) if args.canonical: json = [] else: json = {} names = [] for name in sorted(r.groups): if "@" in name: continue res = [] if args.reverse_dependency: res = [ dist for dist in r.get_dists_for_spec(name) if any(pat.search(dep.name) for dep in r.ms_depends(dist)) ] elif ms is not None: if ms.name == name: res = r.get_dists_for_spec(ms) elif pat is None or pat.search(name): res = r.get_dists_for_spec(name) if res: names.append((name, res)) for name, pkgs in names: disp_name = name if args.names_only and not args.outdated: print(name) continue if not args.canonical: json[name] = [] if args.outdated: vers_inst = [dist.quad[1] for dist in linked if dist.quad[0] == name] if not vers_inst: continue assert len(vers_inst) == 1, name if not pkgs: continue latest = pkgs[-1] if latest.version == vers_inst[0]: continue if args.names_only: print(name) continue for dist in pkgs: index_record = r.index[dist] if args.canonical: if not context.json: print(dist.dist_name) else: json.append(dist.dist_name) continue if platform and platform != context.subdir: inst = " " elif dist in linked: inst = "*" elif dist in extracted: inst = "." else: inst = " " features = r.features(dist) if not context.json: print( "%-25s %s %-15s %15s %-15s %s" % ( disp_name, inst, index_record.version, index_record.build, index_record.schannel, disp_features(features), ) ) disp_name = "" else: data = {} data.update(index_record.dump()) data.update( { "fn": index_record.fn, "installed": inst == "*", "extracted": inst in "*.", "version": index_record.version, "build": index_record.build, "build_number": index_record.build_number, "channel": index_record.schannel, "full_channel": index_record.channel, "features": list(features), "license": index_record.get("license"), "size": index_record.get("size"), "depends": index_record.get("depends"), "type": index_record.get("type"), } ) if data["type"] == "app": data["icon"] = make_icon_url(index_record.info) json[name].append(data) if context.json: stdout_json(json)
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def get_local_urls(): from .models.channel import get_conda_build_local_url return get_conda_build_local_url() or []
def get_local_urls(): from conda.models.channel import get_conda_build_local_url return get_conda_build_local_url() or []
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def add_binstar_token(url): clean_url, token = split_anaconda_token(url) if not token and context.add_anaconda_token: for binstar_url, token in iteritems(read_binstar_tokens()): if clean_url.startswith(binstar_url): log.debug("Adding anaconda token for url <%s>", clean_url) from .models.channel import Channel channel = Channel(clean_url) channel.token = token return channel.url(with_credentials=True) return url
def add_binstar_token(url): clean_url, token = split_anaconda_token(url) if not token and context.add_anaconda_token: for binstar_url, token in iteritems(read_binstar_tokens()): if clean_url.startswith(binstar_url): log.debug("Adding anaconda token for url <%s>", clean_url) from conda.models.channel import Channel channel = Channel(clean_url) channel.token = token return channel.url(with_credentials=True) return url
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def print_conda_exception(exception): from .base.context import context stdoutlogger = getLogger("stdout") stderrlogger = getLogger("stderr") if context.json: import json stdoutlogger.info( json.dumps( exception.dump_map(), indent=2, sort_keys=True, cls=EntityEncoder ) ) else: stderrlogger.info("\n\n%r", exception)
def print_conda_exception(exception): from conda.base.context import context stdoutlogger = getLogger("stdout") stderrlogger = getLogger("stderr") if context.json: import json stdoutlogger.info( json.dumps( exception.dump_map(), indent=2, sort_keys=True, cls=EntityEncoder ) ) else: stderrlogger.info("\n\n%r", exception)
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def print_unexpected_error_message(e): # bomb = "\U0001F4A3 " # explosion = "\U0001F4A5 " # fire = "\U0001F525 " # print("%s %s %s" % (3*bomb, 3*explosion, 3*fire)) traceback = format_exc() stderrlogger = getLogger("stderr") from .base.context import context if context.json: from .cli.common import stdout_json stdout_json(dict(error=traceback)) else: message = """\ An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues """ stderrlogger.info(message) command = " ".join(sys.argv) if " info" not in command: from .cli.main_info import get_info_dict, get_main_info_str stderrlogger.info(get_main_info_str(get_info_dict())) stderrlogger.info("`$ {0}`".format(command)) stderrlogger.info("\n") stderrlogger.info("\n".join(" " + line for line in traceback.splitlines()))
def print_unexpected_error_message(e): # bomb = "\U0001F4A3 " # explosion = "\U0001F4A5 " # fire = "\U0001F525 " # print("%s %s %s" % (3*bomb, 3*explosion, 3*fire)) traceback = format_exc() stderrlogger = getLogger("stderr") from conda.base.context import context if context.json: from conda.cli.common import stdout_json stdout_json(dict(error=traceback)) else: message = """\ An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues """ stderrlogger.info(message) command = " ".join(sys.argv) if " info" not in command: # get and print `conda info` info_stdout, info_stderr = get_info() stderrlogger.info(info_stdout if info_stdout else info_stderr) stderrlogger.info("`$ {0}`".format(command)) stderrlogger.info("\n") stderrlogger.info("\n".join(" " + line for line in traceback.splitlines()))
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def handle_exception(e): if isinstance(e, CondaExitZero): return 0 elif isinstance(e, CondaError): from .base.context import context if context.debug or context.verbosity > 0: print_unexpected_error_message(e) else: print_conda_exception(e) return 1 else: print_unexpected_error_message(e) return 1
def handle_exception(e): if isinstance(e, CondaExitZero): return 0 elif isinstance(e, CondaError): from conda.base.context import context if context.debug or context.verbosity > 0: print_unexpected_error_message(e) else: print_conda_exception(e) return 1 else: print_unexpected_error_message(e) return 1
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def win_conda_bat_redirect(src, dst, shell): """Special function for Windows XP where the `CreateSymbolicLink` function is not available. Simply creates a `.bat` file at `dst` which calls `src` together with all command line arguments. Works of course only with callable files, e.g. `.bat` or `.exe` files. """ from .utils import shells try: makedirs(dirname(dst)) except OSError as exc: # Python >2.5 if exc.errno == EEXIST and isdir(dirname(dst)): pass else: raise # bat file redirect if not isfile(dst + ".bat"): with open(dst + ".bat", "w") as f: f.write('@echo off\ncall "%s" %%*\n' % src) # TODO: probably need one here for powershell at some point # This one is for bash/cygwin/msys # set default shell to bash.exe when not provided, as that's most common if not shell: shell = "bash.exe" # technically these are "links" - but islink doesn't work on win if not isfile(dst): with open(dst, "w") as f: f.write("#!/usr/bin/env bash \n") if src.endswith("conda"): f.write('%s "$@"' % shells[shell]["path_to"](src + ".exe")) else: f.write('source %s "$@"' % shells[shell]["path_to"](src)) # Make the new file executable # http://stackoverflow.com/a/30463972/1170370 mode = stat(dst).st_mode mode |= (mode & 292) >> 2 # copy R bits to X chmod(dst, mode)
def win_conda_bat_redirect(src, dst, shell): """Special function for Windows XP where the `CreateSymbolicLink` function is not available. Simply creates a `.bat` file at `dst` which calls `src` together with all command line arguments. Works of course only with callable files, e.g. `.bat` or `.exe` files. """ from conda.utils import shells try: makedirs(dirname(dst)) except OSError as exc: # Python >2.5 if exc.errno == EEXIST and isdir(dirname(dst)): pass else: raise # bat file redirect if not isfile(dst + ".bat"): with open(dst + ".bat", "w") as f: f.write('@echo off\ncall "%s" %%*\n' % src) # TODO: probably need one here for powershell at some point # This one is for bash/cygwin/msys # set default shell to bash.exe when not provided, as that's most common if not shell: shell = "bash.exe" # technically these are "links" - but islink doesn't work on win if not isfile(dst): with open(dst, "w") as f: f.write("#!/usr/bin/env bash \n") if src.endswith("conda"): f.write('%s "$@"' % shells[shell]["path_to"](src + ".exe")) else: f.write('source %s "$@"' % shells[shell]["path_to"](src)) # Make the new file executable # http://stackoverflow.com/a/30463972/1170370 mode = stat(dst).st_mode mode |= (mode & 292) >> 2 # copy R bits to X chmod(dst, mode)
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def execute(args, parser): from ..base.context import context if args.root: if context.json: stdout_json({"root_prefix": context.root_prefix}) else: print(context.root_prefix) return if args.packages: print_package_info(args.packages) return if args.unsafe_channels: if not context.json: print("\n".join(context.channels)) else: print(json.dumps({"channels": context.channels})) return 0 options = "envs", "system", "license" if args.all or context.json: for option in options: setattr(args, option, True) info_dict = get_info_dict(args.system) if ( args.all or all(not getattr(args, opt) for opt in options) ) and not context.json: print(get_main_info_str(info_dict)) if args.envs: handle_envs_list(info_dict["envs"], not context.json) if args.system: if not context.json: from .find_commands import find_commands, find_executable print("sys.version: %s..." % (sys.version[:40])) print("sys.prefix: %s" % sys.prefix) print("sys.executable: %s" % sys.executable) print("conda location: %s" % info_dict["conda_location"]) for cmd in sorted(set(find_commands() + ["build"])): print("conda-%s: %s" % (cmd, find_executable("conda-" + cmd))) print("user site dirs: ", end="") site_dirs = get_user_site() if site_dirs: print(site_dirs[0]) else: print() for site_dir in site_dirs[1:]: print(" %s" % site_dir) print() for name, value in sorted(iteritems(info_dict["env_vars"])): print("%s: %s" % (name, value)) print() if args.license and not context.json: try: from _license import show_info show_info() except ImportError: print("""\ WARNING: could not import _license.show_info # try: # $ conda install -n root _license""") if context.json: stdout_json(info_dict)
def execute(args, parser): from ..base.context import context if args.root: if context.json: stdout_json({"root_prefix": context.root_prefix}) else: print(context.root_prefix) return if args.packages: print_package_info(args.packages) return if args.unsafe_channels: if not context.json: print("\n".join(context.channels)) else: print(json.dumps({"channels": context.channels})) return 0 options = "envs", "system", "license" if args.all or context.json: for option in options: setattr(args, option, True) info_dict = get_info_dict(args.system) if ( args.all or all(not getattr(args, opt) for opt in options) ) and not context.json: print_main_info(info_dict) if args.envs: handle_envs_list(info_dict["envs"], not context.json) if args.system: if not context.json: from .find_commands import find_commands, find_executable print("sys.version: %s..." % (sys.version[:40])) print("sys.prefix: %s" % sys.prefix) print("sys.executable: %s" % sys.executable) print("conda location: %s" % info_dict["conda_location"]) for cmd in sorted(set(find_commands() + ["build"])): print("conda-%s: %s" % (cmd, find_executable("conda-" + cmd))) print("user site dirs: ", end="") site_dirs = get_user_site() if site_dirs: print(site_dirs[0]) else: print() for site_dir in site_dirs[1:]: print(" %s" % site_dir) print() for name, value in sorted(iteritems(info_dict["env_vars"])): print("%s: %s" % (name, value)) print() if args.license and not context.json: try: from _license import show_info show_info() except ImportError: print("""\ WARNING: could not import _license.show_info # try: # $ conda install -n root _license""") if context.json: stdout_json(info_dict)
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def print_unexpected_error_message(e): # bomb = "\U0001F4A3 " # explosion = "\U0001F4A5 " # fire = "\U0001F525 " # print("%s %s %s" % (3*bomb, 3*explosion, 3*fire)) traceback = format_exc() stderrlogger = getLogger("stderr") from .base.context import context if context.json: from .cli.common import stdout_json stdout_json(dict(error=traceback)) else: message = """\ An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues """ stderrlogger.info(message) command = " ".join(sys.argv) if " info" not in command: from .cli.main_info import get_info_dict, get_main_info_str stderrlogger.info(get_main_info_str(get_info_dict())) stderrlogger.info("`$ {0}`".format(command)) stderrlogger.info("\n") stderrlogger.info("\n".join(" " + line for line in traceback.splitlines()))
def print_unexpected_error_message(e): # bomb = "\U0001F4A3 " # explosion = "\U0001F4A5 " # fire = "\U0001F525 " # print("%s %s %s" % (3*bomb, 3*explosion, 3*fire)) traceback = format_exc() stderrlogger = getLogger("stderr") from .base.context import context if context.json: from .cli.common import stdout_json stdout_json(dict(error=traceback)) else: message = """\ An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues """ stderrlogger.info(message) command = " ".join(sys.argv) if " info" not in command: # get and print `conda info` info_stdout, info_stderr = get_info() stderrlogger.info(info_stdout if info_stdout else info_stderr) stderrlogger.info("`$ {0}`".format(command)) stderrlogger.info("\n") stderrlogger.info("\n".join(" " + line for line in traceback.splitlines()))
https://github.com/conda/conda/issues/5039
$ conda -h An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/vmrguser/anaconda2/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 589, in conda_exception_handler print_unexpected_error_message(e) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 513, in get_info args.func(args, p) File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 148, in execute from conda.api import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/home/vmrguser/anaconda2/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: No module named packages.urllib3.exceptions
ImportError
def clone(src_arg, dst_prefix, json=False, quiet=False, index_args=None): if os.sep in src_arg: src_prefix = abspath(src_arg) if not isdir(src_prefix): raise DirectoryNotFoundError(src_arg) else: src_prefix = context.clone_src if not json: print("Source: %s" % src_prefix) print("Destination: %s" % dst_prefix) with common.json_progress_bars(json=json and not quiet): actions, untracked_files = clone_env( src_prefix, dst_prefix, verbose=not json, quiet=quiet, index_args=index_args ) if json: common.stdout_json_success( actions=actions, untracked_files=list(untracked_files), src_prefix=src_prefix, dst_prefix=dst_prefix, )
def clone(src_arg, dst_prefix, json=False, quiet=False, index_args=None): if os.sep in src_arg: src_prefix = abspath(src_arg) if not isdir(src_prefix): raise DirectoryNotFoundError( src_arg, "no such directory: %s" % src_arg, json ) else: src_prefix = context.clone_src if not json: print("Source: %s" % src_prefix) print("Destination: %s" % dst_prefix) with common.json_progress_bars(json=json and not quiet): actions, untracked_files = clone_env( src_prefix, dst_prefix, verbose=not json, quiet=quiet, index_args=index_args ) if json: common.stdout_json_success( actions=actions, untracked_files=list(untracked_files), src_prefix=src_prefix, dst_prefix=dst_prefix, )
https://github.com/conda/conda/issues/4969
Traceback (most recent call last): File "/conda/lib/python3.6/site-packages/conda/exceptions.py", line 591, in conda_exception_handler return_value = func(*args, **kwargs) File "/conda/lib/python3.6/site-packages/conda/cli/main.py", line 134, in _main exit_code = args.func(args, p) File "/conda/lib/python3.6/site-packages/conda/cli/main_create.py", line 68, in execute install(args, parser, 'create') File "/conda/lib/python3.6/site-packages/conda/cli/install.py", line 212, in install clone(args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args) File "/conda/lib/python3.6/site-packages/conda/cli/install.py", line 57, in clone raise DirectoryNotFoundError(src_arg, 'no such directory: %s' % src_arg, json) TypeError: __init__() takes 2 positional arguments but 4 were given
TypeError
def install(args, parser, command="install"): """ conda install, conda update, and conda create """ context.validate_configuration() newenv = bool(command == "create") isupdate = bool(command == "update") isinstall = bool(command == "install") if newenv: common.ensure_name_or_prefix(args, command) prefix = context.prefix if newenv or args.mkdir else context.prefix_w_legacy_search if newenv: check_prefix(prefix, json=context.json) if context.force_32bit and is_root_prefix(prefix): raise CondaValueError("cannot use CONDA_FORCE_32BIT=1 in root env") if isupdate and not (args.file or args.all or args.packages): raise CondaValueError( """no package names supplied # If you want to update to a newer version of Anaconda, type: # # $ conda update --prefix %s anaconda """ % prefix ) linked_dists = install_linked(prefix) linked_names = tuple(ld.quad[0] for ld in linked_dists) if isupdate and not args.all: for name in args.packages: common.arg2spec(name, json=context.json, update=True) if ( name not in linked_names and common.prefix_if_in_private_env(name) is None ): raise PackageNotInstalledError(prefix, name) if newenv and not args.no_default_packages: default_packages = list(context.create_default_packages) # Override defaults if they are specified at the command line for default_pkg in context.create_default_packages: if any(pkg.split("=")[0] == default_pkg for pkg in args.packages): default_packages.remove(default_pkg) args.packages.extend(default_packages) else: default_packages = [] common.ensure_use_local(args) common.ensure_override_channels_requires_channel(args) index_args = { "use_cache": args.use_index_cache, "channel_urls": context.channels, "unknown": args.unknown, "prepend": not args.override_channels, "use_local": args.use_local, } specs = [] if args.file: for fpath in args.file: specs.extend(common.specs_from_url(fpath, json=context.json)) if "@EXPLICIT" in specs: explicit(specs, prefix, verbose=not context.quiet, index_args=index_args) return elif getattr(args, "all", False): if not linked_dists: log.info("There are no packages installed in prefix %s", prefix) return specs.extend(d.quad[0] for d in linked_dists) specs.extend(common.specs_from_args(args.packages, json=context.json)) if isinstall and args.revision: get_revision(args.revision, json=context.json) elif isinstall and not (args.file or args.packages): raise CondaValueError( "too few arguments, must supply command line package specs or --file" ) num_cp = sum(s.endswith(".tar.bz2") for s in args.packages) if num_cp: if num_cp == len(args.packages): explicit(args.packages, prefix, verbose=not context.quiet) return else: raise CondaValueError( "cannot mix specifications with conda package filenames" ) if newenv and args.clone: package_diff = set(args.packages) - set(default_packages) if package_diff: raise TooManyArgumentsError( 0, len(package_diff), list(package_diff), "did not expect any arguments for --clone", ) clone( args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args, ) append_env(prefix) touch_nonadmin(prefix) if not context.json and not context.quiet: print(print_activate(args.name if args.name else prefix)) return index = get_index( channel_urls=index_args["channel_urls"], prepend=index_args["prepend"], platform=None, use_local=index_args["use_local"], use_cache=index_args["use_cache"], unknown=index_args["unknown"], prefix=prefix, ) ospecs = list(specs) if args.force: args.no_deps = True if args.no_deps: only_names = set(s.split()[0] for s in ospecs) else: only_names = None if not isdir(prefix) and not newenv: if args.mkdir: try: os.makedirs(prefix) except OSError: raise CondaOSError("Error: could not create directory: %s" % prefix) else: raise CondaEnvironmentNotFoundError(prefix) try: if isinstall and args.revision: action_set = [revert_actions(prefix, get_revision(args.revision), index)] else: with common.json_progress_bars(json=context.json and not context.quiet): _channel_priority_map = prioritize_channels(index_args["channel_urls"]) action_set = install_actions_list( prefix, index, specs, force=args.force, only_names=only_names, pinned=args.pinned, always_copy=context.always_copy, minimal_hint=args.alt_hint, update_deps=context.update_dependencies, channel_priority_map=_channel_priority_map, is_update=isupdate, ) except NoPackagesFoundError as e: error_message = [e.args[0]] if isupdate and args.all: # Packages not found here just means they were installed but # cannot be found any more. Just skip them. if not context.json: print("Warning: %s, skipping" % error_message) else: # Not sure what to do here pass args._skip = getattr(args, "_skip", ["anaconda"]) for pkg in e.pkgs: p = pkg.split()[0] if p in args._skip: # Avoid infinite recursion. This can happen if a spec # comes from elsewhere, like --file raise args._skip.append(p) return install(args, parser, command=command) else: packages = {index[fn]["name"] for fn in index} nfound = 0 for pkg in sorted(e.pkgs): pkg = pkg.split()[0] if pkg in packages: continue close = get_close_matches(pkg, packages, cutoff=0.7) if not close: continue if nfound == 0: error_message.append( "\n\nClose matches found; did you mean one of these?\n" ) error_message.append("\n %s: %s" % (pkg, ", ".join(close))) nfound += 1 # error_message.append('\n\nYou can search for packages on anaconda.org with') # error_message.append('\n\n anaconda search -t conda %s' % pkg) if len(e.pkgs) > 1: # Note this currently only happens with dependencies not found error_message.append("\n\n(and similarly for the other packages)") # if not find_executable('anaconda', include_others=False): # error_message.append('\n\nYou may need to install the anaconda-client') # error_message.append(' command line client with') # error_message.append('\n\n conda install anaconda-client') pinned_specs = get_pinned_specs(prefix) if pinned_specs: path = join(prefix, "conda-meta", "pinned") error_message.append( "\n\nNote that you have pinned specs in %s:" % path ) error_message.append("\n\n %r" % (pinned_specs,)) error_message = "".join(error_message) raise PackageNotFoundError(error_message) except (UnsatisfiableError, SystemExit) as e: # Unsatisfiable package specifications/no such revision/import error if e.args and "could not import" in e.args[0]: raise CondaImportError(text_type(e)) raise if not context.json: if any(nothing_to_do(actions) for actions in action_set) and not newenv: from .main_list import print_packages if not context.json: spec_regex = r"^(%s)$" % re.escape( "|".join(s.split()[0] for s in ospecs) ) print("\n# All requested packages already installed.") for action in action_set: print_packages(action["PREFIX"], spec_regex) else: common.stdout_json_success( message="All requested packages already installed." ) return for actions in action_set: print() print( "Package plan for installation in environment %s:" % actions["PREFIX"] ) display_actions(actions, index, show_channel_urls=context.show_channel_urls) # TODO: this is where the transactions should be instantiated common.confirm_yn(args) elif args.dry_run: common.stdout_json_success(actions=action_set, dry_run=True) raise DryRunExit() for actions in action_set: if newenv: # needed in the case of creating an empty env from ..instructions import LINK, UNLINK, SYMLINK_CONDA if not actions[LINK] and not actions[UNLINK]: actions[SYMLINK_CONDA] = [context.root_prefix] if command in {"install", "update"}: check_write(command, prefix) # if not context.json: # common.confirm_yn(args) # elif args.dry_run: # common.stdout_json_success(actions=actions, dry_run=True) # raise DryRunExit() with common.json_progress_bars(json=context.json and not context.quiet): try: execute_actions(actions, index, verbose=not context.quiet) if not (command == "update" and args.all): try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# %s specs: %s\n" % (command, ",".join(specs))) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise CondaIOError("Can't write the history file", e) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e) if newenv: append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) if context.json: common.stdout_json_success(actions=actions)
def install(args, parser, command="install"): """ conda install, conda update, and conda create """ context.validate_configuration() newenv = bool(command == "create") isupdate = bool(command == "update") isinstall = bool(command == "install") if newenv: common.ensure_name_or_prefix(args, command) prefix = context.prefix if newenv or args.mkdir else context.prefix_w_legacy_search if newenv: check_prefix(prefix, json=context.json) if context.force_32bit and is_root_prefix(prefix): raise CondaValueError("cannot use CONDA_FORCE_32BIT=1 in root env") if isupdate and not (args.file or args.all or args.packages): raise CondaValueError( """no package names supplied # If you want to update to a newer version of Anaconda, type: # # $ conda update --prefix %s anaconda """ % prefix ) linked_dists = install_linked(prefix) linked_names = tuple(ld.quad[0] for ld in linked_dists) if isupdate and not args.all: for name in args.packages: common.arg2spec(name, json=context.json, update=True) if ( name not in linked_names and common.prefix_if_in_private_env(name) is None ): raise PackageNotInstalledError(prefix, name) if newenv and not args.no_default_packages: default_packages = list(context.create_default_packages) # Override defaults if they are specified at the command line for default_pkg in context.create_default_packages: if any(pkg.split("=")[0] == default_pkg for pkg in args.packages): default_packages.remove(default_pkg) args.packages.extend(default_packages) else: default_packages = [] common.ensure_use_local(args) common.ensure_override_channels_requires_channel(args) index_args = { "use_cache": args.use_index_cache, "channel_urls": context.channels, "unknown": args.unknown, "prepend": not args.override_channels, "use_local": args.use_local, } specs = [] if args.file: for fpath in args.file: specs.extend(common.specs_from_url(fpath, json=context.json)) if "@EXPLICIT" in specs: explicit(specs, prefix, verbose=not context.quiet, index_args=index_args) return elif getattr(args, "all", False): if not linked_dists: log.info("There are no packages installed in prefix %s", prefix) return specs.extend(d.quad[0] for d in linked_dists) specs.extend(common.specs_from_args(args.packages, json=context.json)) if isinstall and args.revision: get_revision(args.revision, json=context.json) elif isinstall and not (args.file or args.packages): raise CondaValueError( "too few arguments, must supply command line package specs or --file" ) num_cp = sum(s.endswith(".tar.bz2") for s in args.packages) if num_cp: if num_cp == len(args.packages): explicit(args.packages, prefix, verbose=not context.quiet) return else: raise CondaValueError( "cannot mix specifications with conda package filenames" ) if newenv and args.clone: package_diff = set(args.packages) - set(default_packages) if package_diff: raise TooManyArgumentsError( 0, len(package_diff), list(package_diff), "did not expect any arguments for --clone", ) clone( args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args, ) append_env(prefix) touch_nonadmin(prefix) if not context.json and not context.quiet: print(print_activate(args.name if args.name else prefix)) return index = get_index( channel_urls=index_args["channel_urls"], prepend=index_args["prepend"], platform=None, use_local=index_args["use_local"], use_cache=index_args["use_cache"], unknown=index_args["unknown"], prefix=prefix, ) ospecs = list(specs) if args.force: args.no_deps = True if args.no_deps: only_names = set(s.split()[0] for s in ospecs) else: only_names = None if not isdir(prefix) and not newenv: if args.mkdir: try: os.makedirs(prefix) except OSError: raise CondaOSError("Error: could not create directory: %s" % prefix) else: raise CondaEnvironmentNotFoundError(prefix) try: if isinstall and args.revision: action_set = [revert_actions(prefix, get_revision(args.revision), index)] else: with common.json_progress_bars(json=context.json and not context.quiet): _channel_priority_map = prioritize_channels(index_args["channel_urls"]) action_set = install_actions_list( prefix, index, specs, force=args.force, only_names=only_names, pinned=args.pinned, always_copy=context.always_copy, minimal_hint=args.alt_hint, update_deps=context.update_dependencies, channel_priority_map=_channel_priority_map, is_update=isupdate, ) except NoPackagesFoundError as e: error_message = [e.args[0]] if isupdate and args.all: # Packages not found here just means they were installed but # cannot be found any more. Just skip them. if not context.json: print("Warning: %s, skipping" % error_message) else: # Not sure what to do here pass args._skip = getattr(args, "_skip", ["anaconda"]) for pkg in e.pkgs: p = pkg.split()[0] if p in args._skip: # Avoid infinite recursion. This can happen if a spec # comes from elsewhere, like --file raise args._skip.append(p) return install(args, parser, command=command) else: packages = {index[fn]["name"] for fn in index} nfound = 0 for pkg in sorted(e.pkgs): pkg = pkg.split()[0] if pkg in packages: continue close = get_close_matches(pkg, packages, cutoff=0.7) if not close: continue if nfound == 0: error_message.append( "\n\nClose matches found; did you mean one of these?\n" ) error_message.append("\n %s: %s" % (pkg, ", ".join(close))) nfound += 1 # error_message.append('\n\nYou can search for packages on anaconda.org with') # error_message.append('\n\n anaconda search -t conda %s' % pkg) if len(e.pkgs) > 1: # Note this currently only happens with dependencies not found error_message.append("\n\n(and similarly for the other packages)") # if not find_executable('anaconda', include_others=False): # error_message.append('\n\nYou may need to install the anaconda-client') # error_message.append(' command line client with') # error_message.append('\n\n conda install anaconda-client') pinned_specs = get_pinned_specs(prefix) if pinned_specs: path = join(prefix, "conda-meta", "pinned") error_message.append( "\n\nNote that you have pinned specs in %s:" % path ) error_message.append("\n\n %r" % pinned_specs) error_message = "".join(error_message) raise PackageNotFoundError(error_message) except (UnsatisfiableError, SystemExit) as e: # Unsatisfiable package specifications/no such revision/import error if e.args and "could not import" in e.args[0]: raise CondaImportError(text_type(e)) raise if not context.json: if any(nothing_to_do(actions) for actions in action_set) and not newenv: from .main_list import print_packages if not context.json: spec_regex = r"^(%s)$" % re.escape( "|".join(s.split()[0] for s in ospecs) ) print("\n# All requested packages already installed.") for action in action_set: print_packages(action["PREFIX"], spec_regex) else: common.stdout_json_success( message="All requested packages already installed." ) return for actions in action_set: print() print( "Package plan for installation in environment %s:" % actions["PREFIX"] ) display_actions(actions, index, show_channel_urls=context.show_channel_urls) # TODO: this is where the transactions should be instantiated common.confirm_yn(args) elif args.dry_run: common.stdout_json_success(actions=action_set, dry_run=True) raise DryRunExit() for actions in action_set: if newenv: # needed in the case of creating an empty env from ..instructions import LINK, UNLINK, SYMLINK_CONDA if not actions[LINK] and not actions[UNLINK]: actions[SYMLINK_CONDA] = [context.root_prefix] if command in {"install", "update"}: check_write(command, prefix) # if not context.json: # common.confirm_yn(args) # elif args.dry_run: # common.stdout_json_success(actions=actions, dry_run=True) # raise DryRunExit() with common.json_progress_bars(json=context.json and not context.quiet): try: execute_actions(actions, index, verbose=not context.quiet) if not (command == "update" and args.all): try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# %s specs: %s\n" % (command, ",".join(specs))) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise CondaIOError("Can't write the history file", e) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e) if newenv: append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) if context.json: common.stdout_json_success(actions=actions)
https://github.com/conda/conda/issues/4998
`$ F:\miniconda3_4.3.16_x64\Scripts\conda-script.py install foobar` Traceback (most recent call last): File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\cli\install.py", line 251, in install channel_priority_map=_channel_priority_map, is_update=isupdate) File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\plan.py", line 474, in install_actions_ list dists_for_envs = determine_all_envs(r, specs, channel_priority_map=channel_priority_map) File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\plan.py", line 539, in determine_all_en vs spec_for_envs = tuple(SpecForEnv(env=p.preferred_env, spec=p.name) for p in best_pkgs) File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\plan.py", line 539, in <genexpr> spec_for_envs = tuple(SpecForEnv(env=p.preferred_env, spec=p.name) for p in best_pkgs) File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\plan.py", line 538, in <genexpr> best_pkgs = (r.index[r.get_dists_for_spec(s, emptyok=False)[-1]] for s in specs) File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\resolve.py", line 564, in get_dists_for _spec raise NoPackagesFoundError([(ms,)]) conda.exceptions.NoPackagesFoundError: Package missing in current win-64 channels: - foobar During handling of the above exception, another exception occurred: Traceback (most recent call last): File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\exceptions.py", line 626, in conda_exce ption_handler return_value = func(*args, **kwargs) File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\cli\main.py", line 134, in _main exit_code = args.func(args, p) File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\cli\main_install.py", line 80, in execu te install(args, parser, 'install') File "F:\miniconda3_4.3.16_x64\lib\site-packages\conda\cli\install.py", line 303, in install error_message.append("\n\n %r" % pinned_specs) TypeError: not all arguments converted during string formatting
conda.exceptions.NoPackagesFoundError
def signal_handler(handler): _thread_local = threading.local() _thread_local.previous_handlers = [] for signame in INTERRUPT_SIGNALS: sig = getattr(signal, signame, None) if sig: log.debug("registering handler for %s", signame) try: prev_handler = signal.signal(sig, handler) _thread_local.previous_handlers.append((sig, prev_handler)) except ValueError as e: # ValueError: signal only works in main thread log.debug("%r", e) try: yield finally: standard_handlers = signal.SIG_IGN, signal.SIG_DFL for sig, previous_handler in _thread_local.previous_handlers: if callable(previous_handler) or previous_handler in standard_handlers: log.debug("de-registering handler for %s", sig) signal.signal(sig, previous_handler)
def signal_handler(handler): previous_handlers = [] for signame in INTERRUPT_SIGNALS: sig = getattr(signal, signame, None) if sig: log.debug("registering handler for %s", signame) prev_handler = signal.signal(sig, handler) previous_handlers.append((sig, prev_handler)) try: yield finally: standard_handlers = signal.SIG_IGN, signal.SIG_DFL for sig, previous_handler in previous_handlers: if callable(previous_handler) or previous_handler in standard_handlers: log.debug("de-registering handler for %s", sig) signal.signal(sig, previous_handler)
https://github.com/conda/conda/issues/5132
Traceback (most recent call last): File "/home/travis/build/conda/conda/conda-build/conda_build/build.py", line 688, in create_env execute_actions(actions, index, verbose=config.debug) File "/home/travis/build/conda/conda/conda/plan.py", line 612, in execute_actions execute_instructions(plan, index, verbose) File "/home/travis/build/conda/conda/conda/instructions.py", line 243, in execute_instructions cmd(state, arg) File "/home/travis/build/conda/conda/conda/instructions.py", line 98, in PROGRESSIVEFETCHEXTRACT_CMD progressive_fetch_extract.execute() File "/home/travis/build/conda/conda/conda/core/package_cache.py", line 491, in execute with signal_handler(conda_signal_handler): File "/home/travis/miniconda/lib/python3.6/contextlib.py", line 82, in __enter__ return next(self.gen) File "/home/travis/build/conda/conda/conda/common/signals.py", line 41, in signal_handler prev_handler = signal.signal(sig, handler) File "/home/travis/miniconda/lib/python3.6/signal.py", line 47, in signal handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) ValueError: signal only works in main thread
ValueError
def install_actions_list( prefix, index, specs, force=False, only_names=None, always_copy=False, pinned=True, minimal_hint=False, update_deps=True, prune=False, channel_priority_map=None, is_update=False, ): # type: (str, Dict[Dist, Record], List[str], bool, Option[List[str]], bool, bool, bool, # bool, bool, bool, Dict[str, Sequence[str, int]]) -> List[Dict[weird]] specs = [MatchSpec(spec) for spec in specs] r = get_resolve_object(index.copy(), prefix) linked_in_root = linked_data(context.root_prefix) dists_for_envs = determine_all_envs( r, specs, channel_priority_map=channel_priority_map ) ensure_packge_not_duplicated_in_private_env_root(dists_for_envs, linked_in_root) preferred_envs = set(d.env for d in dists_for_envs) # Group specs by prefix grouped_specs = determine_dists_per_prefix( r, prefix, index, preferred_envs, dists_for_envs, context ) # Replace SpecsForPrefix specs with specs that were passed in in order to retain # version information required_solves = match_to_original_specs(specs, grouped_specs) actions = [ get_actions_for_dists( specs_by_prefix, only_names, index, force, always_copy, prune, update_deps, pinned, ) for specs_by_prefix in required_solves ] # Need to add unlink actions if updating a private env from root if is_update and prefix == context.root_prefix: add_unlink_options_for_update(actions, required_solves, index) return actions
def install_actions_list( prefix, index, specs, force=False, only_names=None, always_copy=False, pinned=True, minimal_hint=False, update_deps=True, prune=False, channel_priority_map=None, is_update=False, ): # type: (str, Dict[Dist, Record], List[str], bool, Option[List[str]], bool, bool, bool, # bool, bool, bool, Dict[str, Sequence[str, int]]) -> List[Dict[weird]] str_specs = specs specs = [MatchSpec(spec) for spec in specs] r = get_resolve_object(index.copy(), prefix) linked_in_root = linked_data(context.root_prefix) dists_for_envs = determine_all_envs( r, specs, channel_priority_map=channel_priority_map ) ensure_packge_not_duplicated_in_private_env_root(dists_for_envs, linked_in_root) preferred_envs = set(d.env for d in dists_for_envs) # Group specs by prefix grouped_specs = determine_dists_per_prefix( r, prefix, index, preferred_envs, dists_for_envs, context ) # Replace SpecsForPrefix specs with specs that were passed in in order to retain # version information required_solves = match_to_original_specs(str_specs, grouped_specs) actions = [ get_actions_for_dists( dists_by_prefix, only_names, index, force, always_copy, prune, update_deps, pinned, ) for dists_by_prefix in required_solves ] # Need to add unlink actions if updating a private env from root if is_update and prefix == context.root_prefix: add_unlink_options_for_update(actions, required_solves, index) return actions
https://github.com/conda/conda/issues/4849
$ conda info -a Current conda install: platform : linux-64 conda version : 4.3.13 conda is private : False conda-env version : 4.3.13 conda-build version : 2.0.2 python version : 2.7.12.final.0 requests version : 2.13.0 root environment : /home/hp/bin/anaconda2 (writable) default environment : /home/hp/bin/anaconda2/envs/kapsel envs directories : /home/hp/bin/anaconda2/envs /home/hp/.conda/envs package cache : /home/hp/bin/anaconda2/pkgs /home/hp/.conda/pkgs channel URLs : https://repo.continuum.io/pkgs/free/linux-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/linux-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/linux-64 https://repo.continuum.io/pkgs/pro/noarch https://conda.anaconda.org/t/<TOKEN>/binstar/linux-64 https://conda.anaconda.org/t/<TOKEN>/binstar/noarch config file : /home/hp/.condarc offline mode : False user-agent : conda/4.3.13 requests/2.13.0 CPython/2.7.12 Linux/4.9.12-100.fc24.x86_64 Fedora/24 glibc/2.23 UID:GID : 1000:1000 # conda environments: # anaconda-platform /home/hp/bin/anaconda2/envs/anaconda-platform kapsel * /home/hp/bin/anaconda2/envs/kapsel kapsel-canary /home/hp/bin/anaconda2/envs/kapsel-canary py2 /home/hp/bin/anaconda2/envs/py2 testing /home/hp/bin/anaconda2/envs/testing root /home/hp/bin/anaconda2 sys.version: 2.7.12 |Anaconda 4.2.0 (64-bit)| (defaul... sys.prefix: /home/hp/bin/anaconda2 sys.executable: /home/hp/bin/anaconda2/bin/python conda location: /home/hp/bin/anaconda2/lib/python2.7/site-packages/conda conda-build: /home/hp/bin/anaconda2/bin/conda-build conda-convert: /home/hp/bin/anaconda2/bin/conda-convert conda-develop: /home/hp/bin/anaconda2/bin/conda-develop conda-env: /home/hp/bin/anaconda2/bin/conda-env conda-index: /home/hp/bin/anaconda2/bin/conda-index conda-inspect: /home/hp/bin/anaconda2/bin/conda-inspect conda-kapsel: /home/hp/bin/anaconda2/envs/kapsel/bin/conda-kapsel conda-metapackage: /home/hp/bin/anaconda2/bin/conda-metapackage conda-render: /home/hp/bin/anaconda2/bin/conda-render conda-server: /home/hp/bin/anaconda2/envs/kapsel/bin/conda-server conda-sign: /home/hp/bin/anaconda2/bin/conda-sign conda-skeleton: /home/hp/bin/anaconda2/bin/conda-skeleton user site dirs: CIO_TEST: <not set> CONDA_DEFAULT_ENV: kapsel CONDA_ENVS_PATH: <not set> LD_LIBRARY_PATH: <not set> PATH: /home/hp/bin/anaconda2/envs/kapsel/bin:/home/hp/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin PYTHONHOME: <not set> PYTHONPATH: <not set> License directories: /home/hp/.continuum /home/hp/bin/anaconda2/licenses License files (license*.txt): /home/hp/.continuum/license_anaconda_repo_20161003210957.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160804160500.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160727174434.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728092403.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830123618.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160803091557.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830104354.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo.txt Reading license file : 6 Signature valid : 6 Vendor match : 3 product : u'mkl-optimizations' packages : u'mkl' end_date : u'2017-05-24' type : u'Trial' product : u'iopro' packages : u'iopro' end_date : u'2017-05-24' type : u'Trial' product : u'accelerate' packages : u'numbapro mkl' end_date : u'2017-05-24' type : u'Trial' /home/hp/.continuum/license_anaconda_repo_20160823133054.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160927143648.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160803113033.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728095857.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728094900.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830104619.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728093131.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20161003210908.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728094321.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 Package/feature end dates: An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues `$ /home/hp/bin/anaconda2/envs/kapsel/bin/conda info -a` Traceback (most recent call last): File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 591, in conda_exception_handler return_value = func(*args, **kwargs) File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 134, in _main exit_code = args.func(args, p) File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 324, in execute show_info() File "_license.pyx", line 363, in _license.show_info (_license.c:10610) File "_license.pyx", line 310, in _license.get_end_dates (_license.c:9015) File "_license.pyx", line 166, in _license.filter_vendor (_license.c:6214) KeyError: 'vendor' $ conda --version conda 4.3.13
KeyError
def match_to_original_specs(specs, specs_for_prefix): matches_any_spec = lambda dst: next(spc for spc in specs if spc.name == dst) matched_specs_for_prefix = [] for prefix_with_dists in specs_for_prefix: linked = linked_data(prefix_with_dists.prefix) r = prefix_with_dists.r new_matches = [] for spec in prefix_with_dists.specs: matched = matches_any_spec(spec) if matched: new_matches.append(matched) add_defaults_to_specs(r, linked, new_matches, prefix=prefix_with_dists.prefix) matched_specs_for_prefix.append( SpecsForPrefix( prefix=prefix_with_dists.prefix, r=prefix_with_dists.r, specs=new_matches, ) ) return matched_specs_for_prefix
def match_to_original_specs(str_specs, specs_for_prefix): matches_any_spec = lambda dst: next(spc for spc in str_specs if spc.startswith(dst)) matched_specs_for_prefix = [] for prefix_with_dists in specs_for_prefix: linked = linked_data(prefix_with_dists.prefix) r = prefix_with_dists.r new_matches = [] for spec in prefix_with_dists.specs: matched = matches_any_spec(spec) if matched: new_matches.append(matched) add_defaults_to_specs(r, linked, new_matches, prefix=prefix_with_dists.prefix) matched_specs_for_prefix.append( SpecsForPrefix( prefix=prefix_with_dists.prefix, r=prefix_with_dists.r, specs=new_matches, ) ) return matched_specs_for_prefix
https://github.com/conda/conda/issues/4849
$ conda info -a Current conda install: platform : linux-64 conda version : 4.3.13 conda is private : False conda-env version : 4.3.13 conda-build version : 2.0.2 python version : 2.7.12.final.0 requests version : 2.13.0 root environment : /home/hp/bin/anaconda2 (writable) default environment : /home/hp/bin/anaconda2/envs/kapsel envs directories : /home/hp/bin/anaconda2/envs /home/hp/.conda/envs package cache : /home/hp/bin/anaconda2/pkgs /home/hp/.conda/pkgs channel URLs : https://repo.continuum.io/pkgs/free/linux-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/linux-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/linux-64 https://repo.continuum.io/pkgs/pro/noarch https://conda.anaconda.org/t/<TOKEN>/binstar/linux-64 https://conda.anaconda.org/t/<TOKEN>/binstar/noarch config file : /home/hp/.condarc offline mode : False user-agent : conda/4.3.13 requests/2.13.0 CPython/2.7.12 Linux/4.9.12-100.fc24.x86_64 Fedora/24 glibc/2.23 UID:GID : 1000:1000 # conda environments: # anaconda-platform /home/hp/bin/anaconda2/envs/anaconda-platform kapsel * /home/hp/bin/anaconda2/envs/kapsel kapsel-canary /home/hp/bin/anaconda2/envs/kapsel-canary py2 /home/hp/bin/anaconda2/envs/py2 testing /home/hp/bin/anaconda2/envs/testing root /home/hp/bin/anaconda2 sys.version: 2.7.12 |Anaconda 4.2.0 (64-bit)| (defaul... sys.prefix: /home/hp/bin/anaconda2 sys.executable: /home/hp/bin/anaconda2/bin/python conda location: /home/hp/bin/anaconda2/lib/python2.7/site-packages/conda conda-build: /home/hp/bin/anaconda2/bin/conda-build conda-convert: /home/hp/bin/anaconda2/bin/conda-convert conda-develop: /home/hp/bin/anaconda2/bin/conda-develop conda-env: /home/hp/bin/anaconda2/bin/conda-env conda-index: /home/hp/bin/anaconda2/bin/conda-index conda-inspect: /home/hp/bin/anaconda2/bin/conda-inspect conda-kapsel: /home/hp/bin/anaconda2/envs/kapsel/bin/conda-kapsel conda-metapackage: /home/hp/bin/anaconda2/bin/conda-metapackage conda-render: /home/hp/bin/anaconda2/bin/conda-render conda-server: /home/hp/bin/anaconda2/envs/kapsel/bin/conda-server conda-sign: /home/hp/bin/anaconda2/bin/conda-sign conda-skeleton: /home/hp/bin/anaconda2/bin/conda-skeleton user site dirs: CIO_TEST: <not set> CONDA_DEFAULT_ENV: kapsel CONDA_ENVS_PATH: <not set> LD_LIBRARY_PATH: <not set> PATH: /home/hp/bin/anaconda2/envs/kapsel/bin:/home/hp/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin PYTHONHOME: <not set> PYTHONPATH: <not set> License directories: /home/hp/.continuum /home/hp/bin/anaconda2/licenses License files (license*.txt): /home/hp/.continuum/license_anaconda_repo_20161003210957.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160804160500.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160727174434.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728092403.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830123618.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160803091557.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830104354.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo.txt Reading license file : 6 Signature valid : 6 Vendor match : 3 product : u'mkl-optimizations' packages : u'mkl' end_date : u'2017-05-24' type : u'Trial' product : u'iopro' packages : u'iopro' end_date : u'2017-05-24' type : u'Trial' product : u'accelerate' packages : u'numbapro mkl' end_date : u'2017-05-24' type : u'Trial' /home/hp/.continuum/license_anaconda_repo_20160823133054.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160927143648.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160803113033.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728095857.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728094900.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830104619.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728093131.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20161003210908.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728094321.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 Package/feature end dates: An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues `$ /home/hp/bin/anaconda2/envs/kapsel/bin/conda info -a` Traceback (most recent call last): File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 591, in conda_exception_handler return_value = func(*args, **kwargs) File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 134, in _main exit_code = args.func(args, p) File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 324, in execute show_info() File "_license.pyx", line 363, in _license.show_info (_license.c:10610) File "_license.pyx", line 310, in _license.get_end_dates (_license.c:9015) File "_license.pyx", line 166, in _license.filter_vendor (_license.c:6214) KeyError: 'vendor' $ conda --version conda 4.3.13
KeyError
def get_actions_for_dists( specs_by_prefix, only_names, index, force, always_copy, prune, update_deps, pinned ): root_only = ("conda", "conda-env") prefix = specs_by_prefix.prefix r = specs_by_prefix.r specs = [MatchSpec(s) for s in specs_by_prefix.specs] specs = augment_specs(prefix, specs, pinned) linked = linked_data(prefix) must_have = odict() installed = linked if prune: installed = [] pkgs = r.install(specs, installed, update_deps=update_deps) for fn in pkgs: dist = Dist(fn) name = r.package_name(dist) if not name or only_names and name not in only_names: continue must_have[name] = dist if is_root_prefix(prefix): # for name in foreign: # if name in must_have: # del must_have[name] pass elif basename(prefix).startswith("_"): # anything (including conda) can be installed into environments # starting with '_', mainly to allow conda-build to build conda pass elif any(s in must_have for s in root_only): # the solver scheduled an install of conda, but it wasn't in the # specs, so it must have been a dependency. specs = [s for s in specs if r.depends_on(s, root_only)] if specs: raise InstallError( """\ Error: the following specs depend on 'conda' and can only be installed into the root environment: %s""" % (" ".join(spec.name for spec in specs),) ) linked = [r.package_name(s) for s in linked] linked = [s for s in linked if r.depends_on(s, root_only)] if linked: raise InstallError( """\ Error: one or more of the packages already installed depend on 'conda' and should only be installed in the root environment: %s These packages need to be removed before conda can proceed.""" % (" ".join(linked),) ) raise InstallError( "Error: 'conda' can only be installed into the root environment" ) smh = r.dependency_sort(must_have) actions = ensure_linked_actions( smh, prefix, index=r.index, force=force, always_copy=always_copy ) if actions[LINK]: actions[SYMLINK_CONDA] = [context.root_prefix] for dist in sorted(linked): dist = Dist(dist) name = r.package_name(dist) replace_existing = name in must_have and dist != must_have[name] prune_it = prune and dist not in smh if replace_existing or prune_it: add_unlink(actions, dist) return actions
def get_actions_for_dists( dists_for_prefix, only_names, index, force, always_copy, prune, update_deps, pinned ): root_only = ("conda", "conda-env") prefix = dists_for_prefix.prefix dists = dists_for_prefix.specs r = dists_for_prefix.r specs = [MatchSpec(dist) for dist in dists] specs = augment_specs(prefix, specs, pinned) linked = linked_data(prefix) must_have = odict() installed = linked if prune: installed = [] pkgs = r.install(specs, installed, update_deps=update_deps) for fn in pkgs: dist = Dist(fn) name = r.package_name(dist) if not name or only_names and name not in only_names: continue must_have[name] = dist if is_root_prefix(prefix): # for name in foreign: # if name in must_have: # del must_have[name] pass elif basename(prefix).startswith("_"): # anything (including conda) can be installed into environments # starting with '_', mainly to allow conda-build to build conda pass elif any(s in must_have for s in root_only): # the solver scheduled an install of conda, but it wasn't in the # specs, so it must have been a dependency. specs = [s for s in specs if r.depends_on(s, root_only)] if specs: raise InstallError( """\ Error: the following specs depend on 'conda' and can only be installed into the root environment: %s""" % (" ".join(spec.name for spec in specs),) ) linked = [r.package_name(s) for s in linked] linked = [s for s in linked if r.depends_on(s, root_only)] if linked: raise InstallError( """\ Error: one or more of the packages already installed depend on 'conda' and should only be installed in the root environment: %s These packages need to be removed before conda can proceed.""" % (" ".join(linked),) ) raise InstallError( "Error: 'conda' can only be installed into the root environment" ) smh = r.dependency_sort(must_have) actions = ensure_linked_actions( smh, prefix, index=r.index, force=force, always_copy=always_copy ) if actions[LINK]: actions[SYMLINK_CONDA] = [context.root_prefix] for dist in sorted(linked): dist = Dist(dist) name = r.package_name(dist) replace_existing = name in must_have and dist != must_have[name] prune_it = prune and dist not in smh if replace_existing or prune_it: add_unlink(actions, dist) return actions
https://github.com/conda/conda/issues/4849
$ conda info -a Current conda install: platform : linux-64 conda version : 4.3.13 conda is private : False conda-env version : 4.3.13 conda-build version : 2.0.2 python version : 2.7.12.final.0 requests version : 2.13.0 root environment : /home/hp/bin/anaconda2 (writable) default environment : /home/hp/bin/anaconda2/envs/kapsel envs directories : /home/hp/bin/anaconda2/envs /home/hp/.conda/envs package cache : /home/hp/bin/anaconda2/pkgs /home/hp/.conda/pkgs channel URLs : https://repo.continuum.io/pkgs/free/linux-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/linux-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/linux-64 https://repo.continuum.io/pkgs/pro/noarch https://conda.anaconda.org/t/<TOKEN>/binstar/linux-64 https://conda.anaconda.org/t/<TOKEN>/binstar/noarch config file : /home/hp/.condarc offline mode : False user-agent : conda/4.3.13 requests/2.13.0 CPython/2.7.12 Linux/4.9.12-100.fc24.x86_64 Fedora/24 glibc/2.23 UID:GID : 1000:1000 # conda environments: # anaconda-platform /home/hp/bin/anaconda2/envs/anaconda-platform kapsel * /home/hp/bin/anaconda2/envs/kapsel kapsel-canary /home/hp/bin/anaconda2/envs/kapsel-canary py2 /home/hp/bin/anaconda2/envs/py2 testing /home/hp/bin/anaconda2/envs/testing root /home/hp/bin/anaconda2 sys.version: 2.7.12 |Anaconda 4.2.0 (64-bit)| (defaul... sys.prefix: /home/hp/bin/anaconda2 sys.executable: /home/hp/bin/anaconda2/bin/python conda location: /home/hp/bin/anaconda2/lib/python2.7/site-packages/conda conda-build: /home/hp/bin/anaconda2/bin/conda-build conda-convert: /home/hp/bin/anaconda2/bin/conda-convert conda-develop: /home/hp/bin/anaconda2/bin/conda-develop conda-env: /home/hp/bin/anaconda2/bin/conda-env conda-index: /home/hp/bin/anaconda2/bin/conda-index conda-inspect: /home/hp/bin/anaconda2/bin/conda-inspect conda-kapsel: /home/hp/bin/anaconda2/envs/kapsel/bin/conda-kapsel conda-metapackage: /home/hp/bin/anaconda2/bin/conda-metapackage conda-render: /home/hp/bin/anaconda2/bin/conda-render conda-server: /home/hp/bin/anaconda2/envs/kapsel/bin/conda-server conda-sign: /home/hp/bin/anaconda2/bin/conda-sign conda-skeleton: /home/hp/bin/anaconda2/bin/conda-skeleton user site dirs: CIO_TEST: <not set> CONDA_DEFAULT_ENV: kapsel CONDA_ENVS_PATH: <not set> LD_LIBRARY_PATH: <not set> PATH: /home/hp/bin/anaconda2/envs/kapsel/bin:/home/hp/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin PYTHONHOME: <not set> PYTHONPATH: <not set> License directories: /home/hp/.continuum /home/hp/bin/anaconda2/licenses License files (license*.txt): /home/hp/.continuum/license_anaconda_repo_20161003210957.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160804160500.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160727174434.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728092403.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830123618.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160803091557.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830104354.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo.txt Reading license file : 6 Signature valid : 6 Vendor match : 3 product : u'mkl-optimizations' packages : u'mkl' end_date : u'2017-05-24' type : u'Trial' product : u'iopro' packages : u'iopro' end_date : u'2017-05-24' type : u'Trial' product : u'accelerate' packages : u'numbapro mkl' end_date : u'2017-05-24' type : u'Trial' /home/hp/.continuum/license_anaconda_repo_20160823133054.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160927143648.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160803113033.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728095857.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728094900.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160830104619.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728093131.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20161003210908.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 /home/hp/.continuum/license_anaconda_repo_20160728094321.txt Reading license file : 1 Error: no signature in license: {u'license': u'test'} Signature valid : 0 Vendor match : 0 Package/feature end dates: An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues `$ /home/hp/bin/anaconda2/envs/kapsel/bin/conda info -a` Traceback (most recent call last): File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 591, in conda_exception_handler return_value = func(*args, **kwargs) File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 134, in _main exit_code = args.func(args, p) File "/home/hp/bin/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 324, in execute show_info() File "_license.pyx", line 363, in _license.show_info (_license.c:10610) File "_license.pyx", line 310, in _license.get_end_dates (_license.c:9015) File "_license.pyx", line 166, in _license.filter_vendor (_license.c:6214) KeyError: 'vendor' $ conda --version conda 4.3.13
KeyError
def __call__(self, *args, **kw): newargs = [] for arg in args: if isinstance(arg, list): newargs.append(tuple(arg)) elif not isinstance(arg, Hashable): # uncacheable. a list, for instance. # better to not cache than blow up. return self.func(*args, **kw) else: newargs.append(arg) newargs = tuple(newargs) key = (newargs, frozenset(sorted(kw.items()))) with self.lock: if key in self.cache: return self.cache[key] else: value = self.func(*args, **kw) self.cache[key] = value return value
def __call__(self, *args, **kw): newargs = [] for arg in args: if isinstance(arg, list): newargs.append(tuple(arg)) elif not isinstance(arg, collections.Hashable): # uncacheable. a list, for instance. # better to not cache than blow up. return self.func(*args, **kw) else: newargs.append(arg) newargs = tuple(newargs) key = (newargs, frozenset(sorted(kw.items()))) with self.lock: if key in self.cache: return self.cache[key] else: value = self.func(*args, **kw) self.cache[key] = value return value
https://github.com/conda/conda/issues/5022
$ conda install pandas An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Traceback (most recent call last): File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 591, in conda_exception_handler return_value = func(*args, **kwargs) File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 98, in _main imported = importlib.import_module(module) File "/home/simmi/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 978, in _gcd_import File "<frozen importlib._bootstrap>", line 961, in _find_and_load File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 655, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/cli/main_list.py", line 20, in <module> from ..egg_info import get_egg_info File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/egg_info.py", line 15, in <module> from .misc import rel_path File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/misc.py", line 19, in <module> from .core.index import get_index, _supplement_index_with_cache File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/core/index.py", line 8, in <module> from .package_cache import PackageCache File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/core/package_cache.py", line 9, in <module> from .path_actions import CacheUrlAction, ExtractPackageAction File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/core/path_actions.py", line 32, in <module> from ..gateways.download import download File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/gateways/download.py", line 15, in <module> from ..connection import CondaSession File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/connection.py", line 42, in <module> glibc_ver = gnu_get_libc_version() File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/utils.py", line 45, in __call__ value = self.func(*args, **kw) File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/utils.py", line 82, in gnu_get_libc_version from ctypes import CDLL, cdll, c_char_p File "/home/simmi/anaconda3/lib/python3.6/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: /home/simmi/anaconda3/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PySlice_Unpack During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/simmi/anaconda3/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 164, in main return conda_exception_handler(_main, *args) File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 607, in conda_exception_handler print_unexpected_error_message(e) File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 561, in print_unexpected_error_message info_stdout, info_stderr = get_info() File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 531, in get_info args.func(args, p) File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/cli/main_info.py", line 142, in execute from conda.api import get_index File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/api.py", line 1, in <module> from .core.index import get_index File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/core/index.py", line 8, in <module> from .package_cache import PackageCache File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/core/package_cache.py", line 9, in <module> from .path_actions import CacheUrlAction, ExtractPackageAction File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/core/path_actions.py", line 32, in <module> from ..gateways.download import download File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/gateways/download.py", line 15, in <module> from ..connection import CondaSession File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/connection.py", line 42, in <module> glibc_ver = gnu_get_libc_version() File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/utils.py", line 45, in __call__ value = self.func(*args, **kw) File "/home/simmi/anaconda3/lib/python3.6/site-packages/conda/utils.py", line 82, in gnu_get_libc_version from ctypes import CDLL, cdll, c_char_p File "/home/simmi/anaconda3/lib/python3.6/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ImportError: /home/simmi/anaconda3/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PySlice_Unpack```
ImportError
def configure_parser(sub_parsers): from .common import ( add_parser_help, add_parser_json, add_parser_prefix, add_parser_show_channel_urls, ) p = sub_parsers.add_parser( "list", description=descr, help=descr, formatter_class=RawDescriptionHelpFormatter, epilog=examples, add_help=False, ) add_parser_help(p) add_parser_prefix(p) add_parser_json(p) add_parser_show_channel_urls(p) p.add_argument( "-c", "--canonical", action="store_true", help="Output canonical names of packages only. Implies --no-pip. ", ) p.add_argument( "-f", "--full-name", action="store_true", help="Only search for full names, i.e., ^<regex>$.", ) p.add_argument( "--explicit", action="store_true", help="List explicitly all installed conda packaged with URL " "(output may be used by conda create --file).", ) p.add_argument( "--md5", action="store_true", help="Add MD5 hashsum when using --explicit", ) p.add_argument( "-e", "--export", action="store_true", help="Output requirement string only (output may be used by " " conda create --file).", ) p.add_argument( "-r", "--revisions", action="store_true", help="List the revision history and exit.", ) p.add_argument( "--no-pip", action="store_false", default=True, dest="pip", help="Do not include pip-only installed packages.", ) p.add_argument( "regex", action="store", nargs="?", help="List only packages matching this regular expression.", ) p.set_defaults(func=execute)
def configure_parser(sub_parsers): p = sub_parsers.add_parser( "list", description=descr, help=descr, formatter_class=RawDescriptionHelpFormatter, epilog=examples, add_help=False, ) add_parser_help(p) add_parser_prefix(p) add_parser_json(p) add_parser_show_channel_urls(p) p.add_argument( "-c", "--canonical", action="store_true", help="Output canonical names of packages only. Implies --no-pip. ", ) p.add_argument( "-f", "--full-name", action="store_true", help="Only search for full names, i.e., ^<regex>$.", ) p.add_argument( "--explicit", action="store_true", help="List explicitly all installed conda packaged with URL " "(output may be used by conda create --file).", ) p.add_argument( "--md5", action="store_true", help="Add MD5 hashsum when using --explicit", ) p.add_argument( "-e", "--export", action="store_true", help="Output requirement string only (output may be used by " " conda create --file).", ) p.add_argument( "-r", "--revisions", action="store_true", help="List the revision history and exit.", ) p.add_argument( "--no-pip", action="store_false", default=True, dest="pip", help="Do not include pip-only installed packages.", ) p.add_argument( "regex", action="store", nargs="?", help="List only packages matching this regular expression.", ) p.set_defaults(func=execute)
https://github.com/conda/conda/issues/5028
Traceback (most recent call last): File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 98, in _main imported = importlib.import_module(module) File "/Users/tasalta/anaconda/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main_list.py", line 20, in <module> from ..egg_info import get_egg_info File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/egg_info.py", line 15, in <module> from .misc import rel_path File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/misc.py", line 19, in <module> from .core.index import get_index, _supplement_index_with_cache File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: cannot import name InsecureRequestWarning at throwCondaError (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:117:9) at runConda (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:146:5) at Object.info (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:395:10) at Object.isGLCLauncherReady (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/systemState.js:207:27) at [object Object].onWindowOpen [as _onTimeout] (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/main.js:144:57) at Timer.listOnTimeout (timers.js:89:15)
ImportError
def print_export_header(subdir): print("# This file may be used to create an environment using:") print("# $ conda create --name <env> --file <this file>") print("# platform: %s" % subdir)
def print_export_header(): print("# This file may be used to create an environment using:") print("# $ conda create --name <env> --file <this file>") print("# platform: %s" % context.subdir)
https://github.com/conda/conda/issues/5028
Traceback (most recent call last): File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 98, in _main imported = importlib.import_module(module) File "/Users/tasalta/anaconda/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main_list.py", line 20, in <module> from ..egg_info import get_egg_info File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/egg_info.py", line 15, in <module> from .misc import rel_path File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/misc.py", line 19, in <module> from .core.index import get_index, _supplement_index_with_cache File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: cannot import name InsecureRequestWarning at throwCondaError (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:117:9) at runConda (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:146:5) at Object.info (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:395:10) at Object.isGLCLauncherReady (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/systemState.js:207:27) at [object Object].onWindowOpen [as _onTimeout] (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/main.js:144:57) at Timer.listOnTimeout (timers.js:89:15)
ImportError
def list_packages( prefix, installed, regex=None, format="human", show_channel_urls=None ): from .common import disp_features from ..base.constants import DEFAULTS_CHANNEL_NAME from ..base.context import context from ..core.linked_data import is_linked res = 0 result = [] for dist in get_packages(installed, regex): if format == "canonical": result.append(dist) continue if format == "export": result.append("=".join(dist.quad[:3])) continue try: # Returns None if no meta-file found (e.g. pip install) info = is_linked(prefix, dist) features = set(info.get("features", "").split()) disp = "%(name)-25s %(version)-15s %(build)15s" % info disp += " %s" % disp_features(features) schannel = info.get("schannel") show_channel_urls = show_channel_urls or context.show_channel_urls if ( show_channel_urls or show_channel_urls is None and schannel != DEFAULTS_CHANNEL_NAME ): disp += " %s" % schannel result.append(disp) except (AttributeError, IOError, KeyError, ValueError) as e: log.debug("exception for dist %s:\n%r", dist, e) result.append("%-25s %-15s %15s" % tuple(dist.quad[:3])) return res, result
def list_packages( prefix, installed, regex=None, format="human", show_channel_urls=context.show_channel_urls, ): res = 0 result = [] for dist in get_packages(installed, regex): if format == "canonical": result.append(dist) continue if format == "export": result.append("=".join(dist.quad[:3])) continue try: # Returns None if no meta-file found (e.g. pip install) info = is_linked(prefix, dist) features = set(info.get("features", "").split()) disp = "%(name)-25s %(version)-15s %(build)15s" % info disp += " %s" % disp_features(features) schannel = info.get("schannel") if ( show_channel_urls or show_channel_urls is None and schannel != DEFAULTS_CHANNEL_NAME ): disp += " %s" % schannel result.append(disp) except (AttributeError, IOError, KeyError, ValueError) as e: log.debug("exception for dist %s:\n%r", dist, e) result.append("%-25s %-15s %15s" % tuple(dist.quad[:3])) return res, result
https://github.com/conda/conda/issues/5028
Traceback (most recent call last): File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 98, in _main imported = importlib.import_module(module) File "/Users/tasalta/anaconda/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main_list.py", line 20, in <module> from ..egg_info import get_egg_info File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/egg_info.py", line 15, in <module> from .misc import rel_path File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/misc.py", line 19, in <module> from .core.index import get_index, _supplement_index_with_cache File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: cannot import name InsecureRequestWarning at throwCondaError (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:117:9) at runConda (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:146:5) at Object.info (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:395:10) at Object.isGLCLauncherReady (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/systemState.js:207:27) at [object Object].onWindowOpen [as _onTimeout] (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/main.js:144:57) at Timer.listOnTimeout (timers.js:89:15)
ImportError
def print_packages( prefix, regex=None, format="human", piplist=False, json=False, show_channel_urls=None, ): from .common import stdout_json from ..base.context import context from ..common.compat import text_type from ..core.linked_data import linked from ..egg_info import get_egg_info if not isdir(prefix): from ..exceptions import CondaEnvironmentNotFoundError raise CondaEnvironmentNotFoundError(prefix) if not json: if format == "human": print("# packages in environment at %s:" % prefix) print("#") if format == "export": print_export_header(context.subdir) installed = linked(prefix) log.debug("installed conda packages:\n%s", installed) if piplist and context.use_pip and format == "human": other_python = get_egg_info(prefix) log.debug("other installed python packages:\n%s", other_python) installed.update(other_python) exitcode, output = list_packages( prefix, installed, regex, format=format, show_channel_urls=show_channel_urls ) if not json: print("\n".join(map(text_type, output))) else: stdout_json(output) return exitcode
def print_packages( prefix, regex=None, format="human", piplist=False, json=False, show_channel_urls=context.show_channel_urls, ): if not isdir(prefix): raise CondaEnvironmentNotFoundError(prefix) if not json: if format == "human": print("# packages in environment at %s:" % prefix) print("#") if format == "export": print_export_header() installed = linked(prefix) log.debug("installed conda packages:\n%s", installed) if piplist and context.use_pip and format == "human": other_python = get_egg_info(prefix) log.debug("other installed python packages:\n%s", other_python) installed.update(other_python) exitcode, output = list_packages( prefix, installed, regex, format=format, show_channel_urls=show_channel_urls ) if not json: print("\n".join(map(text_type, output))) else: stdout_json(output) return exitcode
https://github.com/conda/conda/issues/5028
Traceback (most recent call last): File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 98, in _main imported = importlib.import_module(module) File "/Users/tasalta/anaconda/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main_list.py", line 20, in <module> from ..egg_info import get_egg_info File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/egg_info.py", line 15, in <module> from .misc import rel_path File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/misc.py", line 19, in <module> from .core.index import get_index, _supplement_index_with_cache File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: cannot import name InsecureRequestWarning at throwCondaError (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:117:9) at runConda (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:146:5) at Object.info (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:395:10) at Object.isGLCLauncherReady (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/systemState.js:207:27) at [object Object].onWindowOpen [as _onTimeout] (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/main.js:144:57) at Timer.listOnTimeout (timers.js:89:15)
ImportError
def print_explicit(prefix, add_md5=False): from ..base.constants import UNKNOWN_CHANNEL from ..base.context import context from ..core.linked_data import linked_data if not isdir(prefix): from ..exceptions import CondaEnvironmentNotFoundError raise CondaEnvironmentNotFoundError(prefix) print_export_header(context.subdir) print("@EXPLICIT") for meta in sorted(linked_data(prefix).values(), key=lambda x: x["name"]): url = meta.get("url") if not url or url.startswith(UNKNOWN_CHANNEL): print("# no URL for: %s" % meta["fn"]) continue md5 = meta.get("md5") print(url + ("#%s" % md5 if add_md5 and md5 else ""))
def print_explicit(prefix, add_md5=False): if not isdir(prefix): raise CondaEnvironmentNotFoundError(prefix) print_export_header() print("@EXPLICIT") for meta in sorted(linked_data(prefix).values(), key=lambda x: x["name"]): url = meta.get("url") if not url or url.startswith(UNKNOWN_CHANNEL): print("# no URL for: %s" % meta["fn"]) continue md5 = meta.get("md5") print(url + ("#%s" % md5 if add_md5 and md5 else ""))
https://github.com/conda/conda/issues/5028
Traceback (most recent call last): File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 98, in _main imported = importlib.import_module(module) File "/Users/tasalta/anaconda/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main_list.py", line 20, in <module> from ..egg_info import get_egg_info File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/egg_info.py", line 15, in <module> from .misc import rel_path File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/misc.py", line 19, in <module> from .core.index import get_index, _supplement_index_with_cache File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: cannot import name InsecureRequestWarning at throwCondaError (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:117:9) at runConda (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:146:5) at Object.info (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:395:10) at Object.isGLCLauncherReady (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/systemState.js:207:27) at [object Object].onWindowOpen [as _onTimeout] (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/main.js:144:57) at Timer.listOnTimeout (timers.js:89:15)
ImportError
def execute(args, parser): from ..base.context import context from .common import stdout_json prefix = context.prefix_w_legacy_search regex = args.regex if args.full_name: regex = r"^%s$" % regex if args.revisions: from ..history import History h = History(prefix) if isfile(h.path): if not context.json: h.print_log() else: stdout_json(h.object_log()) else: from ..exceptions import CondaFileNotFoundError raise CondaFileNotFoundError(h.path) return if args.explicit: print_explicit(prefix, args.md5) return if args.canonical: format = "canonical" elif args.export: format = "export" else: format = "human" if context.json: format = "canonical" exitcode = print_packages( prefix, regex, format, piplist=args.pip, json=context.json, show_channel_urls=context.show_channel_urls, ) return exitcode
def execute(args, parser): prefix = context.prefix_w_legacy_search regex = args.regex if args.full_name: regex = r"^%s$" % regex if args.revisions: from ..history import History h = History(prefix) if isfile(h.path): if not context.json: h.print_log() else: stdout_json(h.object_log()) else: raise CondaFileNotFoundError(h.path) return if args.explicit: print_explicit(prefix, args.md5) return if args.canonical: format = "canonical" elif args.export: format = "export" else: format = "human" if context.json: format = "canonical" exitcode = print_packages( prefix, regex, format, piplist=args.pip, json=context.json, show_channel_urls=context.show_channel_urls, ) return exitcode
https://github.com/conda/conda/issues/5028
Traceback (most recent call last): File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 98, in _main imported = importlib.import_module(module) File "/Users/tasalta/anaconda/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/cli/main_list.py", line 20, in <module> from ..egg_info import get_egg_info File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/egg_info.py", line 15, in <module> from .misc import rel_path File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/misc.py", line 19, in <module> from .core.index import get_index, _supplement_index_with_cache File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/index.py", line 9, in <module> from .repodata import collect_all_repodata File "/Users/tasalta/anaconda/lib/python2.7/site-packages/conda/core/repodata.py", line 21, in <module> from requests.packages.urllib3.exceptions import InsecureRequestWarning ImportError: cannot import name InsecureRequestWarning at throwCondaError (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:117:9) at runConda (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:146:5) at Object.info (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/conda.js:395:10) at Object.isGLCLauncherReady (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/utils/systemState.js:207:27) at [object Object].onWindowOpen [as _onTimeout] (/Applications/GraphLab Create Launcher.app/Contents/Resources/app.asar/main.js:144:57) at Timer.listOnTimeout (timers.js:89:15)
ImportError
def _init_packages_map(self): if self.__packages_map is not None: return self.__packages_map self.__packages_map = __packages_map = {} pkgs_dir = self.pkgs_dir if not isdir(pkgs_dir): return __packages_map def _add_entry(__packages_map, pkgs_dir, package_filename): if not package_filename.endswith(CONDA_TARBALL_EXTENSION): package_filename += CONDA_TARBALL_EXTENSION dist = first( self.urls_data, lambda x: basename(x) == package_filename, apply=Dist ) if not dist: dist = Dist.from_string(package_filename, channel_override=UNKNOWN_CHANNEL) pc_entry = PackageCacheEntry.make_legacy(pkgs_dir, dist) __packages_map[pc_entry.dist] = pc_entry def dedupe_pkgs_dir_contents(pkgs_dir_contents): # if both 'six-1.10.0-py35_0/' and 'six-1.10.0-py35_0.tar.bz2' are in pkgs_dir, # only 'six-1.10.0-py35_0.tar.bz2' will be in the return contents if not pkgs_dir_contents: return [] contents = [] def _process(x, y): if x + CONDA_TARBALL_EXTENSION != y: contents.append(x) return y last = reduce(_process, sorted(pkgs_dir_contents)) _process(last, contents and contents[-1] or "") return contents pkgs_dir_contents = dedupe_pkgs_dir_contents(listdir(pkgs_dir)) for base_name in pkgs_dir_contents: full_path = join(pkgs_dir, base_name) if islink(full_path): continue elif ( (isdir(full_path) and isfile(join(full_path, "info", "index.json"))) or isfile(full_path) and full_path.endswith(CONDA_TARBALL_EXTENSION) ): _add_entry(__packages_map, pkgs_dir, base_name) return __packages_map
def _init_packages_map(self): if self.__packages_map is not None: return self.__packages_map self.__packages_map = __packages_map = {} pkgs_dir = self.pkgs_dir if not isdir(pkgs_dir): return __packages_map def _add_entry(__packages_map, pkgs_dir, package_filename): if not package_filename.endswith(CONDA_TARBALL_EXTENSION): package_filename += CONDA_TARBALL_EXTENSION dist = first( self.urls_data, lambda x: basename(x) == package_filename, apply=Dist ) if not dist: dist = Dist.from_string(package_filename, channel_override=UNKNOWN_CHANNEL) pc_entry = PackageCacheEntry.make_legacy(pkgs_dir, dist) __packages_map[pc_entry.dist] = pc_entry def dedupe_pkgs_dir_contents(pkgs_dir_contents): # if both 'six-1.10.0-py35_0/' and 'six-1.10.0-py35_0.tar.bz2' are in pkgs_dir, # only 'six-1.10.0-py35_0.tar.bz2' will be in the return contents contents = [] def _process(x, y): if x + CONDA_TARBALL_EXTENSION != y: contents.append(x) return y last = reduce(_process, sorted(pkgs_dir_contents)) _process(last, contents and contents[-1] or "") return contents pkgs_dir_contents = dedupe_pkgs_dir_contents(listdir(pkgs_dir)) for base_name in pkgs_dir_contents: full_path = join(pkgs_dir, base_name) if islink(full_path): continue elif ( (isdir(full_path) and isfile(join(full_path, "info", "index.json"))) or isfile(full_path) and full_path.endswith(CONDA_TARBALL_EXTENSION) ): _add_entry(__packages_map, pkgs_dir, base_name) return __packages_map
https://github.com/conda/conda/issues/4840
$ conda install conda=4.3.13 Fetching package metadata ......... Solving package specifications: . Package plan for installation in environment /localdisk/work/tmtomash/miniconda3: The following packages will be DOWNGRADED due to dependency conflicts: conda: 4.3.14-py35_0 --> 4.3.13-py35_0 Proceed ([y]/n)? y An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.3.14 conda is private : False conda-env version : 4.3.14 conda-build version : 2.1.5 python version : 3.5.2.final.0 requests version : 2.12.4 root environment : /localdisk/work/tmtomash/miniconda3 (writable) default environment : /localdisk/work/tmtomash/miniconda3 envs directories : /localdisk/work/tmtomash/miniconda3/envs /nfs/site/home/tmtomash/.conda/envs package cache : /localdisk/work/tmtomash/miniconda3/pkgs /nfs/site/home/tmtomash/.conda/pkgs channel URLs : https://repo.continuum.io/pkgs/free/linux-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/linux-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/linux-64 https://repo.continuum.io/pkgs/pro/noarch config file : /nfs/site/home/tmtomash/.condarc offline mode : False user-agent : conda/4.3.14 requests/2.12.4 CPython/3.5.2 Linux/4.4.0-59-generic debian/stretch/sid glibc/2.23 UID:GID : 11573498:22002 `$ /localdisk/work/tmtomash/miniconda3/bin/conda install conda=4.3.13` Traceback (most recent call last): File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/cli/main.py", line 134, in _main exit_code = args.func(args, p) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/cli/main_install.py", line 80, in execute install(args, parser, 'install') File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/cli/install.py", line 359, in install execute_actions(actions, index, verbose=not context.quiet) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/plan.py", line 798, in execute_actions plan = plan_from_actions(actions, index) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/plan.py", line 338, in plan_from_actions plan = inject_UNLINKLINKTRANSACTION(plan, index, prefix) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/plan.py", line 302, in inject_UNLINKLINKTRANSACTION pfe.prepare() File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 465, in prepare for dist in self.link_dists) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 465, in <genexpr> for dist in self.link_dists) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 388, in make_actions_for_dist key=lambda pce: pce and pce.is_extracted and pce.tarball_matches_md5_if(md5) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/_vendor/auxlib/collection.py", line 88, in first return next((apply(x) for x in seq if key(x)), default() if callable(default) else default) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/_vendor/auxlib/collection.py", line 88, in <genexpr> return next((apply(x) for x in seq if key(x)), default() if callable(default) else default) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 387, in <genexpr> (PackageCache(pkgs_dir).get(dist) for pkgs_dir in context.pkgs_dirs), File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 347, in get return self._packages_map.get(dist, default) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 251, in _packages_map return self.__packages_map or self._init_packages_map() File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 287, in _init_packages_map pkgs_dir_contents = dedupe_pkgs_dir_contents(listdir(pkgs_dir)) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 283, in dedupe_pkgs_dir_contents last = reduce(_process, sorted(pkgs_dir_contents)) TypeError: reduce() of empty sequence with no initial value
TypeError
def dedupe_pkgs_dir_contents(pkgs_dir_contents): # if both 'six-1.10.0-py35_0/' and 'six-1.10.0-py35_0.tar.bz2' are in pkgs_dir, # only 'six-1.10.0-py35_0.tar.bz2' will be in the return contents if not pkgs_dir_contents: return [] contents = [] def _process(x, y): if x + CONDA_TARBALL_EXTENSION != y: contents.append(x) return y last = reduce(_process, sorted(pkgs_dir_contents)) _process(last, contents and contents[-1] or "") return contents
def dedupe_pkgs_dir_contents(pkgs_dir_contents): # if both 'six-1.10.0-py35_0/' and 'six-1.10.0-py35_0.tar.bz2' are in pkgs_dir, # only 'six-1.10.0-py35_0.tar.bz2' will be in the return contents contents = [] def _process(x, y): if x + CONDA_TARBALL_EXTENSION != y: contents.append(x) return y last = reduce(_process, sorted(pkgs_dir_contents)) _process(last, contents and contents[-1] or "") return contents
https://github.com/conda/conda/issues/4840
$ conda install conda=4.3.13 Fetching package metadata ......... Solving package specifications: . Package plan for installation in environment /localdisk/work/tmtomash/miniconda3: The following packages will be DOWNGRADED due to dependency conflicts: conda: 4.3.14-py35_0 --> 4.3.13-py35_0 Proceed ([y]/n)? y An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.3.14 conda is private : False conda-env version : 4.3.14 conda-build version : 2.1.5 python version : 3.5.2.final.0 requests version : 2.12.4 root environment : /localdisk/work/tmtomash/miniconda3 (writable) default environment : /localdisk/work/tmtomash/miniconda3 envs directories : /localdisk/work/tmtomash/miniconda3/envs /nfs/site/home/tmtomash/.conda/envs package cache : /localdisk/work/tmtomash/miniconda3/pkgs /nfs/site/home/tmtomash/.conda/pkgs channel URLs : https://repo.continuum.io/pkgs/free/linux-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/linux-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/linux-64 https://repo.continuum.io/pkgs/pro/noarch config file : /nfs/site/home/tmtomash/.condarc offline mode : False user-agent : conda/4.3.14 requests/2.12.4 CPython/3.5.2 Linux/4.4.0-59-generic debian/stretch/sid glibc/2.23 UID:GID : 11573498:22002 `$ /localdisk/work/tmtomash/miniconda3/bin/conda install conda=4.3.13` Traceback (most recent call last): File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/exceptions.py", line 573, in conda_exception_handler return_value = func(*args, **kwargs) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/cli/main.py", line 134, in _main exit_code = args.func(args, p) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/cli/main_install.py", line 80, in execute install(args, parser, 'install') File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/cli/install.py", line 359, in install execute_actions(actions, index, verbose=not context.quiet) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/plan.py", line 798, in execute_actions plan = plan_from_actions(actions, index) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/plan.py", line 338, in plan_from_actions plan = inject_UNLINKLINKTRANSACTION(plan, index, prefix) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/plan.py", line 302, in inject_UNLINKLINKTRANSACTION pfe.prepare() File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 465, in prepare for dist in self.link_dists) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 465, in <genexpr> for dist in self.link_dists) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 388, in make_actions_for_dist key=lambda pce: pce and pce.is_extracted and pce.tarball_matches_md5_if(md5) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/_vendor/auxlib/collection.py", line 88, in first return next((apply(x) for x in seq if key(x)), default() if callable(default) else default) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/_vendor/auxlib/collection.py", line 88, in <genexpr> return next((apply(x) for x in seq if key(x)), default() if callable(default) else default) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 387, in <genexpr> (PackageCache(pkgs_dir).get(dist) for pkgs_dir in context.pkgs_dirs), File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 347, in get return self._packages_map.get(dist, default) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 251, in _packages_map return self.__packages_map or self._init_packages_map() File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 287, in _init_packages_map pkgs_dir_contents = dedupe_pkgs_dir_contents(listdir(pkgs_dir)) File "/localdisk/work/tmtomash/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 283, in dedupe_pkgs_dir_contents last = reduce(_process, sorted(pkgs_dir_contents)) TypeError: reduce() of empty sequence with no initial value
TypeError
def error(self, message): import re import subprocess from .find_commands import find_executable exc = sys.exc_info()[1] if exc: # this is incredibly lame, but argparse stupidly does not expose # reasonable hooks for customizing error handling if hasattr(exc, "argument_name"): argument = self._get_action_from_name(exc.argument_name) else: argument = None if argument and argument.dest == "cmd": m = re.compile(r"invalid choice: '([\w\-]+)'").match(exc.message) if m: cmd = m.group(1) executable = find_executable("conda-" + cmd) if not executable: raise CommandNotFoundError(cmd) args = [find_executable("conda-" + cmd)] args.extend(sys.argv[2:]) p = subprocess.Popen(args) try: p.communicate() except KeyboardInterrupt: p.wait() finally: sys.exit(p.returncode) super(ArgumentParser, self).error(message)
def error(self, message): import re import subprocess from .find_commands import find_executable exc = sys.exc_info()[1] if exc: # this is incredibly lame, but argparse stupidly does not expose # reasonable hooks for customizing error handling if hasattr(exc, "argument_name"): argument = self._get_action_from_name(exc.argument_name) else: argument = None if argument and argument.dest == "cmd": m = re.compile(r"invalid choice: '([\w\-]+)'").match(exc.message) if m: cmd = m.group(1) executable = find_executable("conda-" + cmd) if not executable: if cmd in build_commands: raise CommandNotFoundError( cmd, """ Error: You need to install conda-build in order to use the "conda %s" command.""" % cmd, ) else: message = "Error: Could not locate 'conda-%s'" % cmd possibilities = ( set(argument.choices.keys()) | build_commands | set(find_commands()) ) close = get_close_matches(cmd, possibilities) if close: message += "\n\nDid you mean one of these?\n" for s in close: message += " %s" % s raise CommandNotFoundError(cmd, message) args = [find_executable("conda-" + cmd)] args.extend(sys.argv[2:]) p = subprocess.Popen(args) try: p.communicate() except KeyboardInterrupt: p.wait() finally: sys.exit(p.returncode) super(ArgumentParser, self).error(message)
https://github.com/conda/conda/issues/4944
(root) [root@d4cb01a1b5b6 ~]# conda activate Traceback (most recent call last): File "/conda/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/conda/lib/python2.7/site-packages/conda/cli/main.py", line 161, in main raise CommandNotFoundError(argv1, message) TypeError: __init__() takes exactly 2 arguments (3 given)
TypeError
def main(*args): if not args: args = sys.argv if not args: args = sys.argv log.debug("conda.cli.main called with %s", args) if len(args) > 1: try: argv1 = args[1].strip() if argv1.startswith(".."): import conda.cli.activate as activate activate.main() return if argv1 in ("activate", "deactivate"): from ..exceptions import CommandNotFoundError raise CommandNotFoundError(argv1) except Exception as e: from ..exceptions import handle_exception return handle_exception(e) from ..exceptions import conda_exception_handler return conda_exception_handler(_main, *args)
def main(*args): if not args: args = sys.argv if not args: args = sys.argv log.debug("conda.cli.main called with %s", args) if len(args) > 1: try: argv1 = args[1].strip() if argv1.startswith(".."): import conda.cli.activate as activate activate.main() return if argv1 in ("activate", "deactivate"): message = "'%s' is not a conda command.\n" % argv1 from ..common.compat import on_win if not on_win: message += ' Did you mean "source %s" ?\n' % " ".join(args[1:]) from ..exceptions import CommandNotFoundError raise CommandNotFoundError(argv1, message) except Exception as e: from ..exceptions import handle_exception return handle_exception(e) from ..exceptions import conda_exception_handler return conda_exception_handler(_main, *args)
https://github.com/conda/conda/issues/4944
(root) [root@d4cb01a1b5b6 ~]# conda activate Traceback (most recent call last): File "/conda/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/conda/lib/python2.7/site-packages/conda/cli/main.py", line 161, in main raise CommandNotFoundError(argv1, message) TypeError: __init__() takes exactly 2 arguments (3 given)
TypeError
def __init__(self, command): build_commands = { "build", "convert", "develop", "index", "inspect", "metapackage", "render", "skeleton", } needs_source = {"activate", "deactivate"} if command in build_commands: message = dals(""" You need to install conda-build in order to use the 'conda %(command)s' command. """) elif command in needs_source and not on_win: message = dals(""" '%(command)s is not a conda command. Did you mean 'source %(command)s'? """) else: message = "Conda could not find the command: '%(command)s'" super(CommandNotFoundError, self).__init__(message, command=command)
def __init__(self, command): message = "Conda could not find the command: '%(command)s'" super(CommandNotFoundError, self).__init__(message, command=command)
https://github.com/conda/conda/issues/4944
(root) [root@d4cb01a1b5b6 ~]# conda activate Traceback (most recent call last): File "/conda/bin/conda", line 6, in <module> sys.exit(conda.cli.main()) File "/conda/lib/python2.7/site-packages/conda/cli/main.py", line 161, in main raise CommandNotFoundError(argv1, message) TypeError: __init__() takes exactly 2 arguments (3 given)
TypeError
def read_mod_and_etag(path): with open(path, "rb") as f: try: with closing(mmap(f.fileno(), 0, access=ACCESS_READ)) as m: match_objects = take(3, re.finditer(REPODATA_HEADER_RE, m)) result = dict(map(ensure_unicode, mo.groups()) for mo in match_objects) return result except (BufferError, ValueError): # BufferError: cannot close exported pointers exist # https://github.com/conda/conda/issues/4592 # ValueError: cannot mmap an empty file return {}
def read_mod_and_etag(path): with open(path, "rb") as f: try: with closing(mmap(f.fileno(), 0, access=ACCESS_READ)) as m: match_objects = take(3, re.finditer(REPODATA_HEADER_RE, m)) result = dict(map(ensure_unicode, mo.groups()) for mo in match_objects) return result except ValueError: # ValueError: cannot mmap an empty file return {}
https://github.com/conda/conda/issues/4592
PS C:\> conda update conda Fetching package metadata ...An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : win-64 conda version : 4.3.7 conda is private : False conda-env version : 4.3.7 conda-build version : 1.21.6 python version : 3.4.0.final.0 requests version : 2.12.4 root environment : C:\Anaconda3 (writable) default environment : C:\Anaconda3 envs directories : C:\Anaconda3\envs package cache : C:\Anaconda3\pkgs channel URLs : https://repo.continuum.io/pkgs/free/win-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/win-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/win-64 https://repo.continuum.io/pkgs/pro/noarch https://repo.continuum.io/pkgs/msys2/win-64 https://repo.continuum.io/pkgs/msys2/noarch config file : None offline mode : False user-agent : conda/4.3.7 requests/2.12.4 CPython/3.4.0 Windows/7 Windows/6.1.7601 `$ C:\Anaconda3\Scripts\conda-script.py update conda` Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\conda\exceptions.py", line 617, in conda_exception_handler return_value = func(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\conda\cli\main.py", line 137, in _main exit_code = args.func(args, p) File "C:\Anaconda3\lib\site-packages\conda\cli\main_update.py", line 65, in execute install(args, parser, 'update') File "C:\Anaconda3\lib\site-packages\conda\cli\install.py", line 210, in install unknown=index_args['unknown'], prefix=prefix) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 120, in get_index index = fetch_index(channel_priority_map, use_cache=use_cache) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 445, in fetch_index repodatas = _collect_repodatas(use_cache, urls) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 433, in _collect_repodatas repodatas = _collect_repodatas_serial(use_cache, urls) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 401, in _collect_repodatas_serial for url in urls] File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 401, in <listcomp> for url in urls] File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 141, in func res = f(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 364, in fetch_repodata mod_etag_headers = read_mod_and_etag(cache_path) File "C:\Anaconda3\lib\site-packages\conda\core\index.py", line 153, in read_mod_and_etag return result File "C:\Anaconda3\lib\contextlib.py", line 152, in __exit__ self.thing.close() BufferError: cannot close exported pointers exist PS C:\>
BufferError
def execute(self): # I hate inline imports, but I guess it's ok since we're importing from the conda.core # The alternative is passing the the classes to ExtractPackageAction __init__ from .package_cache import PackageCache, PackageCacheEntry log.trace("extracting %s => %s", self.source_full_path, self.target_full_path) if lexists(self.hold_path): rm_rf(self.hold_path) if lexists(self.target_full_path): try: backoff_rename(self.target_full_path, self.hold_path) except (IOError, OSError) as e: if e.errno == EXDEV: # OSError(18, 'Invalid cross-device link') # https://github.com/docker/docker/issues/25409 # ignore, but we won't be able to roll back log.debug( "Invalid cross-device link on rename %s => %s", self.target_full_path, self.hold_path, ) rm_rf(self.target_full_path) else: raise extract_tarball(self.source_full_path, self.target_full_path) target_package_cache = PackageCache(self.target_pkgs_dir) recorded_url = target_package_cache.urls_data.get_url(self.source_full_path) dist = ( Dist(recorded_url) if recorded_url else Dist(path_to_url(self.source_full_path)) ) package_cache_entry = PackageCacheEntry.make_legacy(self.target_pkgs_dir, dist) target_package_cache[package_cache_entry.dist] = package_cache_entry
def execute(self): # I hate inline imports, but I guess it's ok since we're importing from the conda.core # The alternative is passing the the classes to ExtractPackageAction __init__ from .package_cache import PackageCache, PackageCacheEntry log.trace("extracting %s => %s", self.source_full_path, self.target_full_path) if lexists(self.hold_path): rm_rf(self.hold_path) if lexists(self.target_full_path): backoff_rename(self.target_full_path, self.hold_path) extract_tarball(self.source_full_path, self.target_full_path) target_package_cache = PackageCache(self.target_pkgs_dir) recorded_url = target_package_cache.urls_data.get_url(self.source_full_path) dist = ( Dist(recorded_url) if recorded_url else Dist(path_to_url(self.source_full_path)) ) package_cache_entry = PackageCacheEntry.make_legacy(self.target_pkgs_dir, dist) target_package_cache[package_cache_entry.dist] = package_cache_entry
https://github.com/conda/conda/issues/4309
Traceback (most recent call last): File "/root/miniconda3/lib/python3.5/site-packages/conda/exceptions.py", line 617, in conda_exception_handler return_value = func(*args, **kwargs) File "/root/miniconda3/lib/python3.5/site-packages/conda_env/cli/main_create.py", line 112, in execute installer.install(prefix, pkg_specs, args, env) File "/root/miniconda3/lib/python3.5/site-packages/conda_env/installers/conda.py", line 37, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/root/miniconda3/lib/python3.5/site-packages/conda/plan.py", line 837, in execute_actions execute_instructions(plan, index, verbose) File "/root/miniconda3/lib/python3.5/site-packages/conda/instructions.py", line 258, in execute_instructions cmd(state, arg) File "/root/miniconda3/lib/python3.5/site-packages/conda/instructions.py", line 111, in PROGRESSIVEFETCHEXTRACT_CMD progressive_fetch_extract.execute() File "/root/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 467, in execute self._execute_action(action) File "/root/miniconda3/lib/python3.5/site-packages/conda/core/package_cache.py", line 489, in _execute_action raise CondaMultiError(exceptions) conda.CondaMultiError: OSError(18, 'Invalid cross-device link') OSError(18, 'Invalid cross-device link') OSError(18, 'Invalid cross-device link')
conda.CondaMultiError
def box(self, instance, val): if isinstance(val, string_types): val = val.replace("-", "").replace("_", "").lower() if val == "hard": val = LinkType.hardlink elif val == "soft": val = LinkType.softlink return super(LinkTypeField, self).box(instance, val)
def box(self, instance, val): if isinstance(val, string_types): val = val.replace("-", "").replace("_", "").lower() return super(LinkTypeField, self).box(instance, val)
https://github.com/conda/conda/issues/4398
An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : osx-64 conda version : 4.3.6 conda is private : False conda-env version : 4.3.6 conda-build version : 1.21.5 python version : 2.7.13.final.0 requests version : 2.12.4 root environment : /Users/mike/anaconda (writable) default environment : /Users/mike/anaconda envs directories : /Users/mike/anaconda/envs package cache : /Users/mike/anaconda/pkgs channel URLs : https://conda.anaconda.org/hydrocomputing/osx-64 https://conda.anaconda.org/hydrocomputing/noarch https://repo.continuum.io/pkgs/free/osx-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/osx-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/osx-64 https://repo.continuum.io/pkgs/pro/noarch https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch https://conda.anaconda.org/Esri/osx-64 https://conda.anaconda.org/Esri/noarch config file : /Users/mike/.condarc offline mode : False user-agent : conda/4.3.6 requests/2.12.4 CPython/2.7.13 Darwin/15.6.0 OSX/10.11.6 UID:GID : 501:20 `$ /Users/mike/anaconda/bin/conda install numpy` Traceback (most recent call last): File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 617, in conda_exception_handler return_value = func(*args, **kwargs) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 137, in _main exit_code = args.func(args, p) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/cli/main_install.py", line 80, in execute install(args, parser, 'install') File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 136, in install linked_dists = install_linked(prefix) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/core/linked_data.py", line 121, in linked return set(linked_data(prefix, ignore_channels=ignore_channels).keys()) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/core/linked_data.py", line 113, in linked_data load_linked_data(prefix, dist_name, ignore_channels=ignore_channels) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/core/linked_data.py", line 66, in load_linked_data linked_data_[prefix][dist] = rec = IndexRecord(**rec) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 702, in __call__ instance = super(EntityType, cls).__call__(*args, **kwargs) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 719, in __init__ setattr(self, key, kwargs[key]) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 831, in __setattr__ super(ImmutableEntity, self).__setattr__(attribute, value) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 424, in __set__ instance.__dict__[self.name] = self.validate(instance, self.box(instance, val)) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 658, in box return val if isinstance(val, self._type) else self._type(**val) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 702, in __call__ instance = super(EntityType, cls).__call__(*args, **kwargs) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 719, in __init__ setattr(self, key, kwargs[key]) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 424, in __set__ instance.__dict__[self.name] = self.validate(instance, self.box(instance, val)) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/models/index_record.py", line 15, in box return super(LinkTypeField, self).box(instance, val) File "/Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 557, in box raise ValidationError(val, msg=e1) ValidationError: hard is not a valid LinkType
ValidationError
def remove_actions(prefix, specs, index, force=False, pinned=True): r = Resolve(index) linked = linked_data(prefix) linked_dists = [d for d in linked.keys()] if force: mss = list(map(MatchSpec, specs)) nlinked = { r.package_name(dist): dist for dist in linked_dists if not any(r.match(ms, dist) for ms in mss) } else: add_defaults_to_specs(r, linked_dists, specs, update=True) nlinked = { r.package_name(dist): dist for dist in (Dist(fn) for fn in r.remove(specs, r.installed)) } if pinned: pinned_specs = get_pinned_specs(prefix) log.debug("Pinned specs=%s" % pinned_specs) linked = {r.package_name(dist): dist for dist in linked_dists} actions = ensure_linked_actions(r.dependency_sort(nlinked), prefix) for old_dist in reversed(r.dependency_sort(linked)): # dist = old_fn + '.tar.bz2' name = r.package_name(old_dist) if old_dist == nlinked.get(name): continue if pinned and any(r.match(ms, old_dist) for ms in pinned_specs): msg = "Cannot remove %s because it is pinned. Use --no-pin to override." raise CondaRuntimeError(msg % old_dist.to_filename()) if ( context.conda_in_root and name == "conda" and name not in nlinked and not context.force ): if any(s.split(" ", 1)[0] == "conda" for s in specs): raise RemoveError("'conda' cannot be removed from the root environment") else: raise RemoveError( "Error: this 'remove' command cannot be executed because it\n" "would require removing 'conda' dependencies" ) add_unlink(actions, old_dist) return actions
def remove_actions(prefix, specs, index, force=False, pinned=True): r = Resolve(index) linked = linked_data(prefix) linked_dists = [d for d in linked.keys()] if force: mss = list(map(MatchSpec, specs)) nlinked = { r.package_name(dist): dist for dist in linked_dists if not any(r.match(ms, dist) for ms in mss) } else: add_defaults_to_specs(r, linked_dists, specs, update=True) nlinked = { r.package_name(dist): dist for dist in (Dist(fn) for fn in r.remove(specs, r.installed)) } if pinned: pinned_specs = get_pinned_specs(prefix) log.debug("Pinned specs=%s" % pinned_specs) linked = {r.package_name(dist): dist for dist in linked_dists} actions = ensure_linked_actions(r.dependency_sort(nlinked), prefix) for old_dist in reversed(r.dependency_sort(linked)): # dist = old_fn + '.tar.bz2' name = r.package_name(old_dist) if old_dist == nlinked.get(name): continue if pinned and any(r.match(ms, old_dist.to_filename()) for ms in pinned_specs): msg = "Cannot remove %s because it is pinned. Use --no-pin to override." raise CondaRuntimeError(msg % old_dist.to_filename()) if ( context.conda_in_root and name == "conda" and name not in nlinked and not context.force ): if any(s.split(" ", 1)[0] == "conda" for s in specs): raise RemoveError("'conda' cannot be removed from the root environment") else: raise RemoveError( "Error: this 'remove' command cannot be executed because it\n" "would require removing 'conda' dependencies" ) add_unlink(actions, old_dist) return actions
https://github.com/conda/conda/issues/4324
Current conda install: platform : linux-64 conda version : 4.3.4 conda is private : False conda-env version : 4.3.4 conda-build version : not installed python version : 2.7.13.final.0 requests version : 2.12.4 root environment : /home/travis/miniconda (writable) default environment : /home/travis/miniconda/envs/test envs directories : /home/travis/miniconda/envs package cache : /home/travis/miniconda/pkgs channel URLs : https://conda.anaconda.org/astropy-ci-extras astropy/linux-64 https://conda.anaconda.org/astropy-ci-extras astropy/noarch https://conda.anaconda.org/astropy/linux-64 https://conda.anaconda.org/astropy/noarch https://conda.anaconda.org/astropy-ci-extras/linux-64 https://conda.anaconda.org/astropy-ci-extras/noarch https://repo.continuum.io/pkgs/free/linux-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/linux-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/linux-64 https://repo.continuum.io/pkgs/pro/noarch config file : /home/travis/.condarc offline mode : False user-agent : conda/4.3.4 requests/2.12.4 CPython/2.7.13 Linux/4.8.12-040812-generic debian/wheezy/sid glibc/2.15 UID:GID : 1000:1000 `$ /home/travis/miniconda/envs/test/bin/conda remove astropy --force` Traceback (most recent call last): File "/home/travis/miniconda/lib/python2.7/site-packages/conda/exceptions.py", line 617, in conda_exception_handler return_value = func(*args, **kwargs) File "/home/travis/miniconda/lib/python2.7/site-packages/conda/cli/main.py", line 158, in _main exit_code = args.func(args, p) File "/home/travis/miniconda/lib/python2.7/site-packages/conda/cli/main_remove.py", line 164, in execute pinned=args.pinned)) File "/home/travis/miniconda/lib/python2.7/site-packages/conda/plan.py", line 776, in remove_actions if pinned and any(r.match(ms, old_dist.to_filename()) for ms in pinned_specs): File "/home/travis/miniconda/lib/python2.7/site-packages/conda/plan.py", line 776, in <genexpr> if pinned and any(r.match(ms, old_dist.to_filename()) for ms in pinned_specs): File "/home/travis/miniconda/lib/python2.7/site-packages/conda/resolve.py", line 474, in match rec = self.index[fkey] KeyError: u'astropy-1.0.3-np19py33_0.tar.bz2'
KeyError
def is_url(url): if not url: return False try: p = urlparse(url) return p.netloc is not None or p.scheme == "file" except LocationParseError: log.debug("Could not parse url ({0}).".format(url)) return False
def is_url(url): try: p = urlparse(url) return p.netloc is not None or p.scheme == "file" except LocationParseError: log.debug("Could not parse url ({0}).".format(url)) return False
https://github.com/conda/conda/issues/3910
An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : win-64 conda version : 4.2.12 conda is private : False conda-env version : 4.2.12 conda-build version : 2.0.7 python version : 3.5.2.final.0 requests version : 2.10.0 root environment : C:\Miniconda3 (writable) default environment : C:\Miniconda3\envs\test_conda envs directories : C:\Miniconda3\envs package cache : C:\Miniconda3\pkgs channel URLs : https://repo.continuum.io/pkgs/free/win-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/pro/win-64 https://repo.continuum.io/pkgs/pro/noarch https://repo.continuum.io/pkgs/msys2/win-64 https://repo.continuum.io/pkgs/msys2/noarch config file : None offline mode : False `$ C:\Miniconda3\Scripts\conda-script.py install bzip2-1.0.6-vc14_3.tar.bz2 --dry-run` Traceback (most recent call last): File "C:\Miniconda3\lib\site-packages\conda\exceptions.py", line 479, in conda_exception_handler return_value = func(*args, **kwargs) File "C:\Miniconda3\lib\site-packages\conda\cli\main.py", line 145, in _main exit_code = args.func(args, p) File "C:\Miniconda3\lib\site-packages\conda\cli\main_install.py", line 80, in execute install(args, parser, 'install') File "C:\Miniconda3\lib\site-packages\conda\cli\install.py", line 209, in install explicit(args.packages, prefix, verbose=not context.quiet) File "C:\Miniconda3\lib\site-packages\conda\misc.py", line 66, in explicit if not is_url(url_p): File "C:\Miniconda3\lib\site-packages\conda\common\url.py", line 72, in is_url p = urlparse(url) File "C:\Miniconda3\lib\site-packages\conda\_vendor\auxlib\decorators.py", line 56, in _memoized_func result = func(*args, **kwargs) File "C:\Miniconda3\lib\site-packages\conda\common\url.py", line 55, in urlparse if on_win and url.startswith('file:'): AttributeError: 'NoneType' object has no attribute 'startswith'
AttributeError
def _read_channel_configuration(scheme, host, port, path): # return location, name, scheme, auth, token path = path and path.rstrip("/") test_url = Url(host=host, port=port, path=path).url # Step 1. No path given; channel name is None if not path: return ( Url(host=host, port=port).url.rstrip("/"), None, scheme or None, None, None, ) # Step 2. migrated_custom_channels matches for name, location in sorted( context.migrated_custom_channels.items(), reverse=True, key=lambda x: len(x[0]) ): location, _scheme, _auth, _token = split_scheme_auth_token(location) if tokenized_conda_url_startswith(test_url, join_url(location, name)): # translate location to new location, with new credentials subname = test_url.replace(join_url(location, name), "", 1).strip("/") channel_name = join_url(name, subname) channel = _get_channel_for_name(channel_name) return ( channel.location, channel_name, channel.scheme, channel.auth, channel.token, ) # Step 3. migrated_channel_aliases matches for migrated_alias in context.migrated_channel_aliases: if test_url.startswith(migrated_alias.location): name = test_url.replace(migrated_alias.location, "", 1).strip("/") ca = context.channel_alias return ca.location, name, ca.scheme, ca.auth, ca.token # Step 4. custom_channels matches for name, channel in sorted( context.custom_channels.items(), reverse=True, key=lambda x: len(x[0]) ): that_test_url = join_url(channel.location, channel.name) if test_url.startswith(that_test_url): subname = test_url.replace(that_test_url, "", 1).strip("/") return ( channel.location, join_url(channel.name, subname), scheme, channel.auth, channel.token, ) # Step 5. channel_alias match ca = context.channel_alias if ca.location and test_url.startswith(ca.location): name = test_url.replace(ca.location, "", 1).strip("/") or None return ca.location, name, scheme, ca.auth, ca.token # Step 6. not-otherwise-specified file://-type urls if host is None: # this should probably only happen with a file:// type url assert port is None location, name = test_url.rsplit("/", 1) if not location: location = "/" _scheme, _auth, _token = "file", None, None return location, name, _scheme, _auth, _token # Step 7. fall through to host:port as channel_location and path as channel_name return ( Url(host=host, port=port).url.rstrip("/"), path.strip("/") or None, scheme or None, None, None, )
def _read_channel_configuration(scheme, host, port, path): # return location, name, scheme, auth, token test_url = Url(host=host, port=port, path=path).url.rstrip("/") # Step 1. migrated_custom_channels matches for name, location in sorted( context.migrated_custom_channels.items(), reverse=True, key=lambda x: len(x[0]) ): location, _scheme, _auth, _token = split_scheme_auth_token(location) if tokenized_conda_url_startswith(test_url, join_url(location, name)): # translate location to new location, with new credentials subname = test_url.replace(join_url(location, name), "", 1).strip("/") channel_name = join_url(name, subname) channel = _get_channel_for_name(channel_name) return ( channel.location, channel_name, channel.scheme, channel.auth, channel.token, ) # Step 2. migrated_channel_aliases matches for migrated_alias in context.migrated_channel_aliases: if test_url.startswith(migrated_alias.location): name = test_url.replace(migrated_alias.location, "", 1).strip("/") ca = context.channel_alias return ca.location, name, ca.scheme, ca.auth, ca.token # Step 3. custom_channels matches for name, channel in sorted( context.custom_channels.items(), reverse=True, key=lambda x: len(x[0]) ): that_test_url = join_url(channel.location, channel.name) if test_url.startswith(that_test_url): subname = test_url.replace(that_test_url, "", 1).strip("/") return ( channel.location, join_url(channel.name, subname), scheme, channel.auth, channel.token, ) # Step 4. channel_alias match ca = context.channel_alias if ca.location and test_url.startswith(ca.location): name = test_url.replace(ca.location, "", 1).strip("/") or None return ca.location, name, scheme, ca.auth, ca.token # Step 5. not-otherwise-specified file://-type urls if host is None: # this should probably only happen with a file:// type url assert port is None location, name = test_url.rsplit("/", 1) if not location: location = "/" _scheme, _auth, _token = "file", None, None return location, name, _scheme, _auth, _token # Step 6. fall through to host:port as channel_location and path as channel_name return ( Url(host=host, port=port).url.rstrip("/"), path.strip("/") or None, scheme or None, None, None, )
https://github.com/conda/conda/issues/3717
Traceback (most recent call last): File "C:\Miniconda3\lib\site-packages\conda\exceptions.py", line 479, in c onda_exception_handler return_value = func(*args, **kwargs) File "C:\Miniconda3\lib\site-packages\conda\cli\main.py", line 145, in _ma in exit_code = args.func(args, p) File "C:\Miniconda3\lib\site-packages\conda\cli\main_update.py", line 65, in execute install(args, parser, 'update') File "C:\Miniconda3\lib\site-packages\conda\cli\install.py", line 308, in install update_deps=context.update_dependencies) File "C:\Miniconda3\lib\site-packages\conda\plan.py", line 526, in install _actions force=force, always_copy=always_copy) File "C:\Miniconda3\lib\site-packages\conda\plan.py", line 308, in ensure_ linked_actions fetched_in = is_fetched(dist) File "C:\Miniconda3\lib\site-packages\conda\install.py", line 727, in is_f etched for fn in package_cache().get(dist, {}).get('files', ()): File "C:\Miniconda3\lib\site-packages\conda\install.py", line 675, in pack age_cache add_cached_package(pdir, url) File "C:\Miniconda3\lib\site-packages\conda\install.py", line 633, in add_ cached_package schannel = Channel(url).canonical_name File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 161, in __call__ c = Channel.from_value(value) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 211, in from_value return Channel.from_url(value) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 196, in from_url return parse_conda_channel_url(url) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 132, in parse_conda_channel_url configured_token) = _read_channel_configuration(scheme, host, port, path ) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 122, in _read_channel_configuration return (Url(host=host, port=port).url.rstrip('/'), path.strip('/') or No ne, AttributeError: 'NoneType' object has no attribute 'strip'
AttributeError
def canonical_name(self): for multiname, channels in iteritems(context.custom_multichannels): for channel in channels: if self.name == channel.name: return multiname for that_name in context.custom_channels: if self.name and tokenized_startswith( self.name.split("/"), that_name.split("/") ): return self.name if any( c.location == self.location for c in concatv((context.channel_alias,), context.migrated_channel_aliases) ): return self.name # fall back to the equivalent of self.base_url # re-defining here because base_url for MultiChannel is None return "%s://%s" % (self.scheme, join_url(self.location, self.name))
def canonical_name(self): for multiname, channels in iteritems(context.custom_multichannels): for channel in channels: if self.name == channel.name: return multiname for that_name in context.custom_channels: if tokenized_startswith(self.name.split("/"), that_name.split("/")): return self.name if any( c.location == self.location for c in concatv((context.channel_alias,), context.migrated_channel_aliases) ): return self.name # fall back to the equivalent of self.base_url # re-defining here because base_url for MultiChannel is None return "%s://%s/%s" % (self.scheme, self.location, self.name)
https://github.com/conda/conda/issues/3717
Traceback (most recent call last): File "C:\Miniconda3\lib\site-packages\conda\exceptions.py", line 479, in c onda_exception_handler return_value = func(*args, **kwargs) File "C:\Miniconda3\lib\site-packages\conda\cli\main.py", line 145, in _ma in exit_code = args.func(args, p) File "C:\Miniconda3\lib\site-packages\conda\cli\main_update.py", line 65, in execute install(args, parser, 'update') File "C:\Miniconda3\lib\site-packages\conda\cli\install.py", line 308, in install update_deps=context.update_dependencies) File "C:\Miniconda3\lib\site-packages\conda\plan.py", line 526, in install _actions force=force, always_copy=always_copy) File "C:\Miniconda3\lib\site-packages\conda\plan.py", line 308, in ensure_ linked_actions fetched_in = is_fetched(dist) File "C:\Miniconda3\lib\site-packages\conda\install.py", line 727, in is_f etched for fn in package_cache().get(dist, {}).get('files', ()): File "C:\Miniconda3\lib\site-packages\conda\install.py", line 675, in pack age_cache add_cached_package(pdir, url) File "C:\Miniconda3\lib\site-packages\conda\install.py", line 633, in add_ cached_package schannel = Channel(url).canonical_name File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 161, in __call__ c = Channel.from_value(value) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 211, in from_value return Channel.from_url(value) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 196, in from_url return parse_conda_channel_url(url) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 132, in parse_conda_channel_url configured_token) = _read_channel_configuration(scheme, host, port, path ) File "C:\Miniconda3\lib\site-packages\conda\models\channel.py", line 122, in _read_channel_configuration return (Url(host=host, port=port).url.rstrip('/'), path.strip('/') or No ne, AttributeError: 'NoneType' object has no attribute 'strip'
AttributeError
def replace_long_shebang(mode, data): if mode == FileMode.text: shebang_match = SHEBANG_REGEX.match(data) if shebang_match: whole_shebang, executable, options = shebang_match.groups() if len(whole_shebang) > 127: executable_name = executable.decode(UTF8).split("/")[-1] new_shebang = "#!/usr/bin/env %s%s" % ( executable_name, options.decode(UTF8), ) data = data.replace(whole_shebang, new_shebang.encode(UTF8)) else: # TODO: binary shebangs exist; figure this out in the future if text works well log.debug( "TODO: binary shebangs exist; figure this out in the future if text works well" ) return data
def replace_long_shebang(mode, data): if mode is FileMode.text: shebang_match = SHEBANG_REGEX.match(data) if shebang_match: whole_shebang, executable, options = shebang_match.groups() if len(whole_shebang) > 127: executable_name = executable.decode(UTF8).split("/")[-1] new_shebang = "#!/usr/bin/env %s%s" % ( executable_name, options.decode(UTF8), ) data = data.replace(whole_shebang, new_shebang.encode(UTF8)) else: # TODO: binary shebangs exist; figure this out in the future if text works well log.debug( "TODO: binary shebangs exist; figure this out in the future if text works well" ) return data
https://github.com/conda/conda/issues/3646
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/exceptions.py", line 472, in conda_exception_handler return_value = func(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/main.py", line 144, in _main exit_code = args.func(args, p) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/main_install.py", line 80, in execute install(args, parser, 'install') File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/install.py", line 420, in install raise CondaRuntimeError('RuntimeError: %s' % e) CondaRuntimeError: Runtime error: RuntimeError: Invalid mode: <conda.install.FileMode object at 0x10846b110>
CondaRuntimeError
def replace_prefix(mode, data, placeholder, new_prefix): if mode == FileMode.text: data = data.replace(placeholder.encode(UTF8), new_prefix.encode(UTF8)) elif mode == FileMode.binary: data = binary_replace(data, placeholder.encode(UTF8), new_prefix.encode(UTF8)) else: raise RuntimeError("Invalid mode: %r" % mode) return data
def replace_prefix(mode, data, placeholder, new_prefix): if mode is FileMode.text: data = data.replace(placeholder.encode(UTF8), new_prefix.encode(UTF8)) elif mode == FileMode.binary: data = binary_replace(data, placeholder.encode(UTF8), new_prefix.encode(UTF8)) else: raise RuntimeError("Invalid mode: %r" % mode) return data
https://github.com/conda/conda/issues/3646
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/exceptions.py", line 472, in conda_exception_handler return_value = func(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/main.py", line 144, in _main exit_code = args.func(args, p) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/main_install.py", line 80, in execute install(args, parser, 'install') File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/install.py", line 420, in install raise CondaRuntimeError('RuntimeError: %s' % e) CondaRuntimeError: Runtime error: RuntimeError: Invalid mode: <conda.install.FileMode object at 0x10846b110>
CondaRuntimeError
def update_prefix(path, new_prefix, placeholder=PREFIX_PLACEHOLDER, mode=FileMode.text): if on_win and mode == FileMode.text: # force all prefix replacements to forward slashes to simplify need to escape backslashes # replace with unix-style path separators new_prefix = new_prefix.replace("\\", "/") path = os.path.realpath(path) with open(path, "rb") as fi: original_data = data = fi.read() data = replace_prefix(mode, data, placeholder, new_prefix) if not on_win: data = replace_long_shebang(mode, data) if data == original_data: return st = os.lstat(path) with exp_backoff_fn(open, path, "wb") as fo: fo.write(data) os.chmod(path, stat.S_IMODE(st.st_mode))
def update_prefix(path, new_prefix, placeholder=PREFIX_PLACEHOLDER, mode=FileMode.text): if on_win and mode is FileMode.text: # force all prefix replacements to forward slashes to simplify need to escape backslashes # replace with unix-style path separators new_prefix = new_prefix.replace("\\", "/") path = os.path.realpath(path) with open(path, "rb") as fi: original_data = data = fi.read() data = replace_prefix(mode, data, placeholder, new_prefix) if not on_win: data = replace_long_shebang(mode, data) if data == original_data: return st = os.lstat(path) with exp_backoff_fn(open, path, "wb") as fo: fo.write(data) os.chmod(path, stat.S_IMODE(st.st_mode))
https://github.com/conda/conda/issues/3646
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/exceptions.py", line 472, in conda_exception_handler return_value = func(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/main.py", line 144, in _main exit_code = args.func(args, p) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/main_install.py", line 80, in execute install(args, parser, 'install') File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/conda/cli/install.py", line 420, in install raise CondaRuntimeError('RuntimeError: %s' % e) CondaRuntimeError: Runtime error: RuntimeError: Invalid mode: <conda.install.FileMode object at 0x10846b110>
CondaRuntimeError
def from_value(value): if value is None: return Channel(name="<unknown>") if hasattr(value, "decode"): value = value.decode(UTF8) if has_scheme(value): if value.startswith("file:") and on_win: value = value.replace("\\", "/") return Channel.from_url(value) elif value.startswith(("./", "..", "~", "/")) or is_windows_path(value): return Channel.from_url(path_to_url(value)) elif value.endswith(".tar.bz2"): if value.startswith("file:") and on_win: value = value.replace("\\", "/") return Channel.from_url(value) else: # at this point assume we don't have a bare (non-scheme) url # e.g. this would be bad: repo.continuum.io/pkgs/free if value in context.custom_multichannels: return MultiChannel(value, context.custom_multichannels[value]) else: return Channel.from_channel_name(value)
def from_value(value): if value is None: return Channel(name="<unknown>") elif has_scheme(value): if value.startswith("file:") and on_win: value = value.replace("\\", "/") return Channel.from_url(value) elif value.startswith(("./", "..", "~", "/")) or is_windows_path(value): return Channel.from_url(path_to_url(value)) elif value.endswith(".tar.bz2"): if value.startswith("file:") and on_win: value = value.replace("\\", "/") return Channel.from_url(value) else: # at this point assume we don't have a bare (non-scheme) url # e.g. this would be bad: repo.continuum.io/pkgs/free if value in context.custom_multichannels: return MultiChannel(value, context.custom_multichannels[value]) else: return Channel.from_channel_name(value)
https://github.com/conda/conda/issues/3655
Traceback (most recent call last): File "/usr1/eclark/anaconda3/lib/python3.4/site-packages/conda/exceptions.py", line 473, in conda_exception_handler return_value = func(*args, **kwargs) File "/usr1/eclark/anaconda3/lib/python3.4/site-packages/conda/cli/main.py", line 144, in _main exit_code = args.func(args, p) File "/usr1/eclark/anaconda3/lib/python3.4/site-packages/conda/cli/main_search.py", line 126, in execute execute_search(args, parser) File "/usr1/eclark/anaconda3/lib/python3.4/site-packages/conda/cli/main_search.py", line 268, in execute_search Channel(pkg.channel).canonical_name, File "/usr1/eclark/anaconda3/lib/python3.4/site-packages/conda/models/channel.py", line 44, in __call__ elif value.endswith('.tar.bz2'): TypeError: endswith first arg must be bytes or a tuple of bytes, not str
TypeError
def _main(): from ..base.context import context from ..gateways.logging import set_all_logger_level, set_verbosity from ..exceptions import CommandNotFoundError from ..utils import on_win log.debug("conda.cli.main called with %s", sys.argv) if len(sys.argv) > 1: argv1 = sys.argv[1] if argv1 in ("..activate", "..deactivate", "..checkenv", "..changeps1"): import conda.cli.activate as activate activate.main() return if argv1 in ("activate", "deactivate"): message = "'%s' is not a conda command.\n" % argv1 if not on_win: message += ' Did you mean "source %s" ?\n' % " ".join(sys.argv[1:]) raise CommandNotFoundError(argv1, message) if len(sys.argv) == 1: sys.argv.append("-h") p, sub_parsers = generate_parser() main_modules = [ "info", "help", "list", "search", "create", "install", "update", "remove", "config", "clean", "package", ] modules = ["conda.cli.main_" + suffix for suffix in main_modules] for module in modules: imported = importlib.import_module(module) imported.configure_parser(sub_parsers) if "update" in module: imported.configure_parser(sub_parsers, name="upgrade") if "remove" in module: imported.configure_parser(sub_parsers, name="uninstall") from conda.cli.find_commands import find_commands def completer(prefix, **kwargs): return [ i for i in list(sub_parsers.choices) + find_commands() if i.startswith(prefix) ] sub_parsers.completer = completer args = p.parse_args() context._add_argparse_args(args) if getattr(args, "json", False): # # Silence logging info to avoid interfering with JSON output # for logger in Logger.manager.loggerDict: # if logger not in ('fetch', 'progress'): # getLogger(logger).setLevel(CRITICAL + 1) for logger in ("print", "dotupdate", "stdoutlog", "stderrlog"): getLogger(logger).setLevel(CRITICAL + 1) if context.debug: set_all_logger_level(DEBUG) elif context.verbosity: set_verbosity(context.verbosity) log.debug("verbosity set to %s", context.verbosity) exit_code = args.func(args, p) if isinstance(exit_code, int): return exit_code
def _main(): log.debug("conda.cli.main called with %s", sys.argv) if len(sys.argv) > 1: argv1 = sys.argv[1] if argv1 in ("..activate", "..deactivate", "..checkenv", "..changeps1"): import conda.cli.activate as activate activate.main() return if argv1 in ("activate", "deactivate"): message = "'%s' is not a conda command.\n" % argv1 if not on_win: message += ' Did you mean "source %s" ?\n' % " ".join(sys.argv[1:]) raise CommandNotFoundError(argv1, message) if len(sys.argv) == 1: sys.argv.append("-h") p, sub_parsers = generate_parser() main_modules = [ "info", "help", "list", "search", "create", "install", "update", "remove", "config", "clean", "package", ] modules = ["conda.cli.main_" + suffix for suffix in main_modules] for module in modules: imported = importlib.import_module(module) imported.configure_parser(sub_parsers) if "update" in module: imported.configure_parser(sub_parsers, name="upgrade") if "remove" in module: imported.configure_parser(sub_parsers, name="uninstall") from conda.cli.find_commands import find_commands def completer(prefix, **kwargs): return [ i for i in list(sub_parsers.choices) + find_commands() if i.startswith(prefix) ] sub_parsers.completer = completer args = p.parse_args() context._add_argparse_args(args) if getattr(args, "json", False): # # Silence logging info to avoid interfering with JSON output # for logger in Logger.manager.loggerDict: # if logger not in ('fetch', 'progress'): # getLogger(logger).setLevel(CRITICAL + 1) for logger in ("print", "dotupdate", "stdoutlog", "stderrlog"): getLogger(logger).setLevel(CRITICAL + 1) if context.debug: set_all_logger_level(DEBUG) elif context.verbosity: set_verbosity(context.verbosity) log.debug("verbosity set to %s", context.verbosity) exit_code = args.func(args, p) if isinstance(exit_code, int): return exit_code
https://github.com/conda/conda/issues/3590
Traceback (most recent call last): File "/opt/anaconda/bin/conda", line 4, in <module> import conda.cli File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/__init__.py", line 8, in <module> from .main import main # NOQA File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 46, in <module> from ..base.context import context File "/opt/anaconda/lib/python2.7/site-packages/conda/base/context.py", line 252, in <module> context = Context(SEARCH_PATH, conda, None) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 692, in __init__ self._add_search_path(search_path) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 699, in _add_search_path return self._add_raw_data(load_file_configs(search_path)) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in load_file_configs raw_data = odict(kv for kv in chain.from_iterable(load_paths)) File "/opt/anaconda/lib/python2.7/collections.py", line 69, in __init__ self.__update(*args, **kwds) File "/opt/anaconda/lib/python2.7/_abcoll.py", line 571, in update for key, value in other: File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in <genexpr> raw_data = odict(kv for kv in chain.from_iterable(load_paths)) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 347, in _file_yaml_loader yield fullpath, YamlRawParameter.make_raw_parameters_from_file(fullpath) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 338, in make_raw_parameters_from_file ruamel_yaml = yaml_load(fh) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/yaml.py", line 26, in yaml_load return yaml.load(string, Loader=yaml.RoundTripLoader, version="1.2") File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/main.py", line 75, in load return loader.get_single_data() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/constructor.py", line 60, in get_single_data node = self.get_single_node() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/composer.py", line 48, in get_single_node self.get_event() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 136, in get_event self.current_event = self.state() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 150, in parse_stream_start token.move_comment(self.peek_token()) File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1543, in peek_token self._gather_comments() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1573, in _gather_comments self.fetch_more_tokens() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 239, in fetch_more_tokens return self.fetch_value() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 598, in fetch_value self.get_mark()) ruamel_yaml.scanner.ScannerError: mapping values are not allowed here in "/opt/anaconda/.condarc", line 4, column 8
ruamel_yaml.scanner.ScannerError
def main(): from ..exceptions import conda_exception_handler return conda_exception_handler(_main)
def main(): return conda_exception_handler(_main)
https://github.com/conda/conda/issues/3590
Traceback (most recent call last): File "/opt/anaconda/bin/conda", line 4, in <module> import conda.cli File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/__init__.py", line 8, in <module> from .main import main # NOQA File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 46, in <module> from ..base.context import context File "/opt/anaconda/lib/python2.7/site-packages/conda/base/context.py", line 252, in <module> context = Context(SEARCH_PATH, conda, None) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 692, in __init__ self._add_search_path(search_path) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 699, in _add_search_path return self._add_raw_data(load_file_configs(search_path)) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in load_file_configs raw_data = odict(kv for kv in chain.from_iterable(load_paths)) File "/opt/anaconda/lib/python2.7/collections.py", line 69, in __init__ self.__update(*args, **kwds) File "/opt/anaconda/lib/python2.7/_abcoll.py", line 571, in update for key, value in other: File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in <genexpr> raw_data = odict(kv for kv in chain.from_iterable(load_paths)) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 347, in _file_yaml_loader yield fullpath, YamlRawParameter.make_raw_parameters_from_file(fullpath) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 338, in make_raw_parameters_from_file ruamel_yaml = yaml_load(fh) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/yaml.py", line 26, in yaml_load return yaml.load(string, Loader=yaml.RoundTripLoader, version="1.2") File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/main.py", line 75, in load return loader.get_single_data() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/constructor.py", line 60, in get_single_data node = self.get_single_node() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/composer.py", line 48, in get_single_node self.get_event() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 136, in get_event self.current_event = self.state() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 150, in parse_stream_start token.move_comment(self.peek_token()) File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1543, in peek_token self._gather_comments() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1573, in _gather_comments self.fetch_more_tokens() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 239, in fetch_more_tokens return self.fetch_value() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 598, in fetch_value self.get_mark()) ruamel_yaml.scanner.ScannerError: mapping values are not allowed here in "/opt/anaconda/.condarc", line 4, column 8
ruamel_yaml.scanner.ScannerError
def make_raw_parameters_from_file(cls, filepath): with open(filepath, "r") as fh: try: ruamel_yaml = yaml_load(fh) except ScannerError as err: mark = err.problem_mark raise LoadError("Invalid YAML", filepath, mark.line, mark.column) return cls.make_raw_parameters(filepath, ruamel_yaml) or EMPTY_MAP
def make_raw_parameters_from_file(cls, filepath): with open(filepath, "r") as fh: ruamel_yaml = yaml_load(fh) return cls.make_raw_parameters(filepath, ruamel_yaml) or EMPTY_MAP
https://github.com/conda/conda/issues/3590
Traceback (most recent call last): File "/opt/anaconda/bin/conda", line 4, in <module> import conda.cli File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/__init__.py", line 8, in <module> from .main import main # NOQA File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 46, in <module> from ..base.context import context File "/opt/anaconda/lib/python2.7/site-packages/conda/base/context.py", line 252, in <module> context = Context(SEARCH_PATH, conda, None) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 692, in __init__ self._add_search_path(search_path) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 699, in _add_search_path return self._add_raw_data(load_file_configs(search_path)) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in load_file_configs raw_data = odict(kv for kv in chain.from_iterable(load_paths)) File "/opt/anaconda/lib/python2.7/collections.py", line 69, in __init__ self.__update(*args, **kwds) File "/opt/anaconda/lib/python2.7/_abcoll.py", line 571, in update for key, value in other: File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in <genexpr> raw_data = odict(kv for kv in chain.from_iterable(load_paths)) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 347, in _file_yaml_loader yield fullpath, YamlRawParameter.make_raw_parameters_from_file(fullpath) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 338, in make_raw_parameters_from_file ruamel_yaml = yaml_load(fh) File "/opt/anaconda/lib/python2.7/site-packages/conda/common/yaml.py", line 26, in yaml_load return yaml.load(string, Loader=yaml.RoundTripLoader, version="1.2") File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/main.py", line 75, in load return loader.get_single_data() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/constructor.py", line 60, in get_single_data node = self.get_single_node() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/composer.py", line 48, in get_single_node self.get_event() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 136, in get_event self.current_event = self.state() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 150, in parse_stream_start token.move_comment(self.peek_token()) File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1543, in peek_token self._gather_comments() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1573, in _gather_comments self.fetch_more_tokens() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 239, in fetch_more_tokens return self.fetch_value() File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 598, in fetch_value self.get_mark()) ruamel_yaml.scanner.ScannerError: mapping values are not allowed here in "/opt/anaconda/.condarc", line 4, column 8
ruamel_yaml.scanner.ScannerError
def collect_errors(self, instance, value, source="<<merged>>"): errors = super(MapParameter, self).collect_errors(instance, value) if isinstance(value, Mapping): element_type = self._element_type errors.extend( InvalidElementTypeError( self.name, val, source, type(val), element_type, key ) for key, val in iteritems(value) if not isinstance(val, element_type) ) return errors
def collect_errors(self, instance, value, source="<<merged>>"): errors = super(MapParameter, self).collect_errors(instance, value) element_type = self._element_type errors.extend( InvalidElementTypeError(self.name, val, source, type(val), element_type, key) for key, val in iteritems(value) if not isinstance(val, element_type) ) return errors
https://github.com/conda/conda/issues/3467
Traceback (most recent call last): File "C:\Anaconda3\lib\site-packages\conda\exceptions.py", line 472, in conda_exception_handler return_value = func(*args, **kwargs) File "C:\Anaconda3\lib\site-packages\conda\cli\main.py", line 144, in _main exit_code = args.func(args, p) File "C:\Anaconda3\lib\site-packages\conda\cli\main_update.py", line 65, in execute install(args, parser, 'update') File "C:\Anaconda3\lib\site-packages\conda\cli\install.py", line 139, in install context.validate_all() File "C:\Anaconda3\lib\site-packages\conda\common\configuration.py", line 752, in validate_all for source in self.raw_data)) File "C:\Anaconda3\lib\site-packages\conda\common\configuration.py", line 752, in <genexpr> for source in self.raw_data)) File "C:\Anaconda3\lib\site-packages\conda\common\configuration.py", line 739, in check_source collected_errors = parameter.collect_errors(self, typed_value, match.source) File "C:\Anaconda3\lib\site-packages\conda\common\configuration.py", line 642, in collect_errors for key, val in iteritems(value) if not isinstance(val, element_type)) File "C:\Anaconda3\lib\site-packages\conda\compat.py", line 148, in iteritems return iter(getattr(d, _iteritems)()) AttributeError: 'str' object has no attribute 'items'
AttributeError
def check_prefix(prefix, json=False): name = basename(prefix) error = None if name.startswith("."): error = "environment name cannot start with '.': %s" % name if name == ROOT_ENV_NAME: error = "'%s' is a reserved environment name" % name if exists(prefix): if isdir(prefix) and "conda-meta" not in os.listdir(prefix): return None error = "prefix already exists: %s" % prefix if error: raise CondaValueError(error, json)
def check_prefix(prefix, json=False): name = basename(prefix) error = None if name.startswith("."): error = "environment name cannot start with '.': %s" % name if name == ROOT_ENV_NAME: error = "'%s' is a reserved environment name" % name if exists(prefix): if isdir(prefix) and not os.listdir(prefix): return None error = "prefix already exists: %s" % prefix if error: raise CondaValueError(error, json)
https://github.com/conda/conda/issues/3453
Traceback (most recent call last): File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 472, in conda_exception_handler return_value = func(*args, **kwargs) File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 144, in _main exit_code = args.func(args, p) File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 68, in execute install(args, parser, 'create') File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 171, in install default_packages.remove(default_pkg) AttributeError: 'tuple' object has no attribute 'remove'
AttributeError
def install(args, parser, command="install"): """ conda install, conda update, and conda create """ context.validate_all() newenv = bool(command == "create") isupdate = bool(command == "update") isinstall = bool(command == "install") if newenv: common.ensure_name_or_prefix(args, command) prefix = context.prefix if newenv else context.prefix_w_legacy_search if newenv: check_prefix(prefix, json=context.json) if context.force_32bit and is_root_prefix(prefix): raise CondaValueError("cannot use CONDA_FORCE_32BIT=1 in root env") if isupdate and not (args.file or args.all or args.packages): raise CondaValueError( """no package names supplied # If you want to update to a newer version of Anaconda, type: # # $ conda update --prefix %s anaconda """ % prefix ) linked = install_linked(prefix) lnames = {name_dist(d) for d in linked} if isupdate and not args.all: for name in args.packages: common.arg2spec(name, json=context.json, update=True) if name not in lnames: raise PackageNotFoundError( name, "Package '%s' is not installed in %s" % (name, prefix) ) if newenv and not args.no_default_packages: default_packages = list(context.create_default_packages) # Override defaults if they are specified at the command line for default_pkg in context.create_default_packages: if any(pkg.split("=")[0] == default_pkg for pkg in args.packages): default_packages.remove(default_pkg) args.packages.extend(default_packages) else: default_packages = [] common.ensure_use_local(args) common.ensure_override_channels_requires_channel(args) index_args = { "use_cache": args.use_index_cache, "channel_urls": args.channel or (), "unknown": args.unknown, "prepend": not args.override_channels, "use_local": args.use_local, } specs = [] if args.file: for fpath in args.file: specs.extend(common.specs_from_url(fpath, json=context.json)) if "@EXPLICIT" in specs: explicit(specs, prefix, verbose=not context.quiet, index_args=index_args) return elif getattr(args, "all", False): if not linked: raise PackageNotFoundError( "", "There are no packages installed in the prefix %s" % prefix ) specs.extend(nm for nm in lnames) specs.extend(common.specs_from_args(args.packages, json=context.json)) if isinstall and args.revision: get_revision(args.revision, json=context.json) elif isinstall and not (args.file or args.packages): raise CondaValueError( "too few arguments, must supply command line package specs or --file" ) num_cp = sum(s.endswith(".tar.bz2") for s in args.packages) if num_cp: if num_cp == len(args.packages): explicit(args.packages, prefix, verbose=not context.quiet) return else: raise CondaValueError( "cannot mix specifications with conda package filenames" ) # handle tar file containing conda packages if len(args.packages) == 1: tar_path = args.packages[0] if tar_path.endswith(".tar"): install_tar(prefix, tar_path, verbose=not context.quiet) return if newenv and args.clone: package_diff = set(args.packages) - set(default_packages) if package_diff: raise TooManyArgumentsError( 0, len(package_diff), list(package_diff), "did not expect any arguments for --clone", ) clone( args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args, ) append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) return index = get_index( channel_urls=index_args["channel_urls"], prepend=index_args["prepend"], platform=None, use_local=index_args["use_local"], use_cache=index_args["use_cache"], unknown=index_args["unknown"], prefix=prefix, ) r = Resolve(index) ospecs = list(specs) add_defaults_to_specs(r, linked, specs, update=isupdate) # Don't update packages that are already up-to-date if isupdate and not (args.all or args.force): orig_packages = args.packages[:] installed_metadata = [is_linked(prefix, dist) for dist in linked] for name in orig_packages: vers_inst = [m["version"] for m in installed_metadata if m["name"] == name] build_inst = [ m["build_number"] for m in installed_metadata if m["name"] == name ] channel_inst = [ m["channel"] for m in installed_metadata if m["name"] == name ] try: assert len(vers_inst) == 1, name assert len(build_inst) == 1, name assert len(channel_inst) == 1, name except AssertionError as e: raise CondaAssertionError(text_type(e)) pkgs = sorted(r.get_pkgs(name)) if not pkgs: # Shouldn't happen? continue latest = pkgs[-1] if all( [ latest.version == vers_inst[0], latest.build_number == build_inst[0], latest.channel == channel_inst[0], ] ): args.packages.remove(name) if not args.packages: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(orig_packages) print("# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return if args.force: args.no_deps = True if args.no_deps: only_names = set(s.split()[0] for s in ospecs) else: only_names = None if not isdir(prefix) and not newenv: if args.mkdir: try: os.makedirs(prefix) except OSError: raise CondaOSError("Error: could not create directory: %s" % prefix) else: raise CondaEnvironmentNotFoundError(prefix) try: if isinstall and args.revision: actions = revert_actions(prefix, get_revision(args.revision), index) else: with common.json_progress_bars(json=context.json and not context.quiet): actions = install_actions( prefix, index, specs, force=args.force, only_names=only_names, pinned=args.pinned, always_copy=context.always_copy, minimal_hint=args.alt_hint, update_deps=context.update_dependencies, ) except NoPackagesFoundError as e: error_message = [e.args[0]] if isupdate and args.all: # Packages not found here just means they were installed but # cannot be found any more. Just skip them. if not context.json: print("Warning: %s, skipping" % error_message) else: # Not sure what to do here pass args._skip = getattr(args, "_skip", ["anaconda"]) for pkg in e.pkgs: p = pkg.split()[0] if p in args._skip: # Avoid infinite recursion. This can happen if a spec # comes from elsewhere, like --file raise args._skip.append(p) return install(args, parser, command=command) else: packages = {index[fn]["name"] for fn in index} nfound = 0 for pkg in sorted(e.pkgs): pkg = pkg.split()[0] if pkg in packages: continue close = get_close_matches(pkg, packages, cutoff=0.7) if not close: continue if nfound == 0: error_message.append( "\n\nClose matches found; did you mean one of these?\n" ) error_message.append("\n %s: %s" % (pkg, ", ".join(close))) nfound += 1 error_message.append("\n\nYou can search for packages on anaconda.org with") error_message.append("\n\n anaconda search -t conda %s" % pkg) if len(e.pkgs) > 1: # Note this currently only happens with dependencies not found error_message.append("\n\n(and similarly for the other packages)") if not find_executable("anaconda", include_others=False): error_message.append("\n\nYou may need to install the anaconda-client") error_message.append(" command line client with") error_message.append("\n\n conda install anaconda-client") pinned_specs = get_pinned_specs(prefix) if pinned_specs: path = join(prefix, "conda-meta", "pinned") error_message.append( "\n\nNote that you have pinned specs in %s:" % path ) error_message.append("\n\n %r" % pinned_specs) error_message = "".join(error_message) raise PackageNotFoundError("", error_message) except (UnsatisfiableError, SystemExit) as e: # Unsatisfiable package specifications/no such revision/import error if e.args and "could not import" in e.args[0]: raise CondaImportError(text_type(e)) raise if nothing_to_do(actions) and not newenv: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(s.split()[0] for s in ospecs) print("\n# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return elif newenv: # needed in the case of creating an empty env from ..instructions import LINK, UNLINK, SYMLINK_CONDA if not actions[LINK] and not actions[UNLINK]: actions[SYMLINK_CONDA] = [context.root_dir] if not context.json: print() print("Package plan for installation in environment %s:" % prefix) display_actions(actions, index, show_channel_urls=context.show_channel_urls) if command in {"install", "update"}: check_write(command, prefix) if not context.json: common.confirm_yn(args) elif args.dry_run: common.stdout_json_success(actions=actions, dry_run=True) raise DryRunExit with common.json_progress_bars(json=context.json and not context.quiet): try: execute_actions(actions, index, verbose=not context.quiet) if not (command == "update" and args.all): try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# %s specs: %s\n" % (command, specs)) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise CondaIOError("Can't write the history file", e) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e) if newenv: append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) if context.json: common.stdout_json_success(actions=actions)
def install(args, parser, command="install"): """ conda install, conda update, and conda create """ context.validate_all() newenv = bool(command == "create") isupdate = bool(command == "update") isinstall = bool(command == "install") if newenv: common.ensure_name_or_prefix(args, command) prefix = context.prefix if newenv else context.prefix_w_legacy_search if newenv: check_prefix(prefix, json=context.json) if context.force_32bit and is_root_prefix(prefix): raise CondaValueError("cannot use CONDA_FORCE_32BIT=1 in root env") if isupdate and not (args.file or args.all or args.packages): raise CondaValueError( """no package names supplied # If you want to update to a newer version of Anaconda, type: # # $ conda update --prefix %s anaconda """ % prefix ) linked = install_linked(prefix) lnames = {name_dist(d) for d in linked} if isupdate and not args.all: for name in args.packages: common.arg2spec(name, json=context.json, update=True) if name not in lnames: raise PackageNotFoundError( name, "Package '%s' is not installed in %s" % (name, prefix) ) if newenv and not args.no_default_packages: default_packages = context.create_default_packages[:] # Override defaults if they are specified at the command line for default_pkg in context.create_default_packages: if any(pkg.split("=")[0] == default_pkg for pkg in args.packages): default_packages.remove(default_pkg) args.packages.extend(default_packages) else: default_packages = [] common.ensure_use_local(args) common.ensure_override_channels_requires_channel(args) index_args = { "use_cache": args.use_index_cache, "channel_urls": args.channel or (), "unknown": args.unknown, "prepend": not args.override_channels, "use_local": args.use_local, } specs = [] if args.file: for fpath in args.file: specs.extend(common.specs_from_url(fpath, json=context.json)) if "@EXPLICIT" in specs: explicit(specs, prefix, verbose=not context.quiet, index_args=index_args) return elif getattr(args, "all", False): if not linked: raise PackageNotFoundError( "", "There are no packages installed in the prefix %s" % prefix ) specs.extend(nm for nm in lnames) specs.extend(common.specs_from_args(args.packages, json=context.json)) if isinstall and args.revision: get_revision(args.revision, json=context.json) elif isinstall and not (args.file or args.packages): raise CondaValueError( "too few arguments, must supply command line package specs or --file" ) num_cp = sum(s.endswith(".tar.bz2") for s in args.packages) if num_cp: if num_cp == len(args.packages): explicit(args.packages, prefix, verbose=not context.quiet) return else: raise CondaValueError( "cannot mix specifications with conda package filenames" ) # handle tar file containing conda packages if len(args.packages) == 1: tar_path = args.packages[0] if tar_path.endswith(".tar"): install_tar(prefix, tar_path, verbose=not context.quiet) return if newenv and args.clone: package_diff = set(args.packages) - set(default_packages) if package_diff: raise TooManyArgumentsError( 0, len(package_diff), list(package_diff), "did not expect any arguments for --clone", ) clone( args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args, ) append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) return index = get_index( channel_urls=index_args["channel_urls"], prepend=index_args["prepend"], platform=None, use_local=index_args["use_local"], use_cache=index_args["use_cache"], unknown=index_args["unknown"], prefix=prefix, ) r = Resolve(index) ospecs = list(specs) add_defaults_to_specs(r, linked, specs, update=isupdate) # Don't update packages that are already up-to-date if isupdate and not (args.all or args.force): orig_packages = args.packages[:] installed_metadata = [is_linked(prefix, dist) for dist in linked] for name in orig_packages: vers_inst = [m["version"] for m in installed_metadata if m["name"] == name] build_inst = [ m["build_number"] for m in installed_metadata if m["name"] == name ] channel_inst = [ m["channel"] for m in installed_metadata if m["name"] == name ] try: assert len(vers_inst) == 1, name assert len(build_inst) == 1, name assert len(channel_inst) == 1, name except AssertionError as e: raise CondaAssertionError(text_type(e)) pkgs = sorted(r.get_pkgs(name)) if not pkgs: # Shouldn't happen? continue latest = pkgs[-1] if all( [ latest.version == vers_inst[0], latest.build_number == build_inst[0], latest.channel == channel_inst[0], ] ): args.packages.remove(name) if not args.packages: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(orig_packages) print("# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return if args.force: args.no_deps = True if args.no_deps: only_names = set(s.split()[0] for s in ospecs) else: only_names = None if not isdir(prefix) and not newenv: if args.mkdir: try: os.makedirs(prefix) except OSError: raise CondaOSError("Error: could not create directory: %s" % prefix) else: raise CondaEnvironmentNotFoundError(prefix) try: if isinstall and args.revision: actions = revert_actions(prefix, get_revision(args.revision), index) else: with common.json_progress_bars(json=context.json and not context.quiet): actions = install_actions( prefix, index, specs, force=args.force, only_names=only_names, pinned=args.pinned, always_copy=context.always_copy, minimal_hint=args.alt_hint, update_deps=context.update_dependencies, ) except NoPackagesFoundError as e: error_message = [e.args[0]] if isupdate and args.all: # Packages not found here just means they were installed but # cannot be found any more. Just skip them. if not context.json: print("Warning: %s, skipping" % error_message) else: # Not sure what to do here pass args._skip = getattr(args, "_skip", ["anaconda"]) for pkg in e.pkgs: p = pkg.split()[0] if p in args._skip: # Avoid infinite recursion. This can happen if a spec # comes from elsewhere, like --file raise args._skip.append(p) return install(args, parser, command=command) else: packages = {index[fn]["name"] for fn in index} nfound = 0 for pkg in sorted(e.pkgs): pkg = pkg.split()[0] if pkg in packages: continue close = get_close_matches(pkg, packages, cutoff=0.7) if not close: continue if nfound == 0: error_message.append( "\n\nClose matches found; did you mean one of these?\n" ) error_message.append("\n %s: %s" % (pkg, ", ".join(close))) nfound += 1 error_message.append("\n\nYou can search for packages on anaconda.org with") error_message.append("\n\n anaconda search -t conda %s" % pkg) if len(e.pkgs) > 1: # Note this currently only happens with dependencies not found error_message.append("\n\n(and similarly for the other packages)") if not find_executable("anaconda", include_others=False): error_message.append("\n\nYou may need to install the anaconda-client") error_message.append(" command line client with") error_message.append("\n\n conda install anaconda-client") pinned_specs = get_pinned_specs(prefix) if pinned_specs: path = join(prefix, "conda-meta", "pinned") error_message.append( "\n\nNote that you have pinned specs in %s:" % path ) error_message.append("\n\n %r" % pinned_specs) error_message = "".join(error_message) raise PackageNotFoundError("", error_message) except (UnsatisfiableError, SystemExit) as e: # Unsatisfiable package specifications/no such revision/import error if e.args and "could not import" in e.args[0]: raise CondaImportError(text_type(e)) raise if nothing_to_do(actions) and not newenv: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(s.split()[0] for s in ospecs) print("\n# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return elif newenv: # needed in the case of creating an empty env from ..instructions import LINK, UNLINK, SYMLINK_CONDA if not actions[LINK] and not actions[UNLINK]: actions[SYMLINK_CONDA] = [context.root_dir] if not context.json: print() print("Package plan for installation in environment %s:" % prefix) display_actions(actions, index, show_channel_urls=context.show_channel_urls) if command in {"install", "update"}: check_write(command, prefix) if not context.json: common.confirm_yn(args) elif args.dry_run: common.stdout_json_success(actions=actions, dry_run=True) raise DryRunExit with common.json_progress_bars(json=context.json and not context.quiet): try: execute_actions(actions, index, verbose=not context.quiet) if not (command == "update" and args.all): try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# %s specs: %s\n" % (command, specs)) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise CondaIOError("Can't write the history file", e) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e) if newenv: append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) if context.json: common.stdout_json_success(actions=actions)
https://github.com/conda/conda/issues/3453
Traceback (most recent call last): File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 472, in conda_exception_handler return_value = func(*args, **kwargs) File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 144, in _main exit_code = args.func(args, p) File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 68, in execute install(args, parser, 'create') File "/opt/a/b/c/muunitnoc/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 171, in install default_packages.remove(default_pkg) AttributeError: 'tuple' object has no attribute 'remove'
AttributeError
def install(args, parser, command="install"): """ conda install, conda update, and conda create """ context.validate_all() newenv = bool(command == "create") isupdate = bool(command == "update") isinstall = bool(command == "install") if newenv: common.ensure_name_or_prefix(args, command) prefix = context.prefix if newenv else context.prefix_w_legacy_search if newenv: check_prefix(prefix, json=context.json) if context.force_32bit and is_root_prefix(prefix): raise CondaValueError("cannot use CONDA_FORCE_32BIT=1 in root env") if isupdate and not (args.file or args.all or args.packages): raise CondaValueError( """no package names supplied # If you want to update to a newer version of Anaconda, type: # # $ conda update --prefix %s anaconda """ % prefix ) linked = install_linked(prefix) lnames = {name_dist(d) for d in linked} if isupdate and not args.all: for name in args.packages: common.arg2spec(name, json=context.json, update=True) if name not in lnames: raise PackageNotFoundError( name, "Package '%s' is not installed in %s" % (name, prefix) ) if newenv and not args.no_default_packages: default_packages = context.create_default_packages[:] # Override defaults if they are specified at the command line for default_pkg in context.create_default_packages: if any(pkg.split("=")[0] == default_pkg for pkg in args.packages): default_packages.remove(default_pkg) args.packages.extend(default_packages) else: default_packages = [] common.ensure_use_local(args) common.ensure_override_channels_requires_channel(args) index_args = { "use_cache": args.use_index_cache, "channel_urls": args.channel or (), "unknown": args.unknown, "prepend": not args.override_channels, "use_local": args.use_local, } specs = [] if args.file: for fpath in args.file: specs.extend(common.specs_from_url(fpath, json=context.json)) if "@EXPLICIT" in specs: explicit(specs, prefix, verbose=not context.quiet, index_args=index_args) return elif getattr(args, "all", False): if not linked: raise PackageNotFoundError( "", "There are no packages installed in the prefix %s" % prefix ) specs.extend(nm for nm in lnames) specs.extend(common.specs_from_args(args.packages, json=context.json)) if isinstall and args.revision: get_revision(args.revision, json=context.json) elif isinstall and not (args.file or args.packages): raise CondaValueError( "too few arguments, must supply command line package specs or --file" ) num_cp = sum(s.endswith(".tar.bz2") for s in args.packages) if num_cp: if num_cp == len(args.packages): explicit(args.packages, prefix, verbose=not context.quiet) return else: raise CondaValueError( "cannot mix specifications with conda package filenames" ) # handle tar file containing conda packages if len(args.packages) == 1: tar_path = args.packages[0] if tar_path.endswith(".tar"): install_tar(prefix, tar_path, verbose=not context.quiet) return if newenv and args.clone: package_diff = set(args.packages) - set(default_packages) if package_diff: raise TooManyArgumentsError( 0, len(package_diff), list(package_diff), "did not expect any arguments for --clone", ) clone( args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args, ) append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) return index = get_index( channel_urls=index_args["channel_urls"], prepend=index_args["prepend"], platform=None, use_local=index_args["use_local"], use_cache=index_args["use_cache"], unknown=index_args["unknown"], prefix=prefix, ) r = Resolve(index) ospecs = list(specs) add_defaults_to_specs(r, linked, specs, update=isupdate) # Don't update packages that are already up-to-date if isupdate and not (args.all or args.force): orig_packages = args.packages[:] installed_metadata = [is_linked(prefix, dist) for dist in linked] for name in orig_packages: vers_inst = [m["version"] for m in installed_metadata if m["name"] == name] build_inst = [ m["build_number"] for m in installed_metadata if m["name"] == name ] channel_inst = [ m["channel"] for m in installed_metadata if m["name"] == name ] try: assert len(vers_inst) == 1, name assert len(build_inst) == 1, name assert len(channel_inst) == 1, name except AssertionError as e: raise CondaAssertionError(text_type(e)) pkgs = sorted(r.get_pkgs(name)) if not pkgs: # Shouldn't happen? continue latest = pkgs[-1] if all( [ latest.version == vers_inst[0], latest.build_number == build_inst[0], latest.channel == channel_inst[0], ] ): args.packages.remove(name) if not args.packages: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(orig_packages) print("# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return if args.force: args.no_deps = True if args.no_deps: only_names = set(s.split()[0] for s in ospecs) else: only_names = None if not isdir(prefix) and not newenv: if args.mkdir: try: os.makedirs(prefix) except OSError: raise CondaOSError("Error: could not create directory: %s" % prefix) else: raise CondaEnvironmentNotFoundError(prefix) try: if isinstall and args.revision: actions = revert_actions(prefix, get_revision(args.revision), index) else: with common.json_progress_bars(json=context.json and not context.quiet): actions = install_actions( prefix, index, specs, force=args.force, only_names=only_names, pinned=args.pinned, always_copy=context.always_copy, minimal_hint=args.alt_hint, update_deps=context.update_dependencies, ) except NoPackagesFoundError as e: error_message = [e.args[0]] if isupdate and args.all: # Packages not found here just means they were installed but # cannot be found any more. Just skip them. if not context.json: print("Warning: %s, skipping" % error_message) else: # Not sure what to do here pass args._skip = getattr(args, "_skip", ["anaconda"]) for pkg in e.pkgs: p = pkg.split()[0] if p in args._skip: # Avoid infinite recursion. This can happen if a spec # comes from elsewhere, like --file raise args._skip.append(p) return install(args, parser, command=command) else: packages = {index[fn]["name"] for fn in index} nfound = 0 for pkg in sorted(e.pkgs): pkg = pkg.split()[0] if pkg in packages: continue close = get_close_matches(pkg, packages, cutoff=0.7) if not close: continue if nfound == 0: error_message.append( "\n\nClose matches found; did you mean one of these?\n" ) error_message.append("\n %s: %s" % (pkg, ", ".join(close))) nfound += 1 error_message.append("\n\nYou can search for packages on anaconda.org with") error_message.append("\n\n anaconda search -t conda %s" % pkg) if len(e.pkgs) > 1: # Note this currently only happens with dependencies not found error_message.append("\n\n(and similarly for the other packages)") if not find_executable("anaconda", include_others=False): error_message.append("\n\nYou may need to install the anaconda-client") error_message.append(" command line client with") error_message.append("\n\n conda install anaconda-client") pinned_specs = get_pinned_specs(prefix) if pinned_specs: path = join(prefix, "conda-meta", "pinned") error_message.append( "\n\nNote that you have pinned specs in %s:" % path ) error_message.append("\n\n %r" % pinned_specs) error_message = "".join(error_message) raise PackageNotFoundError("", error_message) except (UnsatisfiableError, SystemExit) as e: # Unsatisfiable package specifications/no such revision/import error if e.args and "could not import" in e.args[0]: raise CondaImportError(text_type(e)) raise if nothing_to_do(actions) and not newenv: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(s.split()[0] for s in ospecs) print("\n# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return elif newenv: # needed in the case of creating an empty env from ..instructions import LINK, UNLINK, SYMLINK_CONDA if not actions[LINK] and not actions[UNLINK]: actions[SYMLINK_CONDA] = [context.root_dir] if not context.json: print() print("Package plan for installation in environment %s:" % prefix) display_actions(actions, index, show_channel_urls=context.show_channel_urls) if command in {"install", "update"}: check_write(command, prefix) if not context.json: common.confirm_yn(args) elif args.dry_run: common.stdout_json_success(actions=actions, dry_run=True) raise DryRunExit with common.json_progress_bars(json=context.json and not context.quiet): try: execute_actions(actions, index, verbose=not context.quiet) if not (command == "update" and args.all): try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# %s specs: %s\n" % (command, specs)) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise CondaIOError("Can't write the history file", e) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e) if newenv: append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) if context.json: common.stdout_json_success(actions=actions)
def install(args, parser, command="install"): """ conda install, conda update, and conda create """ context.validate_all() newenv = bool(command == "create") isupdate = bool(command == "update") isinstall = bool(command == "install") if newenv: common.ensure_name_or_prefix(args, command) prefix = context.prefix if newenv else context.prefix_w_legacy_search if newenv: check_prefix(prefix, json=context.json) if context.force_32bit and is_root_prefix(prefix): raise CondaValueError("cannot use CONDA_FORCE_32BIT=1 in root env") if isupdate and not (args.file or args.all or args.packages): raise CondaValueError( """no package names supplied # If you want to update to a newer version of Anaconda, type: # # $ conda update --prefix %s anaconda """ % prefix ) linked = install_linked(prefix) lnames = {name_dist(d) for d in linked} if isupdate and not args.all: for name in args.packages: common.arg2spec(name, json=context.json, update=True) if name not in lnames: raise PackageNotFoundError( name, "Package '%s' is not installed in %s" % (name, prefix) ) if newenv and not args.no_default_packages: default_packages = context.create_default_packages[:] # Override defaults if they are specified at the command line for default_pkg in context.create_default_packages: if any(pkg.split("=")[0] == default_pkg for pkg in args.packages): default_packages.remove(default_pkg) args.packages.extend(default_packages) else: default_packages = [] common.ensure_use_local(args) common.ensure_override_channels_requires_channel(args) index_args = { "use_cache": args.use_index_cache, "channel_urls": args.channel or (), "unknown": args.unknown, "prepend": not args.override_channels, "use_local": args.use_local, } specs = [] if args.file: for fpath in args.file: specs.extend(common.specs_from_url(fpath, json=context.json)) if "@EXPLICIT" in specs: explicit(specs, prefix, verbose=not context.quiet, index_args=index_args) return elif getattr(args, "all", False): if not linked: raise PackageNotFoundError( "", "There are no packages installed in the prefix %s" % prefix ) specs.extend(nm for nm in lnames) specs.extend(common.specs_from_args(args.packages, json=context.json)) if isinstall and args.revision: get_revision(args.revision, json=context.json) elif isinstall and not (args.file or args.packages): raise CondaValueError( "too few arguments, must supply command line package specs or --file" ) num_cp = sum(s.endswith(".tar.bz2") for s in args.packages) if num_cp: if num_cp == len(args.packages): explicit(args.packages, prefix, verbose=not context.quiet) return else: raise CondaValueError( "cannot mix specifications with conda package filenames" ) # handle tar file containing conda packages if len(args.packages) == 1: tar_path = args.packages[0] if tar_path.endswith(".tar"): install_tar(prefix, tar_path, verbose=not context.quiet) return if newenv and args.clone: package_diff = set(args.packages) - set(default_packages) if package_diff: raise TooManyArgumentsError( 0, len(package_diff), list(package_diff), "did not expect any arguments for --clone", ) clone( args.clone, prefix, json=context.json, quiet=context.quiet, index_args=index_args, ) append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) return index = get_index( channel_urls=index_args["channel_urls"], prepend=index_args["prepend"], platform=None, use_local=index_args["use_local"], use_cache=index_args["use_cache"], unknown=index_args["unknown"], prefix=prefix, ) r = Resolve(index) ospecs = list(specs) add_defaults_to_specs(r, linked, specs, update=isupdate) # Don't update packages that are already up-to-date if isupdate and not (args.all or args.force): orig_packages = args.packages[:] installed_metadata = [is_linked(prefix, dist) for dist in linked] for name in orig_packages: vers_inst = [m["version"] for m in installed_metadata if m["name"] == name] build_inst = [ m["build_number"] for m in installed_metadata if m["name"] == name ] channel_inst = [ m["channel"] for m in installed_metadata if m["name"] == name ] try: assert len(vers_inst) == 1, name assert len(build_inst) == 1, name assert len(channel_inst) == 1, name except AssertionError as e: raise CondaAssertionError(text_type(e)) pkgs = sorted(r.get_pkgs(name)) if not pkgs: # Shouldn't happen? continue latest = pkgs[-1] if all( [ latest.version == vers_inst[0], latest.build_number == build_inst[0], latest.channel == channel_inst[0], ] ): args.packages.remove(name) if not args.packages: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(orig_packages) print("# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return if args.force: args.no_deps = True if args.no_deps: only_names = set(s.split()[0] for s in ospecs) else: only_names = None if not isdir(prefix) and not newenv: if args.mkdir: try: os.makedirs(prefix) except OSError: raise CondaOSError("Error: could not create directory: %s" % prefix) else: raise CondaEnvironmentNotFoundError(prefix) try: if isinstall and args.revision: actions = revert_actions(prefix, get_revision(args.revision), index) else: with common.json_progress_bars(json=context.json and not context.quiet): actions = install_actions( prefix, index, specs, force=args.force, only_names=only_names, pinned=args.pinned, always_copy=context.always_copy, minimal_hint=args.alt_hint, update_deps=context.update_dependencies, ) except NoPackagesFoundError as e: error_message = [e.args[0]] if isupdate and args.all: # Packages not found here just means they were installed but # cannot be found any more. Just skip them. if not context.json: print("Warning: %s, skipping" % error_message) else: # Not sure what to do here pass args._skip = getattr(args, "_skip", ["anaconda"]) for pkg in e.pkgs: p = pkg.split()[0] if p in args._skip: # Avoid infinite recursion. This can happen if a spec # comes from elsewhere, like --file raise args._skip.append(p) return install(args, parser, command=command) else: packages = {index[fn]["name"] for fn in index} nfound = 0 for pkg in sorted(e.pkgs): pkg = pkg.split()[0] if pkg in packages: continue close = get_close_matches(pkg, packages, cutoff=0.7) if not close: continue if nfound == 0: error_message.append( "\n\nClose matches found; did you mean one of these?\n" ) error_message.append("\n %s: %s" % (pkg, ", ".join(close))) nfound += 1 error_message.append("\n\nYou can search for packages on anaconda.org with") error_message.append("\n\n anaconda search -t conda %s" % pkg) if len(e.pkgs) > 1: # Note this currently only happens with dependencies not found error_message.append("\n\n(and similarly for the other packages)") if not find_executable("anaconda", include_others=False): error_message.append("\n\nYou may need to install the anaconda-client") error_message.append(" command line client with") error_message.append("\n\n conda install anaconda-client") pinned_specs = get_pinned_specs(prefix) if pinned_specs: path = join(prefix, "conda-meta", "pinned") error_message.append( "\n\nNote that you have pinned specs in %s:" % path ) error_message.append("\n\n %r" % pinned_specs) error_message = "".join(error_message) raise PackageNotFoundError("", error_message) except (UnsatisfiableError, SystemExit) as e: # Unsatisfiable package specifications/no such revision/import error if e.args and "could not import" in e.args[0]: raise CondaImportError(text_type(e)) raise CondaError("UnsatisfiableSpecifications", e) if nothing_to_do(actions) and not newenv: from .main_list import print_packages if not context.json: regex = "^(%s)$" % "|".join(s.split()[0] for s in ospecs) print("\n# All requested packages already installed.") print_packages(prefix, regex) else: common.stdout_json_success( message="All requested packages already installed." ) return elif newenv: # needed in the case of creating an empty env from ..instructions import LINK, UNLINK, SYMLINK_CONDA if not actions[LINK] and not actions[UNLINK]: actions[SYMLINK_CONDA] = [context.root_dir] if not context.json: print() print("Package plan for installation in environment %s:" % prefix) display_actions(actions, index, show_channel_urls=context.show_channel_urls) if command in {"install", "update"}: check_write(command, prefix) if not context.json: common.confirm_yn(args) elif args.dry_run: common.stdout_json_success(actions=actions, dry_run=True) raise DryRunExit with common.json_progress_bars(json=context.json and not context.quiet): try: execute_actions(actions, index, verbose=not context.quiet) if not (command == "update" and args.all): try: with open(join(prefix, "conda-meta", "history"), "a") as f: f.write("# %s specs: %s\n" % (command, specs)) except IOError as e: if e.errno == errno.EACCES: log.debug("Can't write the history file") else: raise CondaIOError("Can't write the history file", e) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e) if newenv: append_env(prefix) touch_nonadmin(prefix) if not context.json: print(print_activate(args.name if args.name else prefix)) if context.json: common.stdout_json_success(actions=actions)
https://github.com/conda/conda/issues/3409
Traceback (most recent call last): File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/exceptions.py", line 471, in conda_exception_handler return_value = func(*args, **kwargs) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/cli/main.py", line 144, in _main exit_code = args.func(args, p) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/cli/main_install.py", line 80, in execute install(args, parser, 'install') File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/cli/install.py", line 370, in install raise CondaError('UnsatisfiableSpecifications', e) TypeError: __init__() takes exactly 2 arguments (3 given)
TypeError
def explicit( specs, prefix, verbose=False, force_extract=True, fetch_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK linked = {name_dist(dist): dist for dist in install_linked(prefix)} fetch_args = fetch_args or {} index = index or {} verifies = [] channels = {} for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # See if the URL refers to a package in our cache prefix = pkg_path = dir_path = None if url.startswith("file://"): prefix = cached_url(url) # If not, determine the channel name from the URL if prefix is None: _, schannel = url_channel(url) prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch if pkg_path and (md5 and md5_file(pkg_path) != md5): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if fn not in index or index[fn].get("not_fetched"): channels[url_p + "/"] = (schannel, 0) actions[FETCH].append(dist) verifies.append((dist + ".tar.bz2", md5)) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index.update(fetch_index(channels, **fetch_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
def explicit( specs, prefix, verbose=False, force_extract=True, fetch_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK linked = {name_dist(dist): dist for dist in install_linked(prefix)} fetch_args = fetch_args or {} index = index or {} verifies = [] channels = {} for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # See if the URL refers to a package in our cache prefix = pkg_path = dir_path = None if url.startswith("file://"): prefix = cached_url(url) # If not, determine the channel name from the URL if prefix is None: _, schannel = url_channel(url) prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch if pkg_path and (md5 and md5_file(pkg_path) != md5): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if fn not in index or index[fn].get(not_fetched): channels[url_p + "/"] = (schannel, 0) actions[FETCH].append(dist) verifies.append((dist + ".tar.bz2", md5)) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index.update(fetch_index(channels, **fetch_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
https://github.com/conda/conda/issues/2633
[root@hostname ~]# /opt/wakari/anaconda/bin/conda create -p ~/new-env --clone /opt/wakari/anaconda/ Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: ...... src_prefix: '/opt/wakari/anaconda' dst_prefix: '/root/new-env' Packages: 313 Files: 47057 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 "/opt/wakari/anaconda/bin/conda", line 6, in <module> sys.exit(main()) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 139, in main args_func(args, p) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 146, in args_func args.func(args, p) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 49, in execute install.install(args, parser, 'create') File "/opt/wakari/anaconda/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 "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 84, in clone quiet=quiet, index=index) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/misc.py", line 246, in clone_env sorted_dists = r.dependency_sort(dists) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 729, in dependency_sort depends = lookup(value) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 724, in lookup return set(ms.name for ms in self.ms_depends(value + '.tar.bz2')) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 573, in ms_depends deps = [MatchSpec(d) for d in self.index[fn].get('depends', [])] KeyError: 'r-zoo-1.7_12-r3.2.2_1a.tar.bz2' [root@hostname ~]#
KeyError
def clone_env(prefix1, prefix2, verbose=True, quiet=False, fetch_args=None): """ clone existing prefix1 into new prefix2 """ untracked_files = untracked(prefix1) # Discard conda and any package that depends on it drecs = linked_data(prefix1) filter = {} found = True while found: found = False for dist, info in iteritems(drecs): name = info["name"] if name in filter: continue if name == "conda": filter["conda"] = dist found = True break for dep in info.get("depends", []): if MatchSpec(dep).name in filter: filter[name] = dist found = True if filter: if not quiet: print( "The following packages cannot be cloned out of the root environment:" ) for pkg in itervalues(filter): print(" - " + pkg) drecs = { dist: info for dist, info in iteritems(drecs) if info["name"] not in filter } # Resolve URLs for packages that do not have URLs r = None index = {} unknowns = [dist for dist, info in iteritems(drecs) if "url" not in info] notfound = [] if unknowns: fetch_args = fetch_args or {} index = get_index(**fetch_args) r = Resolve(index, sort=True) for dist in unknowns: name = name_dist(dist) fn = dist2filename(dist) fkeys = [d for d in r.index.keys() if r.index[d]["fn"] == fn] if fkeys: del drecs[dist] dist = sorted(fkeys, key=r.version_key, reverse=True)[0] drecs[dist] = r.index[dist] else: notfound.append(fn) if notfound: what = "Package%s " % ("" if len(notfound) == 1 else "s") notfound = "\n".join(" - " + fn for fn in notfound) msg = "%s missing in current %s channels:%s" % (what, subdir, notfound) raise RuntimeError(msg) # Assemble the URL and channel list urls = {} for dist, info in iteritems(drecs): fkey = dist + ".tar.bz2" if fkey not in index: info["not_fetched"] = True index[fkey] = info r = None urls[dist] = info["url"] if r is None: r = Resolve(index) dists = r.dependency_sort(urls.keys()) urls = [urls[d] for d in dists] if verbose: print("Packages: %d" % len(dists)) print("Files: %d" % len(untracked_files)) for f in untracked_files: src = join(prefix1, f) dst = join(prefix2, f) dst_dir = dirname(dst) if islink(dst_dir) or isfile(dst_dir): os.unlink(dst_dir) if not isdir(dst_dir): os.makedirs(dst_dir) if islink(src): os.symlink(os.readlink(src), dst) continue try: with open(src, "rb") as fi: data = fi.read() except IOError: continue try: s = data.decode("utf-8") s = s.replace(prefix1, prefix2) data = s.encode("utf-8") except UnicodeDecodeError: # data is binary pass with open(dst, "wb") as fo: fo.write(data) shutil.copystat(src, dst) actions = explicit( urls, prefix2, verbose=not quiet, index=index, force_extract=False, fetch_args=fetch_args, ) return actions, untracked_files
def clone_env(prefix1, prefix2, verbose=True, quiet=False, fetch_args=None): """ clone existing prefix1 into new prefix2 """ untracked_files = untracked(prefix1) # Discard conda and any package that depends on it drecs = linked_data(prefix1) filter = {} found = True while found: found = False for dist, info in iteritems(drecs): name = info["name"] if name in filter: continue if name == "conda": filter["conda"] = dist found = True break for dep in info.get("depends", []): if MatchSpec(dep).name in filter: filter[name] = dist found = True if filter: if not quiet: print( "The following packages cannot be cloned out of the root environment:" ) for pkg in itervalues(filter): print(" - " + pkg) drecs = { dist: info for dist, info in iteritems(drecs) if info["name"] not in filter } # Resolve URLs for packages that do not have URLs r = None index = {} unknowns = [dist for dist, info in iteritems(drecs) if "url" not in info] notfound = [] if unknowns: fetch_args = fetch_args or {} index = get_index(**fetch_args) r = Resolve(index, sort=True) for dist in unknowns: name = name_dist(dist) fn = dist2filename(dist) fkeys = [d for d in r.index.keys() if r.index[d]["fn"] == fn] if fkeys: del drecs[dist] dist = sorted(fkeys, key=r.version_key, reverse=True)[0] drecs[dist] = r.index[dist] else: notfound.append(fn) if notfound: what = "Package%s " % ("" if len(notfound) == 1 else "s") notfound = "\n".join(" - " + fn for fn in notfound) msg = "%s missing in current %s channels:%s" % (what, subdir, notfound) raise RuntimeError(msg) # Assemble the URL and channel list urls = {} resolver = None for dist, info in iteritems(drecs): fkey = dist + ".tar.bz2" if fkey not in index: info["not_fetched"] = True index[fkey] = info r = None urls[dist] = info["url"] if r is None: r = Resolve(index) dists = r.dependency_sort(urls.keys()) urls = [urls[d] for d in dists] if verbose: print("Packages: %d" % len(dists)) print("Files: %d" % len(untracked_files)) for f in untracked_files: src = join(prefix1, f) dst = join(prefix2, f) dst_dir = dirname(dst) if islink(dst_dir) or isfile(dst_dir): os.unlink(dst_dir) if not isdir(dst_dir): os.makedirs(dst_dir) if islink(src): os.symlink(os.readlink(src), dst) continue try: with open(src, "rb") as fi: data = fi.read() except IOError: continue try: s = data.decode("utf-8") s = s.replace(prefix1, prefix2) data = s.encode("utf-8") except UnicodeDecodeError: # data is binary pass with open(dst, "wb") as fo: fo.write(data) shutil.copystat(src, dst) actions = explicit( urls, prefix2, verbose=not quiet, index=index, force_extract=False, fetch_args=fetch_args, ) return actions, untracked_files
https://github.com/conda/conda/issues/2633
[root@hostname ~]# /opt/wakari/anaconda/bin/conda create -p ~/new-env --clone /opt/wakari/anaconda/ Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: ...... src_prefix: '/opt/wakari/anaconda' dst_prefix: '/root/new-env' Packages: 313 Files: 47057 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 "/opt/wakari/anaconda/bin/conda", line 6, in <module> sys.exit(main()) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 139, in main args_func(args, p) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 146, in args_func args.func(args, p) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 49, in execute install.install(args, parser, 'create') File "/opt/wakari/anaconda/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 "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 84, in clone quiet=quiet, index=index) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/misc.py", line 246, in clone_env sorted_dists = r.dependency_sort(dists) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 729, in dependency_sort depends = lookup(value) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 724, in lookup return set(ms.name for ms in self.ms_depends(value + '.tar.bz2')) File "/opt/wakari/anaconda/lib/python2.7/site-packages/conda/resolve.py", line 573, in ms_depends deps = [MatchSpec(d) for d in self.index[fn].get('depends', [])] KeyError: 'r-zoo-1.7_12-r3.2.2_1a.tar.bz2' [root@hostname ~]#
KeyError
def environment(self): dependencies = [] with open(self.filename) as reqfile: for line in reqfile: line = line.strip() if not line or line.startswith("#"): continue dependencies.append(line) return env.Environment(name=self.name, dependencies=dependencies)
def environment(self): dependencies = [] with open(self.filename) as reqfile: for line in reqfile: dependencies.append(line) return env.Environment(name=self.name, dependencies=dependencies)
https://github.com/conda/conda/issues/3253
n unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.2.1 conda is private : False conda-env version : 2.5.2 conda-build version : 1.21.11+0.g5b44ab3.dirty python version : 2.7.12.final.0 requests version : 2.10.0 root environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7 (writable) default environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs/anabase envs directories : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs package cache : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/pkgs channel URLs : file:///reg/g/psdm/sw/conda/channels/system-rhel7 file:///reg/g/psdm/sw/conda/channels/psana-rhel7 file:///reg/g/psdm/sw/conda/channels/external-rhel7 defaults scikit-beam file:///reg/g/psdm/sw/conda/channels/testing-rhel7 config file : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/.condarc offline mode : False `$ /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/bin/conda-env export` Traceback (most recent call last): File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/exceptions.py", line 403, in conda_exception_handler return_value = func(*args, **kwargs) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda_env/cli/main_export.py", line 93, in execute ignore_channels=args.ignore_prefix) AttributeError: 'Namespace' object has no attribute 'ignore_prefix' ../manage/config/environment-anabase-1.0.0.yml (END)
AttributeError
def execute(args, parser): if not args.name: # Note, this is a hack fofr get_prefix that assumes argparse results # TODO Refactor common.get_prefix name = os.environ.get("CONDA_DEFAULT_ENV", False) if not name: msg = "Unable to determine environment\n\n" msg += textwrap.dedent(""" Please re-run this command with one of the following options: * Provide an environment name via --name or -n * Re-run this command inside an activated conda environment.""").lstrip() # TODO Add json support error_and_exit(msg, json=False) args.name = name else: name = args.name prefix = get_prefix(args) env = from_environment( name, prefix, no_builds=args.no_builds, ignore_channels=args.ignore_channels ) if args.override_channels: env.remove_channels() if args.channel is not None: env.add_channels(args.channel) if args.file is None: print(env.to_yaml()) else: fp = open(args.file, "wb") env.to_yaml(stream=fp)
def execute(args, parser): if not args.name: # Note, this is a hack fofr get_prefix that assumes argparse results # TODO Refactor common.get_prefix name = os.environ.get("CONDA_DEFAULT_ENV", False) if not name: msg = "Unable to determine environment\n\n" msg += textwrap.dedent(""" Please re-run this command with one of the following options: * Provide an environment name via --name or -n * Re-run this command inside an activated conda environment.""").lstrip() # TODO Add json support error_and_exit(msg, json=False) args.name = name else: name = args.name prefix = get_prefix(args) env = from_environment( name, prefix, no_builds=args.no_builds, ignore_channels=args.ignore_prefix ) if args.override_channels: env.remove_channels() if args.channel is not None: env.add_channels(args.channel) if args.file is None: print(env.to_yaml()) else: fp = open(args.file, "wb") env.to_yaml(stream=fp)
https://github.com/conda/conda/issues/3253
n unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.2.1 conda is private : False conda-env version : 2.5.2 conda-build version : 1.21.11+0.g5b44ab3.dirty python version : 2.7.12.final.0 requests version : 2.10.0 root environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7 (writable) default environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs/anabase envs directories : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs package cache : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/pkgs channel URLs : file:///reg/g/psdm/sw/conda/channels/system-rhel7 file:///reg/g/psdm/sw/conda/channels/psana-rhel7 file:///reg/g/psdm/sw/conda/channels/external-rhel7 defaults scikit-beam file:///reg/g/psdm/sw/conda/channels/testing-rhel7 config file : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/.condarc offline mode : False `$ /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/bin/conda-env export` Traceback (most recent call last): File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/exceptions.py", line 403, in conda_exception_handler return_value = func(*args, **kwargs) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda_env/cli/main_export.py", line 93, in execute ignore_channels=args.ignore_prefix) AttributeError: 'Namespace' object has no attribute 'ignore_prefix' ../manage/config/environment-anabase-1.0.0.yml (END)
AttributeError
def from_environment(name, prefix, no_builds=False, ignore_channels=False): """ Get environment object from prefix Args: name: The name of environment prefix: The path of prefix no_builds: Whether has build requirement ignore_channels: whether ingore_channels Returns: Environment obejct """ installed = install.linked(prefix, ignore_channels=ignore_channels) conda_pkgs = copy(installed) # json=True hides the output, data is added to installed add_pip_installed(prefix, installed, json=True) pip_pkgs = sorted(installed - conda_pkgs) if no_builds: dependencies = ["=".join(a.rsplit("-", 2)[0:2]) for a in sorted(conda_pkgs)] else: dependencies = ["=".join(a.rsplit("-", 2)) for a in sorted(conda_pkgs)] if len(pip_pkgs) > 0: dependencies.append( {"pip": ["==".join(a.rsplit("-", 2)[:2]) for a in pip_pkgs]} ) # conda uses ruamel_yaml which returns a ruamel_yaml.comments.CommentedSeq # this doesn't dump correctly using pyyaml channels = context.channels return Environment( name=name, dependencies=dependencies, channels=channels, prefix=prefix )
def from_environment(name, prefix, no_builds=False, ignore_channels=False): installed = install.linked(prefix, ignore_channels=ignore_channels) conda_pkgs = copy(installed) # json=True hides the output, data is added to installed add_pip_installed(prefix, installed, json=True) pip_pkgs = sorted(installed - conda_pkgs) if no_builds: dependencies = ["=".join(a.rsplit("-", 2)[0:2]) for a in sorted(conda_pkgs)] else: dependencies = ["=".join(a.rsplit("-", 2)) for a in sorted(conda_pkgs)] if len(pip_pkgs) > 0: dependencies.append( {"pip": ["==".join(a.rsplit("-", 2)[:2]) for a in pip_pkgs]} ) # conda uses ruamel_yaml which returns a ruamel_yaml.comments.CommentedSeq # this doesn't dump correctly using pyyaml channels = context.channels return Environment( name=name, dependencies=dependencies, channels=channels, prefix=prefix )
https://github.com/conda/conda/issues/3253
n unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.2.1 conda is private : False conda-env version : 2.5.2 conda-build version : 1.21.11+0.g5b44ab3.dirty python version : 2.7.12.final.0 requests version : 2.10.0 root environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7 (writable) default environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs/anabase envs directories : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs package cache : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/pkgs channel URLs : file:///reg/g/psdm/sw/conda/channels/system-rhel7 file:///reg/g/psdm/sw/conda/channels/psana-rhel7 file:///reg/g/psdm/sw/conda/channels/external-rhel7 defaults scikit-beam file:///reg/g/psdm/sw/conda/channels/testing-rhel7 config file : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/.condarc offline mode : False `$ /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/bin/conda-env export` Traceback (most recent call last): File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/exceptions.py", line 403, in conda_exception_handler return_value = func(*args, **kwargs) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda_env/cli/main_export.py", line 93, in execute ignore_channels=args.ignore_prefix) AttributeError: 'Namespace' object has no attribute 'ignore_prefix' ../manage/config/environment-anabase-1.0.0.yml (END)
AttributeError
def install(prefix, specs, args, env, prune=False): # TODO: support all various ways this happens # Including 'nodefaults' in the channels list disables the defaults new_specs = [] channel_urls = set() for elem in specs: if "::" in elem: channel_urls.add(elem.split("::")[0]) new_specs.append(elem.split("::")[-1]) else: new_specs.append(elem) specs = new_specs channel_urls = list(channel_urls) # TODO: support all various ways this happens # Including 'nodefaults' in the channels list disables the defaults index = get_index( channel_urls=channel_urls + [chan for chan in env.channels if chan != "nodefaults"], prepend="nodefaults" not in env.channels, ) actions = plan.install_actions(prefix, index, specs, prune=prune) with common.json_progress_bars(json=args.json and not args.quiet): try: plan.execute_actions(actions, index, verbose=not args.quiet) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e)
def install(prefix, specs, args, env, prune=False): # TODO: support all various ways this happens # Including 'nodefaults' in the channels list disables the defaults index = get_index( channel_urls=[chan for chan in env.channels if chan != "nodefaults"], prepend="nodefaults" not in env.channels, ) actions = plan.install_actions(prefix, index, specs, prune=prune) with common.json_progress_bars(json=args.json and not args.quiet): try: plan.execute_actions(actions, index, verbose=not args.quiet) except RuntimeError as e: if len(e.args) > 0 and "LOCKERROR" in e.args[0]: raise LockError("Already locked: %s" % text_type(e)) else: raise CondaRuntimeError("RuntimeError: %s" % e) except SystemExit as e: raise CondaSystemExit("Exiting", e)
https://github.com/conda/conda/issues/3253
n unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.2.1 conda is private : False conda-env version : 2.5.2 conda-build version : 1.21.11+0.g5b44ab3.dirty python version : 2.7.12.final.0 requests version : 2.10.0 root environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7 (writable) default environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs/anabase envs directories : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs package cache : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/pkgs channel URLs : file:///reg/g/psdm/sw/conda/channels/system-rhel7 file:///reg/g/psdm/sw/conda/channels/psana-rhel7 file:///reg/g/psdm/sw/conda/channels/external-rhel7 defaults scikit-beam file:///reg/g/psdm/sw/conda/channels/testing-rhel7 config file : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/.condarc offline mode : False `$ /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/bin/conda-env export` Traceback (most recent call last): File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/exceptions.py", line 403, in conda_exception_handler return_value = func(*args, **kwargs) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda_env/cli/main_export.py", line 93, in execute ignore_channels=args.ignore_prefix) AttributeError: 'Namespace' object has no attribute 'ignore_prefix' ../manage/config/environment-anabase-1.0.0.yml (END)
AttributeError
def add_pip_installed(prefix, installed_pkgs, json=None, output=True): # Defer to json for backwards compatibility if type(json) is bool: output = not json # TODO Refactor so installed is a real list of objects/dicts # instead of strings allowing for direct comparison # split :: to get rid of channel info conda_names = {d.rsplit("-", 2)[0].split("::")[-1] for d in installed_pkgs} for pip_pkg in installed(prefix, output=output): if pip_pkg["name"] in conda_names and not "path" in pip_pkg: continue installed_pkgs.add(str(pip_pkg))
def add_pip_installed(prefix, installed_pkgs, json=None, output=True): # Defer to json for backwards compatibility if type(json) is bool: output = not json # TODO Refactor so installed is a real list of objects/dicts # instead of strings allowing for direct comparison conda_names = {d.rsplit("-", 2)[0] for d in installed_pkgs} for pip_pkg in installed(prefix, output=output): if pip_pkg["name"] in conda_names and not "path" in pip_pkg: continue installed_pkgs.add(str(pip_pkg))
https://github.com/conda/conda/issues/3253
n unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.2.1 conda is private : False conda-env version : 2.5.2 conda-build version : 1.21.11+0.g5b44ab3.dirty python version : 2.7.12.final.0 requests version : 2.10.0 root environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7 (writable) default environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs/anabase envs directories : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs package cache : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/pkgs channel URLs : file:///reg/g/psdm/sw/conda/channels/system-rhel7 file:///reg/g/psdm/sw/conda/channels/psana-rhel7 file:///reg/g/psdm/sw/conda/channels/external-rhel7 defaults scikit-beam file:///reg/g/psdm/sw/conda/channels/testing-rhel7 config file : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/.condarc offline mode : False `$ /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/bin/conda-env export` Traceback (most recent call last): File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/exceptions.py", line 403, in conda_exception_handler return_value = func(*args, **kwargs) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda_env/cli/main_export.py", line 93, in execute ignore_channels=args.ignore_prefix) AttributeError: 'Namespace' object has no attribute 'ignore_prefix' ../manage/config/environment-anabase-1.0.0.yml (END)
AttributeError
def execute(args, parser): prefix = context.prefix_w_legacy_search regex = args.regex if args.full_name: regex = r"^%s$" % regex if args.revisions: from conda.history import History h = History(prefix) if isfile(h.path): if not args.json: h.print_log() else: stdout_json(h.object_log()) else: raise CondaFileNotFoundError(h.path, "No revision log found: %s\n" % h.path) return if args.explicit: print_explicit(prefix, args.md5) return if args.canonical: format = "canonical" elif args.export: print_explicit(prefix, args.md5) return else: format = "human" if args.json: format = "canonical" exitcode = print_packages( prefix, regex, format, piplist=args.pip, json=args.json, show_channel_urls=args.show_channel_urls, ) return exitcode
def execute(args, parser): prefix = context.prefix_w_legacy_search regex = args.regex if args.full_name: regex = r"^%s$" % regex if args.revisions: from conda.history import History h = History(prefix) if isfile(h.path): if not args.json: h.print_log() else: stdout_json(h.object_log()) else: raise CondaFileNotFoundError(h.path, "No revision log found: %s\n" % h.path) return if args.explicit: print_explicit(prefix, args.md5) return if args.canonical: format = "canonical" elif args.export: format = "export" else: format = "human" if args.json: format = "canonical" exitcode = print_packages( prefix, regex, format, piplist=args.pip, json=args.json, show_channel_urls=args.show_channel_urls, ) return exitcode
https://github.com/conda/conda/issues/3253
n unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : linux-64 conda version : 4.2.1 conda is private : False conda-env version : 2.5.2 conda-build version : 1.21.11+0.g5b44ab3.dirty python version : 2.7.12.final.0 requests version : 2.10.0 root environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7 (writable) default environment : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs/anabase envs directories : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/envs package cache : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/pkgs channel URLs : file:///reg/g/psdm/sw/conda/channels/system-rhel7 file:///reg/g/psdm/sw/conda/channels/psana-rhel7 file:///reg/g/psdm/sw/conda/channels/external-rhel7 defaults scikit-beam file:///reg/g/psdm/sw/conda/channels/testing-rhel7 config file : /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/.condarc offline mode : False `$ /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/bin/conda-env export` Traceback (most recent call last): File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda/exceptions.py", line 403, in conda_exception_handler return_value = func(*args, **kwargs) File "/reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel7/lib/python2.7/site-packages/conda_env/cli/main_export.py", line 93, in execute ignore_channels=args.ignore_prefix) AttributeError: 'Namespace' object has no attribute 'ignore_prefix' ../manage/config/environment-anabase-1.0.0.yml (END)
AttributeError
def explicit( specs, prefix, verbose=False, force_extract=True, index_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = ( RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK, SYMLINK_CONDA, ) linked = {name_dist(dist): dist for dist in install_linked(prefix)} index_args = index_args or {} index = index or {} verifies = [] channels = set() for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # is_local: if the tarball is stored locally (file://) # is_cache: if the tarball is sitting in our cache is_local = url.startswith("file://") prefix = cached_url(url) if is_local else None is_cache = prefix is not None if is_cache: # Channel information from the cache schannel = "defaults" if prefix == "" else prefix[:-2] else: # Channel information from the URL channel, schannel = url_channel(url) prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] # Add explicit file to index so we'll be sure to see it later if is_local: index[fn] = {"fn": dist2filename(fn), "url": url, "md5": md5} verifies.append((fn, md5)) pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch # Also remove explicit tarballs from cache, unless the path *is* to the cache if ( pkg_path and not is_cache and (is_local or md5 and md5_file(pkg_path) != md5) ): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if not is_local: if fn not in index or index[fn].get("not_fetched"): channels.add(schannel) verifies.append((dist + ".tar.bz2", md5)) actions[FETCH].append(dist) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index_args = index_args or {} index_args = index_args.copy() index_args["prepend"] = False index_args["channel_urls"] = list(channels) index.update(get_index(**index_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
def explicit( specs, prefix, verbose=False, force_extract=True, index_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = ( RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK, SYMLINK_CONDA, ) linked = {name_dist(dist): dist for dist in install_linked(prefix)} index_args = index_args or {} index = index or {} verifies = [] channels = {} for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # is_local: if the tarball is stored locally (file://) # is_cache: if the tarball is sitting in our cache is_local = url.startswith("file://") prefix = cached_url(url) if is_local else None is_cache = prefix is not None if is_cache: # Channel information from the cache schannel = "defaults" if prefix == "" else prefix[:-2] else: # Channel information from the URL channel, schannel = url_channel(url) prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] # Add explicit file to index so we'll be sure to see it later if is_local: index[fn] = {"fn": dist2filename(fn), "url": url, "md5": md5} verifies.append((fn, md5)) pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch # Also remove explicit tarballs from cache, unless the path *is* to the cache if ( pkg_path and not is_cache and (is_local or md5 and md5_file(pkg_path) != md5) ): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if not is_local: if fn not in index or index[fn].get("not_fetched"): channels.add(channel) verifies.append((dist + ".tar.bz2", md5)) actions[FETCH].append(dist) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index_args = index_args or {} index_args = index_args.copy() index_args["prepend"] = False index_args["channel_urls"] = channels index.update(get_index(**index_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
https://github.com/conda/conda/issues/3060
Traceback (most recent call last): File "/opt/miniconda/bin/conda", line 6, in <module> sys.exit(main()) File "/opt/miniconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main exit_code = args_func(args, p) File "/opt/miniconda/lib/python2.7/site-packages/conda/cli/main.py", line 130, in args_func exit_code = args.func(args, p) File "/opt/miniconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 58, in execute install(args, parser, 'create') File "/opt/miniconda/lib/python2.7/site-packages/conda/cli/install.py", line 223, in install clone(args.clone, prefix, json=args.json, quiet=args.quiet, index_args=index_args) File "/opt/miniconda/lib/python2.7/site-packages/conda/cli/install.py", line 88, in clone index_args=index_args) File "/opt/miniconda/lib/python2.7/site-packages/conda/misc.py", line 360, in clone_env force_extract=False, index_args=index_args) File "/opt/miniconda/lib/python2.7/site-packages/conda/misc.py", line 109, in explicit channels.add(channel) AttributeError: 'dict' object has no attribute 'add'
AttributeError
def explicit( specs, prefix, verbose=False, force_extract=True, index_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = ( RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK, SYMLINK_CONDA, ) linked = {name_dist(dist): dist for dist in install_linked(prefix)} index_args = index_args or {} index = index or {} verifies = [] channels = {} for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # is_local: if the tarball is stored locally (file://) # is_cache: if the tarball is sitting in our cache is_local = url.startswith("file://") prefix = cached_url(url) if is_local else None is_cache = prefix is not None if is_cache: # Channel information from the cache schannel = "defaults" if prefix == "" else prefix[:-2] else: # Channel information from the URL channel, schannel = url_channel(url) prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] # Add explicit file to index so we'll be sure to see it later if is_local: index[fn] = {"fn": dist2filename(fn), "url": url, "md5": md5} verifies.append((fn, md5)) pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch # Also remove explicit tarballs from cache, unless the path *is* to the cache if ( pkg_path and not is_cache and (is_local or md5 and md5_file(pkg_path) != md5) ): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if not is_local: if fn not in index or index[fn].get("not_fetched"): channels.add(channel) verifies.append((dist + ".tar.bz2", md5)) actions[FETCH].append(dist) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index_args = index_args or {} index_args = index_args.copy() index_args["prepend"] = False index_args["channel_urls"] = channels index.update(get_index(**index_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
def explicit( specs, prefix, verbose=False, force_extract=True, index_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = ( RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK, SYMLINK_CONDA, ) linked = {name_dist(dist): dist for dist in install_linked(prefix)} index_args = index_args or {} index = index or {} verifies = [] channels = {} for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # See if the URL refers to a package in our cache prefix = pkg_path = dir_path = None if url.startswith("file://"): prefix = cached_url(url) if prefix is not None: schannel = "defaults" if prefix == "" else prefix[:-2] is_file = False # If not, determine the channel name from the URL if prefix is None: channel, schannel = url_channel(url) is_file = schannel.startswith("file:") and schannel.endswith("/") prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] # Add explicit file to index so we'll see it later if is_file: index[fn] = {"fn": dist2filename(fn), "url": url, "md5": None} pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch # Also remove explicit tarballs from cache if pkg_path and (is_file or md5 and md5_file(pkg_path) != md5): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if not is_file: if fn not in index or index[fn].get("not_fetched"): channels[url_p + "/"] = (schannel, 0) verifies.append((dist + ".tar.bz2", md5)) actions[FETCH].append(dist) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index_args = index_args or {} index_args = index_args.copy() index_args["prepend"] = False index_args["channel_urls"] = channels index.update(get_index(**index_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
https://github.com/conda/conda/issues/2970
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 "/home/user/miniconda2/bin/conda", line 6, in <module> sys.exit(main()) File "/home/user/miniconda2/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main exit_code = args_func(args, p) File "/home/user/miniconda2/lib/python2.7/site-packages/conda/cli/main.py", line 130, in args_func exit_code = args.func(args, p) File "/home/user/miniconda2/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/home/user/miniconda2/lib/python2.7/site-packages/conda/cli/install.py", line 203, in install explicit(args.packages, prefix, verbose=not args.quiet) File "/home/user/miniconda2/lib/python2.7/site-packages/conda/misc.py", line 126, in explicit index.update(get_index(**index_args)) File "/home/user/miniconda2/lib/python2.7/site-packages/conda/api.py", line 22, in get_index channel_urls = normalize_urls(channel_urls, platform, offline) File "/home/user/miniconda2/lib/python2.7/site-packages/conda/config.py", line 250, in normalize_urls url = urls[0] KeyError: 0
KeyError
def __init__(self, path): self.path = path self.end = "-" + str(os.getpid()) self.lock_path = join(self.path, LOCKFN + self.end) self.pattern = join(self.path, LOCKFN + "-*") self.remove = True
def __init__(self, path, retries=10): self.path = path self.end = "-" + str(os.getpid()) self.lock_path = os.path.join(self.path, LOCKFN + self.end) self.retries = retries
https://github.com/conda/conda/issues/2778
Traceback (most recent call last): File "/opt/anaconda/bin/conda-env", line 6, in <module> sys.exit(conda_env.cli.main.main()) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/cli/main.py", line 68, in main return args_func(args, parser) File "/opt/anaconda/lib/python3.5/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/cli/main_create.py", line 105, in execute installer.install(prefix, pkg_specs, args, env) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/installers/conda.py", line 20, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/opt/anaconda/lib/python3.5/site-packages/conda/plan.py", line 589, in execute_actions inst.execute_instructions(plan, index, verbose) File "/opt/anaconda/lib/python3.5/site-packages/conda/instructions.py", line 137, in execute_instructions cmd(state, arg) File "/opt/anaconda/lib/python3.5/site-packages/conda/instructions.py", line 80, in LINK_CMD link(state['prefix'], dist, lt, index=state['index'], shortcuts=shortcuts) File "/opt/anaconda/lib/python3.5/site-packages/conda/install.py", line 1059, in link with Locked(prefix), Locked(pkgs_dir): File "/opt/anaconda/lib/python3.5/site-packages/conda/lock.py", line 60, in __enter__ os.makedirs(self.lock_path) File "/opt/anaconda/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/opt/anaconda/pkgs/.conda_lock-5633'
PermissionError
def __enter__(self): retries = 10 # Keep the string "LOCKERROR" in this string so that external # programs can look for it. lockstr = """\ LOCKERROR: It looks like conda is already doing something. The lock %s was found. Wait for it to finish before continuing. If you are sure that conda is not running, remove it and try again. You can also use: $ conda clean --lock\n""" sleeptime = 1 files = None while retries: files = glob.glob(self.pattern) if files and not files[0].endswith(self.end): stdoutlog.info(lockstr % str(files)) stdoutlog.info("Sleeping for %s seconds\n" % sleeptime) sleep(sleeptime) sleeptime *= 2 retries -= 1 else: break else: stdoutlog.error("Exceeded max retries, giving up") raise RuntimeError(lockstr % str(files)) if not files: try: os.makedirs(self.lock_path) except OSError: pass else: # PID lock already here --- someone else will remove it. self.remove = False
def __enter__(self): # Keep the string "LOCKERROR" in this string so that external # programs can look for it. lockstr = """\ LOCKERROR: It looks like conda is already doing something. The lock %s was found. Wait for it to finish before continuing. If you are sure that conda is not running, remove it and try again. You can also use: $ conda clean --lock\n""" sleeptime = 1 for _ in range(self.retries): if os.path.isdir(self.lock_path): stdoutlog.info(lockstr % self.lock_path) stdoutlog.info("Sleeping for %s seconds\n" % sleeptime) time.sleep(sleeptime) sleeptime *= 2 else: os.makedirs(self.lock_path) return self stdoutlog.error("Exceeded max retries, giving up") raise LockError(lockstr % self.lock_path)
https://github.com/conda/conda/issues/2778
Traceback (most recent call last): File "/opt/anaconda/bin/conda-env", line 6, in <module> sys.exit(conda_env.cli.main.main()) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/cli/main.py", line 68, in main return args_func(args, parser) File "/opt/anaconda/lib/python3.5/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/cli/main_create.py", line 105, in execute installer.install(prefix, pkg_specs, args, env) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/installers/conda.py", line 20, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/opt/anaconda/lib/python3.5/site-packages/conda/plan.py", line 589, in execute_actions inst.execute_instructions(plan, index, verbose) File "/opt/anaconda/lib/python3.5/site-packages/conda/instructions.py", line 137, in execute_instructions cmd(state, arg) File "/opt/anaconda/lib/python3.5/site-packages/conda/instructions.py", line 80, in LINK_CMD link(state['prefix'], dist, lt, index=state['index'], shortcuts=shortcuts) File "/opt/anaconda/lib/python3.5/site-packages/conda/install.py", line 1059, in link with Locked(prefix), Locked(pkgs_dir): File "/opt/anaconda/lib/python3.5/site-packages/conda/lock.py", line 60, in __enter__ os.makedirs(self.lock_path) File "/opt/anaconda/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/opt/anaconda/pkgs/.conda_lock-5633'
PermissionError
def __exit__(self, exc_type, exc_value, traceback): if self.remove: for path in self.lock_path, self.path: try: os.rmdir(path) except OSError: pass
def __exit__(self, exc_type, exc_value, traceback): try: os.rmdir(self.lock_path) os.rmdir(self.path) except OSError: pass
https://github.com/conda/conda/issues/2778
Traceback (most recent call last): File "/opt/anaconda/bin/conda-env", line 6, in <module> sys.exit(conda_env.cli.main.main()) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/cli/main.py", line 68, in main return args_func(args, parser) File "/opt/anaconda/lib/python3.5/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/cli/main_create.py", line 105, in execute installer.install(prefix, pkg_specs, args, env) File "/opt/anaconda/lib/python3.5/site-packages/conda_env/installers/conda.py", line 20, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/opt/anaconda/lib/python3.5/site-packages/conda/plan.py", line 589, in execute_actions inst.execute_instructions(plan, index, verbose) File "/opt/anaconda/lib/python3.5/site-packages/conda/instructions.py", line 137, in execute_instructions cmd(state, arg) File "/opt/anaconda/lib/python3.5/site-packages/conda/instructions.py", line 80, in LINK_CMD link(state['prefix'], dist, lt, index=state['index'], shortcuts=shortcuts) File "/opt/anaconda/lib/python3.5/site-packages/conda/install.py", line 1059, in link with Locked(prefix), Locked(pkgs_dir): File "/opt/anaconda/lib/python3.5/site-packages/conda/lock.py", line 60, in __enter__ os.makedirs(self.lock_path) File "/opt/anaconda/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/opt/anaconda/pkgs/.conda_lock-5633'
PermissionError
def get_rc_urls(): if rc is None or rc.get("channels") is None: return [] if "system" in rc["channels"]: raise RuntimeError("system cannot be used in .condarc") return rc["channels"]
def get_rc_urls(): if rc.get("channels") is None: return [] if "system" in rc["channels"]: raise RuntimeError("system cannot be used in .condarc") return rc["channels"]
https://github.com/conda/conda/issues/2891
$ conda info Traceback (most recent call last): File "/Users/jenns/anaconda/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 61, in main from conda.cli import conda_argparse File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/cli/conda_argparse.py", line 15, in <module> from .common import add_parser_help File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/cli/common.py", line 12, in <module> from ..config import (envs_dirs, default_prefix, platform, update_dependencies, File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/config.py", line 331, in <module> allowed_channels = get_allowed_channels() File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/config.py", line 329, in get_allowed_channels return normalize_urls(base_urls) File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/config.py", line 253, in normalize_urls urls = get_rc_urls() + urls File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/config.py", line 197, in get_rc_urls if rc.get('channels') is None: AttributeError: 'NoneType' object has no attribute 'get'
AttributeError
def print_explicit(prefix, add_md5=False): if not isdir(prefix): error_and_exit("Error: environment does not exist: %s" % prefix) print_export_header() print("@EXPLICIT") for meta in sorted(linked_data(prefix).values(), key=lambda x: x["name"]): url = meta.get("url") if not url or url.startswith("<unknown>"): print("# no URL for: %s" % meta["fn"]) continue md5 = meta.get("md5") print(url + ("#%s" % md5 if add_md5 and md5 else ""))
def print_explicit(prefix, add_md5=False): import json if not isdir(prefix): error_and_exit("Error: environment does not exist: %s" % prefix) print_export_header() print("@EXPLICIT") meta_dir = join(prefix, "conda-meta") for fn in sorted(os.listdir(meta_dir)): if not fn.endswith(".json"): continue with open(join(meta_dir, fn)) as fi: meta = json.load(fi) url = meta.get("url") def format_url(): return "%s%s-%s-%s.tar.bz2" % ( meta["channel"], meta["name"], meta["version"], meta["build"], ) # two cases in which we want to try to format the url: # 1. There is no url key in the metadata # 2. The url key in the metadata is referencing a file on the local # machine if not url: try: url = format_url() except KeyError: # Declare failure :-( print("# no URL for: %s" % fn[:-5]) continue if url.startswith("file"): try: url = format_url() except KeyError: # declare failure and allow the url to be the file from which it was # originally installed continue md5 = meta.get("md5") print(url + ("#%s" % md5 if add_md5 and md5 else ""))
https://github.com/conda/conda/issues/2781
[root@42d0710d45b6 /]# conda index /opt/packages/linux-64/ updating index in: /opt/packages/linux-64 [root@42d0710d45b6 /]# ls /opt/packages/linux-64/ numpy-1.11.0-py35_1.tar.bz2 repodata.json repodata.json.bz2 [root@42d0710d45b6 /]# conda install -c file:///opt/packages --yes numpy Fetching package metadata ......... Solving package specifications: .......... Package plan for installation in environment /opt/conda: The following packages will be downloaded: package | build ---------------------------|----------------- numpy-1.11.0 | py35_1 6.1 MB file:///opt/packages The following NEW packages will be INSTALLED: numpy: 1.11.0-py35_1 file:///opt/packages Pruning fetched packages from the cache ... Fetching packages ... numpy-1.11.0-p 100% |#########################################################################################################| Time: 0:00:00 164.40 MB/s Extracting packages ... An unexpected error has occurred, please consider sending the | 0% 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 "/opt/conda/bin/conda", line 6, in <module> sys.exit(main()) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main_install.py", line 69, in execute install(args, parser, 'install') File "/opt/conda/lib/python3.5/site-packages/conda/cli/install.py", line 407, in install execute_actions(actions, index, verbose=not args.quiet) File "/opt/conda/lib/python3.5/site-packages/conda/plan.py", line 589, in execute_actions inst.execute_instructions(plan, index, verbose) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 137, in execute_instructions cmd(state, arg) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 60, in EXTRACT_CMD extract(arg) File "/opt/conda/lib/python3.5/site-packages/conda/install.py", line 833, in extract rec = package_cache()[dist] KeyError: 'file:///opt/packages::numpy-1.11.0-py35_1'
KeyError
def url_channel(url): parts = (url or "").rsplit("/", 2) if len(parts) == 1: return "<unknown>", "<unknown>" if len(parts) == 2: return parts[0], parts[0] if url.startswith("file://") and parts[1] not in ("noarch", subdir): # Explicit file-based URLs are denoted with a '/' in the schannel channel = parts[0] + "/" + parts[1] schannel = channel + "/" else: channel = parts[0] schannel = canonical_channel_name(channel) return channel, schannel
def url_channel(url): if url is None: return None, "<unknown>" channel = url.rsplit("/", 2)[0] schannel = canonical_channel_name(channel) if url.startswith("file://") and schannel != "local": channel = schannel = url.rsplit("/", 1)[0] return channel, schannel
https://github.com/conda/conda/issues/2781
[root@42d0710d45b6 /]# conda index /opt/packages/linux-64/ updating index in: /opt/packages/linux-64 [root@42d0710d45b6 /]# ls /opt/packages/linux-64/ numpy-1.11.0-py35_1.tar.bz2 repodata.json repodata.json.bz2 [root@42d0710d45b6 /]# conda install -c file:///opt/packages --yes numpy Fetching package metadata ......... Solving package specifications: .......... Package plan for installation in environment /opt/conda: The following packages will be downloaded: package | build ---------------------------|----------------- numpy-1.11.0 | py35_1 6.1 MB file:///opt/packages The following NEW packages will be INSTALLED: numpy: 1.11.0-py35_1 file:///opt/packages Pruning fetched packages from the cache ... Fetching packages ... numpy-1.11.0-p 100% |#########################################################################################################| Time: 0:00:00 164.40 MB/s Extracting packages ... An unexpected error has occurred, please consider sending the | 0% 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 "/opt/conda/bin/conda", line 6, in <module> sys.exit(main()) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main_install.py", line 69, in execute install(args, parser, 'install') File "/opt/conda/lib/python3.5/site-packages/conda/cli/install.py", line 407, in install execute_actions(actions, index, verbose=not args.quiet) File "/opt/conda/lib/python3.5/site-packages/conda/plan.py", line 589, in execute_actions inst.execute_instructions(plan, index, verbose) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 137, in execute_instructions cmd(state, arg) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 60, in EXTRACT_CMD extract(arg) File "/opt/conda/lib/python3.5/site-packages/conda/install.py", line 833, in extract rec = package_cache()[dist] KeyError: 'file:///opt/packages::numpy-1.11.0-py35_1'
KeyError
def load_linked_data(prefix, dist, rec=None): schannel, dname = dist2pair(dist) meta_file = join(prefix, "conda-meta", dname + ".json") if rec is None: try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") fn = rec.get("fn") if not fn: fn = rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if fn[:-8] != dname: log.debug("Ignoring invalid package metadata file: %s" % meta_file) return None channel = rec.get("channel") if channel: channel = channel.rstrip("/") if not url or (url.startswith("file:") and channel[0] != "<unknown>"): url = rec["url"] = channel + "/" + fn channel, schannel = url_channel(url) rec["channel"] = channel rec["schannel"] = schannel rec["link"] = rec.get("link") or True cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
def load_linked_data(prefix, dist, rec=None): schannel, dname = dist2pair(dist) meta_file = join(prefix, "conda-meta", dname + ".json") if rec is None: try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") if "fn" not in rec: rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if not url and "channel" in rec: url = rec["url"] = rec["channel"] + rec["fn"] if rec["fn"][:-8] != dname: log.debug("Ignoring invalid package metadata file: %s" % meta_file) return None channel, schannel = url_channel(url) rec["channel"] = channel rec["schannel"] = schannel rec["link"] = rec.get("link") or True cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
https://github.com/conda/conda/issues/2781
[root@42d0710d45b6 /]# conda index /opt/packages/linux-64/ updating index in: /opt/packages/linux-64 [root@42d0710d45b6 /]# ls /opt/packages/linux-64/ numpy-1.11.0-py35_1.tar.bz2 repodata.json repodata.json.bz2 [root@42d0710d45b6 /]# conda install -c file:///opt/packages --yes numpy Fetching package metadata ......... Solving package specifications: .......... Package plan for installation in environment /opt/conda: The following packages will be downloaded: package | build ---------------------------|----------------- numpy-1.11.0 | py35_1 6.1 MB file:///opt/packages The following NEW packages will be INSTALLED: numpy: 1.11.0-py35_1 file:///opt/packages Pruning fetched packages from the cache ... Fetching packages ... numpy-1.11.0-p 100% |#########################################################################################################| Time: 0:00:00 164.40 MB/s Extracting packages ... An unexpected error has occurred, please consider sending the | 0% 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 "/opt/conda/bin/conda", line 6, in <module> sys.exit(main()) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main_install.py", line 69, in execute install(args, parser, 'install') File "/opt/conda/lib/python3.5/site-packages/conda/cli/install.py", line 407, in install execute_actions(actions, index, verbose=not args.quiet) File "/opt/conda/lib/python3.5/site-packages/conda/plan.py", line 589, in execute_actions inst.execute_instructions(plan, index, verbose) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 137, in execute_instructions cmd(state, arg) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 60, in EXTRACT_CMD extract(arg) File "/opt/conda/lib/python3.5/site-packages/conda/install.py", line 833, in extract rec = package_cache()[dist] KeyError: 'file:///opt/packages::numpy-1.11.0-py35_1'
KeyError
def explicit( specs, prefix, verbose=False, force_extract=True, fetch_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK linked = {name_dist(dist): dist for dist in install_linked(prefix)} fetch_args = fetch_args or {} index = index or {} verifies = [] channels = {} for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # See if the URL refers to a package in our cache prefix = pkg_path = dir_path = None if url.startswith("file://"): prefix = cached_url(url) # If not, determine the channel name from the URL if prefix is None: channel, schannel = url_channel(url) prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] is_file = schannel.startswith("file:") and schannel.endswith("/") # Add explicit file to index so we'll see it later if is_file: index[fn] = {"fn": dist2filename(fn), "url": url, "md5": None} pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch # Also remove explicit tarballs from cache if pkg_path and (is_file or md5 and md5_file(pkg_path) != md5): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if not is_file: if fn not in index or index[fn].get("not_fetched"): channels[url_p + "/"] = (schannel, 0) verifies.append((dist + ".tar.bz2", md5)) actions[FETCH].append(dist) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index.update(fetch_index(channels, **fetch_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
def explicit( specs, prefix, verbose=False, force_extract=True, fetch_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix actions["op_order"] = RM_FETCHED, FETCH, RM_EXTRACTED, EXTRACT, UNLINK, LINK linked = {name_dist(dist): dist for dist in install_linked(prefix)} fetch_args = fetch_args or {} index = index or {} verifies = [] channels = {} for spec in specs: if spec == "@EXPLICIT": continue # Format: (url|path)(:#md5)? m = url_pat.match(spec) if m is None: sys.exit("Could not parse explicit URL: %s" % spec) url_p, fn, md5 = m.group("url_p"), m.group("fn"), m.group("md5") if not is_url(url_p): if url_p is None: url_p = curdir elif not isdir(url_p): sys.exit("Error: file not found: %s" % join(url_p, fn)) url_p = utils_url_path(url_p).rstrip("/") url = "{0}/{1}".format(url_p, fn) # See if the URL refers to a package in our cache prefix = pkg_path = dir_path = None if url.startswith("file://"): prefix = cached_url(url) # If not, determine the channel name from the URL if prefix is None: _, schannel = url_channel(url) prefix = "" if schannel == "defaults" else schannel + "::" fn = prefix + fn dist = fn[:-8] is_file = fn.startswith("file://") # Add file to index so we'll see it later if is_file: index[fn] = {"fn": dist2filename(fn), "url": url, "md5": None} pkg_path = is_fetched(dist) dir_path = is_extracted(dist) # Don't re-fetch unless there is an MD5 mismatch # Also remove explicit tarballs from cache if pkg_path and (is_file or md5 and md5_file(pkg_path) != md5): # This removes any extracted copies as well actions[RM_FETCHED].append(dist) pkg_path = dir_path = None # Don't re-extract unless forced, or if we can't check the md5 if dir_path and (force_extract or md5 and not pkg_path): actions[RM_EXTRACTED].append(dist) dir_path = None if not dir_path: if not pkg_path: _, conflict = find_new_location(dist) if conflict: actions[RM_FETCHED].append(conflict) if not is_file: if fn not in index or index[fn].get("not_fetched"): channels[url_p + "/"] = (schannel, 0) verifies.append((dist + ".tar.bz2", md5)) actions[FETCH].append(dist) actions[EXTRACT].append(dist) # unlink any installed package with that name name = name_dist(dist) if name in linked: actions[UNLINK].append(linked[name]) actions[LINK].append(dist) # Pull the repodata for channels we are using if channels: index.update(fetch_index(channels, **fetch_args)) # Finish the MD5 verification for fn, md5 in verifies: info = index.get(fn) if info is None: sys.exit("Error: no package '%s' in index" % fn) if md5 and "md5" not in info: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if md5 and info["md5"] != md5: sys.exit( "MD5 mismatch for: %s\n spec: %s\n repo: %s" % (fn, md5, info["md5"]) ) execute_actions(actions, index=index, verbose=verbose) return actions
https://github.com/conda/conda/issues/2781
[root@42d0710d45b6 /]# conda index /opt/packages/linux-64/ updating index in: /opt/packages/linux-64 [root@42d0710d45b6 /]# ls /opt/packages/linux-64/ numpy-1.11.0-py35_1.tar.bz2 repodata.json repodata.json.bz2 [root@42d0710d45b6 /]# conda install -c file:///opt/packages --yes numpy Fetching package metadata ......... Solving package specifications: .......... Package plan for installation in environment /opt/conda: The following packages will be downloaded: package | build ---------------------------|----------------- numpy-1.11.0 | py35_1 6.1 MB file:///opt/packages The following NEW packages will be INSTALLED: numpy: 1.11.0-py35_1 file:///opt/packages Pruning fetched packages from the cache ... Fetching packages ... numpy-1.11.0-p 100% |#########################################################################################################| Time: 0:00:00 164.40 MB/s Extracting packages ... An unexpected error has occurred, please consider sending the | 0% 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 "/opt/conda/bin/conda", line 6, in <module> sys.exit(main()) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/opt/conda/lib/python3.5/site-packages/conda/cli/main_install.py", line 69, in execute install(args, parser, 'install') File "/opt/conda/lib/python3.5/site-packages/conda/cli/install.py", line 407, in install execute_actions(actions, index, verbose=not args.quiet) File "/opt/conda/lib/python3.5/site-packages/conda/plan.py", line 589, in execute_actions inst.execute_instructions(plan, index, verbose) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 137, in execute_instructions cmd(state, arg) File "/opt/conda/lib/python3.5/site-packages/conda/instructions.py", line 60, in EXTRACT_CMD extract(arg) File "/opt/conda/lib/python3.5/site-packages/conda/install.py", line 833, in extract rec = package_cache()[dist] KeyError: 'file:///opt/packages::numpy-1.11.0-py35_1'
KeyError
def add_unknown(index, priorities): priorities = {p[0]: p[1] for p in itervalues(priorities)} maxp = max(itervalues(priorities)) + 1 if priorities else 1 for dist, info in iteritems(package_cache()): schannel, dname = dist2pair(dist) fname = dname + ".tar.bz2" fkey = dist + ".tar.bz2" if fkey in index or not info["dirs"]: continue try: with open(join(info["dirs"][0], "info", "index.json")) as fi: meta = json.load(fi) except IOError: continue if info["urls"]: url = info["urls"][0] elif meta.get("url"): url = meta["url"] elif meta.get("channel"): url = meta["channel"].rstrip("/") + "/" + fname else: url = "<unknown>/" + fname if url.rsplit("/", 1)[-1] != fname: continue channel, schannel2 = url_channel(url) if schannel2 != schannel: continue priority = priorities.get(schannel, maxp) if "link" in meta: del meta["link"] meta.update( { "fn": fname, "url": url, "channel": channel, "schannel": schannel, "priority": priority, } ) meta.setdefault("depends", []) log.debug("adding cached pkg to index: %s" % fkey) index[fkey] = meta
def add_unknown(index, priorities): priorities = {p[0]: p[1] for p in itervalues(priorities)} maxp = max(itervalues(priorities)) + 1 if priorities else 1 for dist, info in iteritems(package_cache()): schannel, dname = dist2pair(dist) fname = dname + ".tar.bz2" fkey = dist + ".tar.bz2" if fkey in index or not info["dirs"]: continue try: with open(join(info["dirs"][0], "info", "index.json")) as fi: meta = json.load(fi) except IOError: continue if info["urls"]: url = info["urls"][0] elif "url" in meta: url = meta["url"] elif "channel" in meta: url = meta["channel"].rstrip("/") + "/" + fname else: url = "<unknown>/" + fname if url.rsplit("/", 1)[-1] != fname: continue channel, schannel2 = url_channel(url) if schannel2 != schannel: continue priority = priorities.get(schannel, maxp) if "link" in meta: del meta["link"] meta.update( { "fn": fname, "url": url, "channel": channel, "schannel": schannel, "priority": priority, } ) meta.setdefault("depends", []) log.debug("adding cached pkg to index: %s" % fkey) index[fkey] = meta
https://github.com/conda/conda/issues/2746
% conda create -p ~/anaclone --clone root Source: /Users/ijstokes/anaconda Destination: /Users/ijstokes/anaclone The following packages cannot be cloned out of the root environment: - conda-4.1.1-py27_0 - conda-build-1.20.3-py27_0 Packages: 332 Files: 16134 An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/conda/conda/issues clude the output of the command 'conda info' in your report. Traceback (most recent call last): File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 218, in install 'unknown': args.unknown}) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 87, in clone fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 353, in clone_env force_extract=False, fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 56, in explicit m = url_pat.match(spec) TypeError: expected string or buffer
TypeError
def create_meta(prefix, dist, info_dir, extra_info): """ Create the conda metadata, in a given prefix, for a given package. """ # read info/index.json first with open(join(info_dir, "index.json")) as fi: meta = json.load(fi) # add extra info, add to our intenral cache meta.update(extra_info) if not meta.get("url"): meta["url"] = read_url(dist) # write into <env>/conda-meta/<dist>.json meta_dir = join(prefix, "conda-meta") if not isdir(meta_dir): os.makedirs(meta_dir) with open(join(meta_dir, dist2filename(dist, ".json")), "w") as fo: json.dump(meta, fo, indent=2, sort_keys=True) if prefix in linked_data_: load_linked_data(prefix, dist, meta)
def create_meta(prefix, dist, info_dir, extra_info): """ Create the conda metadata, in a given prefix, for a given package. """ # read info/index.json first with open(join(info_dir, "index.json")) as fi: meta = json.load(fi) # add extra info, add to our intenral cache meta.update(extra_info) if "url" not in meta: meta["url"] = read_url(dist) # write into <env>/conda-meta/<dist>.json meta_dir = join(prefix, "conda-meta") if not isdir(meta_dir): os.makedirs(meta_dir) with open(join(meta_dir, dist2filename(dist, ".json")), "w") as fo: json.dump(meta, fo, indent=2, sort_keys=True) if prefix in linked_data_: load_linked_data(prefix, dist, meta)
https://github.com/conda/conda/issues/2746
% conda create -p ~/anaclone --clone root Source: /Users/ijstokes/anaconda Destination: /Users/ijstokes/anaclone The following packages cannot be cloned out of the root environment: - conda-4.1.1-py27_0 - conda-build-1.20.3-py27_0 Packages: 332 Files: 16134 An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/conda/conda/issues clude the output of the command 'conda info' in your report. Traceback (most recent call last): File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 218, in install 'unknown': args.unknown}) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 87, in clone fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 353, in clone_env force_extract=False, fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 56, in explicit m = url_pat.match(spec) TypeError: expected string or buffer
TypeError
def load_linked_data(prefix, dist, rec=None): schannel, dname = dist2pair(dist) meta_file = join(prefix, "conda-meta", dname + ".json") if rec is None: try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") fn = rec.get("fn") if not fn: fn = rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if fn[:-8] != dname: log.debug("Ignoring invalid package metadata file: %s" % meta_file) return None channel = rec.get("channel") if channel: channel = channel.rstrip("/") if not url or (url.startswith("file:") and channel[0] != "<unknown>"): url = rec["url"] = channel + "/" + fn channel, schannel = url_channel(url) rec["url"] = url rec["channel"] = channel rec["schannel"] = schannel rec["link"] = rec.get("link") or True cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
def load_linked_data(prefix, dist, rec=None): schannel, dname = dist2pair(dist) meta_file = join(prefix, "conda-meta", dname + ".json") if rec is None: try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") fn = rec.get("fn") if not fn: fn = rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if fn[:-8] != dname: log.debug("Ignoring invalid package metadata file: %s" % meta_file) return None channel = rec.get("channel") if channel: channel = channel.rstrip("/") if not url or (url.startswith("file:") and channel[0] != "<unknown>"): url = rec["url"] = channel + "/" + fn channel, schannel = url_channel(url) rec["channel"] = channel rec["schannel"] = schannel rec["link"] = rec.get("link") or True cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
https://github.com/conda/conda/issues/2746
% conda create -p ~/anaclone --clone root Source: /Users/ijstokes/anaconda Destination: /Users/ijstokes/anaclone The following packages cannot be cloned out of the root environment: - conda-4.1.1-py27_0 - conda-build-1.20.3-py27_0 Packages: 332 Files: 16134 An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/conda/conda/issues clude the output of the command 'conda info' in your report. Traceback (most recent call last): File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 218, in install 'unknown': args.unknown}) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 87, in clone fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 353, in clone_env force_extract=False, fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 56, in explicit m = url_pat.match(spec) TypeError: expected string or buffer
TypeError
def clone_env(prefix1, prefix2, verbose=True, quiet=False, fetch_args=None): """ clone existing prefix1 into new prefix2 """ untracked_files = untracked(prefix1) # Discard conda and any package that depends on it drecs = linked_data(prefix1) filter = {} found = True while found: found = False for dist, info in iteritems(drecs): name = info["name"] if name in filter: continue if name == "conda": filter["conda"] = dist found = True break for dep in info.get("depends", []): if MatchSpec(dep).name in filter: filter[name] = dist found = True if filter: if not quiet: print( "The following packages cannot be cloned out of the root environment:" ) for pkg in itervalues(filter): print(" - " + pkg) drecs = { dist: info for dist, info in iteritems(drecs) if info["name"] not in filter } # Resolve URLs for packages that do not have URLs r = None index = {} unknowns = [dist for dist, info in iteritems(drecs) if not info.get("url")] notfound = [] if unknowns: fetch_args = fetch_args or {} index = get_index(**fetch_args) r = Resolve(index, sort=True) for dist in unknowns: name = name_dist(dist) fn = dist2filename(dist) fkeys = [d for d in r.index.keys() if r.index[d]["fn"] == fn] if fkeys: del drecs[dist] dist = sorted(fkeys, key=r.version_key, reverse=True)[0] drecs[dist] = r.index[dist] else: notfound.append(fn) if notfound: what = "Package%s " % ("" if len(notfound) == 1 else "s") notfound = "\n".join(" - " + fn for fn in notfound) msg = "%s missing in current %s channels:%s" % (what, subdir, notfound) raise RuntimeError(msg) # Assemble the URL and channel list urls = {} for dist, info in iteritems(drecs): fkey = dist + ".tar.bz2" if fkey not in index: info["not_fetched"] = True index[fkey] = info r = None urls[dist] = info["url"] if r is None: r = Resolve(index) dists = r.dependency_sort(urls.keys()) urls = [urls[d] for d in dists] if verbose: print("Packages: %d" % len(dists)) print("Files: %d" % len(untracked_files)) for f in untracked_files: src = join(prefix1, f) dst = join(prefix2, f) dst_dir = dirname(dst) if islink(dst_dir) or isfile(dst_dir): os.unlink(dst_dir) if not isdir(dst_dir): os.makedirs(dst_dir) if islink(src): os.symlink(os.readlink(src), dst) continue try: with open(src, "rb") as fi: data = fi.read() except IOError: continue try: s = data.decode("utf-8") s = s.replace(prefix1, prefix2) data = s.encode("utf-8") except UnicodeDecodeError: # data is binary pass with open(dst, "wb") as fo: fo.write(data) shutil.copystat(src, dst) actions = explicit( urls, prefix2, verbose=not quiet, index=index, force_extract=False, fetch_args=fetch_args, ) return actions, untracked_files
def clone_env(prefix1, prefix2, verbose=True, quiet=False, fetch_args=None): """ clone existing prefix1 into new prefix2 """ untracked_files = untracked(prefix1) # Discard conda and any package that depends on it drecs = linked_data(prefix1) filter = {} found = True while found: found = False for dist, info in iteritems(drecs): name = info["name"] if name in filter: continue if name == "conda": filter["conda"] = dist found = True break for dep in info.get("depends", []): if MatchSpec(dep).name in filter: filter[name] = dist found = True if filter: if not quiet: print( "The following packages cannot be cloned out of the root environment:" ) for pkg in itervalues(filter): print(" - " + pkg) drecs = { dist: info for dist, info in iteritems(drecs) if info["name"] not in filter } # Resolve URLs for packages that do not have URLs r = None index = {} unknowns = [dist for dist, info in iteritems(drecs) if "url" not in info] notfound = [] if unknowns: fetch_args = fetch_args or {} index = get_index(**fetch_args) r = Resolve(index, sort=True) for dist in unknowns: name = name_dist(dist) fn = dist2filename(dist) fkeys = [d for d in r.index.keys() if r.index[d]["fn"] == fn] if fkeys: del drecs[dist] dist = sorted(fkeys, key=r.version_key, reverse=True)[0] drecs[dist] = r.index[dist] else: notfound.append(fn) if notfound: what = "Package%s " % ("" if len(notfound) == 1 else "s") notfound = "\n".join(" - " + fn for fn in notfound) msg = "%s missing in current %s channels:%s" % (what, subdir, notfound) raise RuntimeError(msg) # Assemble the URL and channel list urls = {} for dist, info in iteritems(drecs): fkey = dist + ".tar.bz2" if fkey not in index: info["not_fetched"] = True index[fkey] = info r = None urls[dist] = info["url"] if r is None: r = Resolve(index) dists = r.dependency_sort(urls.keys()) urls = [urls[d] for d in dists] if verbose: print("Packages: %d" % len(dists)) print("Files: %d" % len(untracked_files)) for f in untracked_files: src = join(prefix1, f) dst = join(prefix2, f) dst_dir = dirname(dst) if islink(dst_dir) or isfile(dst_dir): os.unlink(dst_dir) if not isdir(dst_dir): os.makedirs(dst_dir) if islink(src): os.symlink(os.readlink(src), dst) continue try: with open(src, "rb") as fi: data = fi.read() except IOError: continue try: s = data.decode("utf-8") s = s.replace(prefix1, prefix2) data = s.encode("utf-8") except UnicodeDecodeError: # data is binary pass with open(dst, "wb") as fo: fo.write(data) shutil.copystat(src, dst) actions = explicit( urls, prefix2, verbose=not quiet, index=index, force_extract=False, fetch_args=fetch_args, ) return actions, untracked_files
https://github.com/conda/conda/issues/2746
% conda create -p ~/anaclone --clone root Source: /Users/ijstokes/anaconda Destination: /Users/ijstokes/anaclone The following packages cannot be cloned out of the root environment: - conda-4.1.1-py27_0 - conda-build-1.20.3-py27_0 Packages: 332 Files: 16134 An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/conda/conda/issues clude the output of the command 'conda info' in your report. Traceback (most recent call last): File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 218, in install 'unknown': args.unknown}) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 87, in clone fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 353, in clone_env force_extract=False, fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 56, in explicit m = url_pat.match(spec) TypeError: expected string or buffer
TypeError
def make_icon_url(info): if info.get("channel") and info.get("icon"): base_url = dirname(info["channel"]) icon_fn = info["icon"] # icon_cache_path = join(pkgs_dir, 'cache', icon_fn) # if isfile(icon_cache_path): # return url_path(icon_cache_path) return "%s/icons/%s" % (base_url, icon_fn) return ""
def make_icon_url(info): if "channel" in info and "icon" in info: base_url = dirname(info["channel"]) icon_fn = info["icon"] # icon_cache_path = join(pkgs_dir, 'cache', icon_fn) # if isfile(icon_cache_path): # return url_path(icon_cache_path) return "%s/icons/%s" % (base_url, icon_fn) return ""
https://github.com/conda/conda/issues/2746
% conda create -p ~/anaclone --clone root Source: /Users/ijstokes/anaconda Destination: /Users/ijstokes/anaclone The following packages cannot be cloned out of the root environment: - conda-4.1.1-py27_0 - conda-build-1.20.3-py27_0 Packages: 332 Files: 16134 An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/conda/conda/issues clude the output of the command 'conda info' in your report. Traceback (most recent call last): File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 218, in install 'unknown': args.unknown}) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 87, in clone fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 353, in clone_env force_extract=False, fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 56, in explicit m = url_pat.match(spec) TypeError: expected string or buffer
TypeError
def display_actions(actions, index, show_channel_urls=None): if show_channel_urls is None: show_channel_urls = config_show_channel_urls def channel_str(rec): if rec.get("schannel"): return rec["schannel"] if rec.get("url"): return url_channel(rec["url"])[1] if rec.get("channel"): return canonical_channel_name(rec["channel"]) return "<unknown>" def channel_filt(s): if show_channel_urls is False: return "" if show_channel_urls is None and s == "defaults": return "" return s if actions.get(inst.FETCH): print("\nThe following packages will be downloaded:\n") disp_lst = [] for dist in actions[inst.FETCH]: info = index[dist + ".tar.bz2"] extra = "%15s" % human_bytes(info["size"]) schannel = channel_filt(channel_str(info)) if schannel: extra += " " + schannel disp_lst.append((dist, extra)) print_dists(disp_lst) if index and len(actions[inst.FETCH]) > 1: num_bytes = sum( index[dist + ".tar.bz2"]["size"] for dist in actions[inst.FETCH] ) print(" " * 4 + "-" * 60) print(" " * 43 + "Total: %14s" % human_bytes(num_bytes)) # package -> [oldver-oldbuild, newver-newbuild] packages = defaultdict(lambda: list(("", ""))) features = defaultdict(lambda: list(("", ""))) channels = defaultdict(lambda: list(("", ""))) records = defaultdict(lambda: list((None, None))) linktypes = {} for arg in actions.get(inst.LINK, []): dist, lt, shortcuts = inst.split_linkarg(arg) fkey = dist + ".tar.bz2" rec = index[fkey] pkg = rec["name"] channels[pkg][1] = channel_str(rec) packages[pkg][1] = rec["version"] + "-" + rec["build"] records[pkg][1] = Package(fkey, rec) linktypes[pkg] = lt features[pkg][1] = rec.get("features", "") for arg in actions.get(inst.UNLINK, []): dist, lt, shortcuts = inst.split_linkarg(arg) fkey = dist + ".tar.bz2" rec = index.get(fkey) if rec is None: pkg, ver, build, schannel = dist2quad(dist) rec = dict( name=pkg, version=ver, build=build, channel=None, schannel="<unknown>", build_number=int(build) if build.isdigit() else 0, ) pkg = rec["name"] channels[pkg][0] = channel_str(rec) packages[pkg][0] = rec["version"] + "-" + rec["build"] records[pkg][0] = Package(fkey, rec) features[pkg][0] = rec.get("features", "") # Put a minimum length here---. .--For the : # v v new = {p for p in packages if not packages[p][0]} removed = {p for p in packages if not packages[p][1]} # New packages are actually listed in the left-hand column, # so let's move them over there for pkg in new: for var in (packages, features, channels, records): var[pkg] = var[pkg][::-1] if packages: maxpkg = max(len(p) for p in packages) + 1 maxoldver = max(len(p[0]) for p in packages.values()) maxnewver = max(len(p[1]) for p in packages.values()) maxoldfeatures = max(len(p[0]) for p in features.values()) maxnewfeatures = max(len(p[1]) for p in features.values()) maxoldchannels = max(len(channel_filt(p[0])) for p in channels.values()) maxnewchannels = max(len(channel_filt(p[1])) for p in channels.values()) updated = set() downgraded = set() channeled = set() oldfmt = {} newfmt = {} for pkg in packages: # That's right. I'm using old-style string formatting to generate a # string with new-style string formatting. oldfmt[pkg] = "{pkg:<%s} {vers[0]:<%s}" % (maxpkg, maxoldver) if maxoldchannels: oldfmt[pkg] += " {channels[0]:<%s}" % maxoldchannels if features[pkg][0]: oldfmt[pkg] += " [{features[0]:<%s}]" % maxoldfeatures lt = linktypes.get(pkg, LINK_HARD) lt = "" if lt == LINK_HARD else (" (%s)" % link_name_map[lt]) if pkg in removed or pkg in new: oldfmt[pkg] += lt continue newfmt[pkg] = "{vers[1]:<%s}" % maxnewver if maxnewchannels: newfmt[pkg] += " {channels[1]:<%s}" % maxnewchannels if features[pkg][1]: newfmt[pkg] += " [{features[1]:<%s}]" % maxnewfeatures newfmt[pkg] += lt P0 = records[pkg][0] P1 = records[pkg][1] pri0 = P0.priority pri1 = P1.priority if pri0 is None or pri1 is None: pri0 = pri1 = 1 try: if str(P1.version) == "custom": newver = str(P0.version) != "custom" oldver = not newver else: # <= here means that unchanged packages will be put in updated newver = P0.norm_version < P1.norm_version oldver = P0.norm_version > P1.norm_version except TypeError: newver = P0.version < P1.version oldver = P0.version > P1.version oldbld = P0.build_number > P1.build_number newbld = P0.build_number < P1.build_number if channel_priority and pri1 < pri0 and (oldver or not newver and not newbld): channeled.add(pkg) elif newver: updated.add(pkg) elif pri1 < pri0 and (oldver or not newver and oldbld): channeled.add(pkg) elif oldver: downgraded.add(pkg) elif not oldbld: updated.add(pkg) else: downgraded.add(pkg) arrow = " --> " lead = " " * 4 def format(s, pkg): chans = [channel_filt(c) for c in channels[pkg]] return lead + s.format( pkg=pkg + ":", vers=packages[pkg], channels=chans, features=features[pkg] ) if new: print("\nThe following NEW packages will be INSTALLED:\n") for pkg in sorted(new): # New packages have been moved to the "old" column for display print(format(oldfmt[pkg], pkg)) if removed: print("\nThe following packages will be REMOVED:\n") for pkg in sorted(removed): print(format(oldfmt[pkg], pkg)) if updated: print("\nThe following packages will be UPDATED:\n") for pkg in sorted(updated): print(format(oldfmt[pkg] + arrow + newfmt[pkg], pkg)) if channeled: print( "\nThe following packages will be SUPERCEDED by a higher-priority channel:\n" ) for pkg in sorted(channeled): print(format(oldfmt[pkg] + arrow + newfmt[pkg], pkg)) if downgraded: print( "\nThe following packages will be DOWNGRADED due to dependency conflicts:\n" ) for pkg in sorted(downgraded): print(format(oldfmt[pkg] + arrow + newfmt[pkg], pkg)) print()
def display_actions(actions, index, show_channel_urls=None): if show_channel_urls is None: show_channel_urls = config_show_channel_urls def channel_str(rec): if "schannel" in rec: return rec["schannel"] if "url" in rec: return url_channel(rec["url"])[1] if "channel" in rec: return canonical_channel_name(rec["channel"]) return "<unknown>" def channel_filt(s): if show_channel_urls is False: return "" if show_channel_urls is None and s == "defaults": return "" return s if actions.get(inst.FETCH): print("\nThe following packages will be downloaded:\n") disp_lst = [] for dist in actions[inst.FETCH]: info = index[dist + ".tar.bz2"] extra = "%15s" % human_bytes(info["size"]) schannel = channel_filt(channel_str(info)) if schannel: extra += " " + schannel disp_lst.append((dist, extra)) print_dists(disp_lst) if index and len(actions[inst.FETCH]) > 1: num_bytes = sum( index[dist + ".tar.bz2"]["size"] for dist in actions[inst.FETCH] ) print(" " * 4 + "-" * 60) print(" " * 43 + "Total: %14s" % human_bytes(num_bytes)) # package -> [oldver-oldbuild, newver-newbuild] packages = defaultdict(lambda: list(("", ""))) features = defaultdict(lambda: list(("", ""))) channels = defaultdict(lambda: list(("", ""))) records = defaultdict(lambda: list((None, None))) linktypes = {} for arg in actions.get(inst.LINK, []): dist, lt, shortcuts = inst.split_linkarg(arg) fkey = dist + ".tar.bz2" rec = index[fkey] pkg = rec["name"] channels[pkg][1] = channel_str(rec) packages[pkg][1] = rec["version"] + "-" + rec["build"] records[pkg][1] = Package(fkey, rec) linktypes[pkg] = lt features[pkg][1] = rec.get("features", "") for arg in actions.get(inst.UNLINK, []): dist, lt, shortcuts = inst.split_linkarg(arg) fkey = dist + ".tar.bz2" rec = index.get(fkey) if rec is None: pkg, ver, build, schannel = dist2quad(dist) rec = dict( name=pkg, version=ver, build=build, channel=None, schannel="<unknown>", build_number=int(build) if build.isdigit() else 0, ) pkg = rec["name"] channels[pkg][0] = channel_str(rec) packages[pkg][0] = rec["version"] + "-" + rec["build"] records[pkg][0] = Package(fkey, rec) features[pkg][0] = rec.get("features", "") # Put a minimum length here---. .--For the : # v v new = {p for p in packages if not packages[p][0]} removed = {p for p in packages if not packages[p][1]} # New packages are actually listed in the left-hand column, # so let's move them over there for pkg in new: for var in (packages, features, channels, records): var[pkg] = var[pkg][::-1] if packages: maxpkg = max(len(p) for p in packages) + 1 maxoldver = max(len(p[0]) for p in packages.values()) maxnewver = max(len(p[1]) for p in packages.values()) maxoldfeatures = max(len(p[0]) for p in features.values()) maxnewfeatures = max(len(p[1]) for p in features.values()) maxoldchannels = max(len(channel_filt(p[0])) for p in channels.values()) maxnewchannels = max(len(channel_filt(p[1])) for p in channels.values()) updated = set() downgraded = set() channeled = set() oldfmt = {} newfmt = {} for pkg in packages: # That's right. I'm using old-style string formatting to generate a # string with new-style string formatting. oldfmt[pkg] = "{pkg:<%s} {vers[0]:<%s}" % (maxpkg, maxoldver) if maxoldchannels: oldfmt[pkg] += " {channels[0]:<%s}" % maxoldchannels if features[pkg][0]: oldfmt[pkg] += " [{features[0]:<%s}]" % maxoldfeatures lt = linktypes.get(pkg, LINK_HARD) lt = "" if lt == LINK_HARD else (" (%s)" % link_name_map[lt]) if pkg in removed or pkg in new: oldfmt[pkg] += lt continue newfmt[pkg] = "{vers[1]:<%s}" % maxnewver if maxnewchannels: newfmt[pkg] += " {channels[1]:<%s}" % maxnewchannels if features[pkg][1]: newfmt[pkg] += " [{features[1]:<%s}]" % maxnewfeatures newfmt[pkg] += lt P0 = records[pkg][0] P1 = records[pkg][1] pri0 = P0.priority pri1 = P1.priority if pri0 is None or pri1 is None: pri0 = pri1 = 1 try: if str(P1.version) == "custom": newver = str(P0.version) != "custom" oldver = not newver else: # <= here means that unchanged packages will be put in updated newver = P0.norm_version < P1.norm_version oldver = P0.norm_version > P1.norm_version except TypeError: newver = P0.version < P1.version oldver = P0.version > P1.version oldbld = P0.build_number > P1.build_number newbld = P0.build_number < P1.build_number if channel_priority and pri1 < pri0 and (oldver or not newver and not newbld): channeled.add(pkg) elif newver: updated.add(pkg) elif pri1 < pri0 and (oldver or not newver and oldbld): channeled.add(pkg) elif oldver: downgraded.add(pkg) elif not oldbld: updated.add(pkg) else: downgraded.add(pkg) arrow = " --> " lead = " " * 4 def format(s, pkg): chans = [channel_filt(c) for c in channels[pkg]] return lead + s.format( pkg=pkg + ":", vers=packages[pkg], channels=chans, features=features[pkg] ) if new: print("\nThe following NEW packages will be INSTALLED:\n") for pkg in sorted(new): # New packages have been moved to the "old" column for display print(format(oldfmt[pkg], pkg)) if removed: print("\nThe following packages will be REMOVED:\n") for pkg in sorted(removed): print(format(oldfmt[pkg], pkg)) if updated: print("\nThe following packages will be UPDATED:\n") for pkg in sorted(updated): print(format(oldfmt[pkg] + arrow + newfmt[pkg], pkg)) if channeled: print( "\nThe following packages will be SUPERCEDED by a higher-priority channel:\n" ) for pkg in sorted(channeled): print(format(oldfmt[pkg] + arrow + newfmt[pkg], pkg)) if downgraded: print( "\nThe following packages will be DOWNGRADED due to dependency conflicts:\n" ) for pkg in sorted(downgraded): print(format(oldfmt[pkg] + arrow + newfmt[pkg], pkg)) print()
https://github.com/conda/conda/issues/2746
% conda create -p ~/anaclone --clone root Source: /Users/ijstokes/anaconda Destination: /Users/ijstokes/anaclone The following packages cannot be cloned out of the root environment: - conda-4.1.1-py27_0 - conda-build-1.20.3-py27_0 Packages: 332 Files: 16134 An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/conda/conda/issues clude the output of the command 'conda info' in your report. Traceback (most recent call last): File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 218, in install 'unknown': args.unknown}) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 87, in clone fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 353, in clone_env force_extract=False, fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 56, in explicit m = url_pat.match(spec) TypeError: expected string or buffer
TypeError
def channel_str(rec): if rec.get("schannel"): return rec["schannel"] if rec.get("url"): return url_channel(rec["url"])[1] if rec.get("channel"): return canonical_channel_name(rec["channel"]) return "<unknown>"
def channel_str(rec): if "schannel" in rec: return rec["schannel"] if "url" in rec: return url_channel(rec["url"])[1] if "channel" in rec: return canonical_channel_name(rec["channel"]) return "<unknown>"
https://github.com/conda/conda/issues/2746
% conda create -p ~/anaclone --clone root Source: /Users/ijstokes/anaconda Destination: /Users/ijstokes/anaclone The following packages cannot be cloned out of the root environment: - conda-4.1.1-py27_0 - conda-build-1.20.3-py27_0 Packages: 332 Files: 16134 An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/conda/conda/issues clude the output of the command 'conda info' in your report. Traceback (most recent call last): File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module> sys.exit(main()) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 218, in install 'unknown': args.unknown}) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 87, in clone fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 353, in clone_env force_extract=False, fetch_args=fetch_args) File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/misc.py", line 56, in explicit m = url_pat.match(spec) TypeError: expected string or buffer
TypeError
def is_url(url): if url: p = urlparse.urlparse(url) return p.netloc != "" or p.scheme == "file"
def is_url(url): return url and urlparse.urlparse(url).scheme != ""
https://github.com/conda/conda/issues/2642
________________________ IntegrationTests.test_python3 ________________________ Traceback (most recent call last): File "C:\projects\conda\tests\test_create.py", line 146, in test_python3 run_command(Commands.INSTALL, prefix, flask_tar_file) File "C:\projects\conda\tests\test_create.py", line 104, in run_command args.func(args, p) File "C:\projects\conda\conda\cli\main_install.py", line 62, in execute install(args, parser, 'install') File "C:\projects\conda\conda\cli\install.py", line 195, in install explicit(args.packages, prefix, verbose=not args.quiet) File "C:\projects\conda\conda\misc.py", line 111, in explicit index.update(fetch_index(channels, **fetch_args)) File "C:\projects\conda\conda\fetch.py", line 266, in fetch_index for url in iterkeys(channel_urls)] File "C:\projects\conda\conda\fetch.py", line 67, in func res = f(*args, **kwargs) File "C:\projects\conda\conda\fetch.py", line 149, in fetch_repodata raise RuntimeError(msg) RuntimeError: Could not find URL: file:///C|/projects/conda/ ---------------------------- Captured stdout call -----------------------------
RuntimeError
def update_prefix(path, new_prefix, placeholder=prefix_placeholder, mode="text"): if on_win: # force all prefix replacements to forward slashes to simplify need to escape backslashes # replace with unix-style path separators new_prefix = new_prefix.replace("\\", "/") path = os.path.realpath(path) with open(path, "rb") as fi: original_data = data = fi.read() data = replace_prefix(mode, data, placeholder, new_prefix) if not on_win: data = replace_long_shebang(mode, data) if data == original_data: return st = os.lstat(path) # Remove file before rewriting to avoid destroying hard-linked cache os.remove(path) with exp_backoff_fn(open, path, "wb") as fo: fo.write(data) os.chmod(path, stat.S_IMODE(st.st_mode))
def update_prefix(path, new_prefix, placeholder=prefix_placeholder, mode="text"): if on_win: # force all prefix replacements to forward slashes to simplify need to escape backslashes # replace with unix-style path separators new_prefix = new_prefix.replace("\\", "/") path = os.path.realpath(path) with open(path, "rb") as fi: original_data = data = fi.read() data = replace_prefix(mode, data, placeholder, new_prefix) if not on_win: data = replace_long_shebang(mode, data) if data == original_data: return st = os.lstat(path) # Remove file before rewriting to avoid destroying hard-linked cache os.remove(path) with open(path, "wb") as fo: fo.write(data) os.chmod(path, stat.S_IMODE(st.st_mode))
https://github.com/conda/conda/issues/2697
prepending C:\\Users\\Alessandro\\Anaconda3 and C:\\Users\\Alessandro\\Anaconda3 \\Library\\mingw-w64\\bin and C:\\Users\\Alessandro\\Anaconda3\\Library\\usr\\bi n and C:\\Users\\Alessandro\\Anaconda3\\Library\\bin and C:\\Users\\Alessandro\\ Anaconda3\\Scripts to PATH ((Anaconda3)) C:\Users\Alessandro>conda info Current conda install: platform : win-64 conda version : 4.1.0 conda-build version : 1.20.0 python version : 3.5.1.final.0 requests version : 2.9.1 root environment : C:\Users\Alessandro\Anaconda3 (writable) default environment : C:\Users\Alessandro\Anaconda3 envs directories : C:\Users\Alessandro\Anaconda3\envs package cache : C:\Users\Alessandro\Anaconda3\pkgs channel URLs : https://repo.continuum.io/pkgs/free/win-64/ https://repo.continuum.io/pkgs/free/noarch/ https://repo.continuum.io/pkgs/pro/win-64/ https://repo.continuum.io/pkgs/pro/noarch/ config file : None is foreign system : False ((Anaconda3)) C:\Users\Alessandro>conda create --name new_env_3 biopython Fetching package metadata ....... Solving package specifications ............. Package plan for installation in environment C:\Users\Alessandro\Anaconda3\envs\ new_env_3: The following NEW packages will be INSTALLED: biopython: 1.67-np111py35_0 mkl: 11.3.3-1 numpy: 1.11.0-py35_1 pip: 8.1.2-py35_0 python: 3.5.1-4 setuptools: 23.0.0-py35_0 vs2015_runtime: 14.00.23026.0-0 wheel: 0.29.0-py35_0 Proceed ([y]/n)? y Extracting packages ... An unexpected error has occurred, please consider sending the | 0% 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 "C:\Users\Alessandro\Anaconda3\Scripts\conda-script.py", line 5, in <modu le> sys.exit(main()) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main.py", line 120, in main args_func(args, p) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main.py", line 127, in args_func args.func(args, p) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main_create.py ", line 57, in execute install(args, parser, 'create') File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\install.py", l ine 407, in install execute_actions(actions, index, verbose=not args.quiet) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\plan.py", line 566 , in execute_actions inst.execute_instructions(plan, index, verbose) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\instructions.py", line 137, in execute_instructions cmd(state, arg) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\instructions.py", line 60, in EXTRACT_CMD extract(arg) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\install.py", line 821, in extract os.rename(temp_path, path) PermissionError: [WinError 5] Accesso negato: 'C:\\Users\\Alessandro\\Anaconda3\ \pkgs\\vs2015_runtime-14.00.23026.0-0.tmp' -> 'C:\\Users\\Alessandro\\Anaconda3\ \pkgs\\vs2015_runtime-14.00.23026.0-0' ((Anaconda3)) C:\Users\Alessandro>
PermissionError
def extract(dist): """ Extract a package, i.e. make a package available for linkage. We assume that the compressed package is located in the packages directory. """ rec = package_cache()[dist] url = rec["urls"][0] fname = rec["files"][0] assert url and fname pkgs_dir = dirname(fname) with Locked(pkgs_dir): path = fname[:-8] temp_path = path + ".tmp" rm_rf(temp_path) with tarfile.open(fname) as t: t.extractall(path=temp_path) rm_rf(path) exp_backoff_fn(os.rename, temp_path, path) if sys.platform.startswith("linux") and os.getuid() == 0: # When extracting as root, tarfile will by restore ownership # of extracted files. However, we want root to be the owner # (our implementation of --no-same-owner). for root, dirs, files in os.walk(path): for fn in files: p = join(root, fn) os.lchown(p, 0, 0) add_cached_package(pkgs_dir, url, overwrite=True)
def extract(dist): """ Extract a package, i.e. make a package available for linkage. We assume that the compressed package is located in the packages directory. """ rec = package_cache()[dist] url = rec["urls"][0] fname = rec["files"][0] assert url and fname pkgs_dir = dirname(fname) with Locked(pkgs_dir): path = fname[:-8] temp_path = path + ".tmp" rm_rf(temp_path) with tarfile.open(fname) as t: t.extractall(path=temp_path) rm_rf(path) os.rename(temp_path, path) if sys.platform.startswith("linux") and os.getuid() == 0: # When extracting as root, tarfile will by restore ownership # of extracted files. However, we want root to be the owner # (our implementation of --no-same-owner). for root, dirs, files in os.walk(path): for fn in files: p = join(root, fn) os.lchown(p, 0, 0) add_cached_package(pkgs_dir, url, overwrite=True)
https://github.com/conda/conda/issues/2697
prepending C:\\Users\\Alessandro\\Anaconda3 and C:\\Users\\Alessandro\\Anaconda3 \\Library\\mingw-w64\\bin and C:\\Users\\Alessandro\\Anaconda3\\Library\\usr\\bi n and C:\\Users\\Alessandro\\Anaconda3\\Library\\bin and C:\\Users\\Alessandro\\ Anaconda3\\Scripts to PATH ((Anaconda3)) C:\Users\Alessandro>conda info Current conda install: platform : win-64 conda version : 4.1.0 conda-build version : 1.20.0 python version : 3.5.1.final.0 requests version : 2.9.1 root environment : C:\Users\Alessandro\Anaconda3 (writable) default environment : C:\Users\Alessandro\Anaconda3 envs directories : C:\Users\Alessandro\Anaconda3\envs package cache : C:\Users\Alessandro\Anaconda3\pkgs channel URLs : https://repo.continuum.io/pkgs/free/win-64/ https://repo.continuum.io/pkgs/free/noarch/ https://repo.continuum.io/pkgs/pro/win-64/ https://repo.continuum.io/pkgs/pro/noarch/ config file : None is foreign system : False ((Anaconda3)) C:\Users\Alessandro>conda create --name new_env_3 biopython Fetching package metadata ....... Solving package specifications ............. Package plan for installation in environment C:\Users\Alessandro\Anaconda3\envs\ new_env_3: The following NEW packages will be INSTALLED: biopython: 1.67-np111py35_0 mkl: 11.3.3-1 numpy: 1.11.0-py35_1 pip: 8.1.2-py35_0 python: 3.5.1-4 setuptools: 23.0.0-py35_0 vs2015_runtime: 14.00.23026.0-0 wheel: 0.29.0-py35_0 Proceed ([y]/n)? y Extracting packages ... An unexpected error has occurred, please consider sending the | 0% 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 "C:\Users\Alessandro\Anaconda3\Scripts\conda-script.py", line 5, in <modu le> sys.exit(main()) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main.py", line 120, in main args_func(args, p) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main.py", line 127, in args_func args.func(args, p) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main_create.py ", line 57, in execute install(args, parser, 'create') File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\install.py", l ine 407, in install execute_actions(actions, index, verbose=not args.quiet) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\plan.py", line 566 , in execute_actions inst.execute_instructions(plan, index, verbose) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\instructions.py", line 137, in execute_instructions cmd(state, arg) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\instructions.py", line 60, in EXTRACT_CMD extract(arg) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\install.py", line 821, in extract os.rename(temp_path, path) PermissionError: [WinError 5] Accesso negato: 'C:\\Users\\Alessandro\\Anaconda3\ \pkgs\\vs2015_runtime-14.00.23026.0-0.tmp' -> 'C:\\Users\\Alessandro\\Anaconda3\ \pkgs\\vs2015_runtime-14.00.23026.0-0' ((Anaconda3)) C:\Users\Alessandro>
PermissionError
def main(): from optparse import OptionParser p = OptionParser(description="conda link tool used by installer") p.add_option( "--file", action="store", help="path of a file containing distributions to link, " "by default all packages extracted in the cache are " "linked", ) p.add_option( "--prefix", action="store", default=sys.prefix, help="prefix (defaults to %default)", ) p.add_option("-v", "--verbose", action="store_true") if sys.platform == "win32": p.add_option( "--shortcuts", action="store_true", help="Install start menu shortcuts" ) opts, args = p.parse_args() if args: p.error("no arguments expected") logging.basicConfig() prefix = opts.prefix pkgs_dir = join(prefix, "pkgs") pkgs_dirs[0] = [pkgs_dir] if opts.verbose: print("prefix: %r" % prefix) if opts.file: idists = list(yield_lines(join(prefix, opts.file))) else: idists = sorted(extracted()) linktype = ( LINK_HARD if idists and try_hard_link(pkgs_dir, prefix, idists[0]) else LINK_COPY ) if opts.verbose: print("linktype: %s" % link_name_map[linktype]) for dist in idists: if opts.verbose: print("linking: %s" % dist) link(prefix, dist, linktype, opts.shortcuts) messages(prefix) for dist in duplicates_to_remove(linked(prefix), idists): meta_path = join(prefix, "conda-meta", dist + ".json") print("WARNING: unlinking: %s" % meta_path) try: os.rename(meta_path, meta_path + ".bak") except OSError: rm_rf(meta_path)
def main(): from optparse import OptionParser p = OptionParser(description="conda link tool used by installer") p.add_option( "--file", action="store", help="path of a file containing distributions to link, " "by default all packages extracted in the cache are " "linked", ) p.add_option( "--prefix", action="store", default=sys.prefix, help="prefix (defaults to %default)", ) p.add_option("-v", "--verbose", action="store_true") if sys.platform == "win32": p.add_argument( "--shortcuts", action="store_true", help="Install start menu shortcuts" ) opts, args = p.parse_args() if args: p.error("no arguments expected") logging.basicConfig() prefix = opts.prefix pkgs_dir = join(prefix, "pkgs") pkgs_dirs[0] = [pkgs_dir] if opts.verbose: print("prefix: %r" % prefix) if opts.file: idists = list(yield_lines(join(prefix, opts.file))) else: idists = sorted(extracted()) linktype = ( LINK_HARD if idists and try_hard_link(pkgs_dir, prefix, idists[0]) else LINK_COPY ) if opts.verbose: print("linktype: %s" % link_name_map[linktype]) for dist in idists: if opts.verbose: print("linking: %s" % dist) link(prefix, dist, linktype, opts.shortcuts) messages(prefix) for dist in duplicates_to_remove(linked(prefix), idists): meta_path = join(prefix, "conda-meta", dist + ".json") print("WARNING: unlinking: %s" % meta_path) try: os.rename(meta_path, meta_path + ".bak") except OSError: rm_rf(meta_path)
https://github.com/conda/conda/issues/2697
prepending C:\\Users\\Alessandro\\Anaconda3 and C:\\Users\\Alessandro\\Anaconda3 \\Library\\mingw-w64\\bin and C:\\Users\\Alessandro\\Anaconda3\\Library\\usr\\bi n and C:\\Users\\Alessandro\\Anaconda3\\Library\\bin and C:\\Users\\Alessandro\\ Anaconda3\\Scripts to PATH ((Anaconda3)) C:\Users\Alessandro>conda info Current conda install: platform : win-64 conda version : 4.1.0 conda-build version : 1.20.0 python version : 3.5.1.final.0 requests version : 2.9.1 root environment : C:\Users\Alessandro\Anaconda3 (writable) default environment : C:\Users\Alessandro\Anaconda3 envs directories : C:\Users\Alessandro\Anaconda3\envs package cache : C:\Users\Alessandro\Anaconda3\pkgs channel URLs : https://repo.continuum.io/pkgs/free/win-64/ https://repo.continuum.io/pkgs/free/noarch/ https://repo.continuum.io/pkgs/pro/win-64/ https://repo.continuum.io/pkgs/pro/noarch/ config file : None is foreign system : False ((Anaconda3)) C:\Users\Alessandro>conda create --name new_env_3 biopython Fetching package metadata ....... Solving package specifications ............. Package plan for installation in environment C:\Users\Alessandro\Anaconda3\envs\ new_env_3: The following NEW packages will be INSTALLED: biopython: 1.67-np111py35_0 mkl: 11.3.3-1 numpy: 1.11.0-py35_1 pip: 8.1.2-py35_0 python: 3.5.1-4 setuptools: 23.0.0-py35_0 vs2015_runtime: 14.00.23026.0-0 wheel: 0.29.0-py35_0 Proceed ([y]/n)? y Extracting packages ... An unexpected error has occurred, please consider sending the | 0% 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 "C:\Users\Alessandro\Anaconda3\Scripts\conda-script.py", line 5, in <modu le> sys.exit(main()) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main.py", line 120, in main args_func(args, p) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main.py", line 127, in args_func args.func(args, p) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\main_create.py ", line 57, in execute install(args, parser, 'create') File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\cli\install.py", l ine 407, in install execute_actions(actions, index, verbose=not args.quiet) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\plan.py", line 566 , in execute_actions inst.execute_instructions(plan, index, verbose) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\instructions.py", line 137, in execute_instructions cmd(state, arg) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\instructions.py", line 60, in EXTRACT_CMD extract(arg) File "C:\Users\Alessandro\Anaconda3\lib\site-packages\conda\install.py", line 821, in extract os.rename(temp_path, path) PermissionError: [WinError 5] Accesso negato: 'C:\\Users\\Alessandro\\Anaconda3\ \pkgs\\vs2015_runtime-14.00.23026.0-0.tmp' -> 'C:\\Users\\Alessandro\\Anaconda3\ \pkgs\\vs2015_runtime-14.00.23026.0-0' ((Anaconda3)) C:\Users\Alessandro>
PermissionError
def ensure_linked_actions( dists, prefix, index=None, force=False, always_copy=False, shortcuts=False ): actions = defaultdict(list) actions[inst.PREFIX] = prefix actions["op_order"] = ( inst.RM_FETCHED, inst.FETCH, inst.RM_EXTRACTED, inst.EXTRACT, inst.UNLINK, inst.LINK, ) for dist in dists: fetched_in = is_fetched(dist) extracted_in = is_extracted(dist) if fetched_in and index is not None: # Test the MD5, and possibly re-fetch fn = dist + ".tar.bz2" try: if md5_file(fetched_in) != index[fn]["md5"]: # RM_FETCHED now removes the extracted data too actions[inst.RM_FETCHED].append(dist) # Re-fetch, re-extract, re-link fetched_in = extracted_in = None force = True except KeyError: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if not force and is_linked(prefix, dist): continue if extracted_in and force: # Always re-extract in the force case actions[inst.RM_EXTRACTED].append(dist) extracted_in = None # Otherwise we need to extract, and possibly fetch if not extracted_in and not fetched_in: # If there is a cache conflict, clean it up fetched_in, conflict = find_new_location(dist) fetched_in = join(fetched_in, dist2filename(dist)) if conflict is not None: actions[inst.RM_FETCHED].append(conflict) actions[inst.FETCH].append(dist) if not extracted_in: actions[inst.EXTRACT].append(dist) fetched_dist = extracted_in or fetched_in[:-8] fetched_dir = dirname(fetched_dist) try: # Determine what kind of linking is necessary if not extracted_in: # If not already extracted, create some dummy # data to test with rm_rf(fetched_dist) ppath = join(fetched_dist, "info") os.makedirs(ppath) index_json = join(ppath, "index.json") with open(index_json, "w"): pass if config_always_copy or always_copy: lt = LINK_COPY elif try_hard_link(fetched_dir, prefix, dist): lt = LINK_HARD elif allow_softlinks and sys.platform != "win32": lt = LINK_SOFT else: lt = LINK_COPY actions[inst.LINK].append("%s %d %s" % (dist, lt, shortcuts)) except (OSError, IOError): actions[inst.LINK].append("%s %d %s" % (dist, LINK_COPY, shortcuts)) finally: if not extracted_in: # Remove the dummy data try: rm_rf(fetched_dist) except (OSError, IOError): pass return actions
def ensure_linked_actions( dists, prefix, index=None, force=False, always_copy=False, shortcuts=False ): actions = defaultdict(list) actions[inst.PREFIX] = prefix actions["op_order"] = ( inst.RM_FETCHED, inst.FETCH, inst.RM_EXTRACTED, inst.EXTRACT, inst.UNLINK, inst.LINK, ) for dist in dists: fetched_in = is_fetched(dist) extracted_in = is_extracted(dist) if fetched_in and index is not None: # Test the MD5, and possibly re-fetch fn = dist + ".tar.bz2" try: if md5_file(fetched_in) != index[fn]["md5"]: # RM_FETCHED now removes the extracted data too actions[inst.RM_FETCHED].append(dist) # Re-fetch, re-extract, re-link fetched_in = extracted_in = None force = True except KeyError: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if not force and is_linked(prefix, dist): continue if extracted_in and force: # Always re-extract in the force case actions[inst.RM_EXTRACTED].append(dist) extracted_in = None # Otherwise we need to extract, and possibly fetch if not extracted_in and not fetched_in: # If there is a cache conflict, clean it up fetched_in, conflict = find_new_location(dist) fetched_in = join(fetched_in, dist2filename(dist)) if conflict is not None: actions[inst.RM_FETCHED].append(conflict) actions[inst.FETCH].append(dist) if not extracted_in: actions[inst.EXTRACT].append(dist) fetched_dist = extracted_in or fetched_in[:-8] fetched_dir = dirname(fetched_dist) try: # Determine what kind of linking is necessary if not extracted_in: # If not already extracted, create some dummy # data to test with rm_rf(fetched_dist) ppath = join(fetched_dist, "info") os.makedirs(ppath) index_json = join(ppath, "index.json") with open(index_json, "w"): pass if config_always_copy or always_copy: lt = LINK_COPY elif try_hard_link(fetched_dir, prefix, dist): lt = LINK_HARD elif allow_softlinks and sys.platform != "win32": lt = LINK_SOFT else: lt = LINK_COPY actions[inst.LINK].append("%s %d %s" % (dist, lt, shortcuts)) except (OSError, IOError): actions[inst.LINK].append(dist, LINK_COPY, shortcuts) finally: if not extracted_in: # Remove the dummy data try: rm_rf(fetched_dist) except (OSError, IOError): pass return actions
https://github.com/conda/conda/issues/2710
[ebrown@AWS-SYD-AL-T2MIC-SWM-P-ANACONDA01 ~]$ conda create --name testenv python Fetching package metadata ....... Solving package specifications ............. 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 "/anaconda/bin/conda", line 6, in <module> sys.exit(main()) File "/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main args_func(args, p) File "/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 57, in execute install(args, parser, 'create') File "/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 315, in install shortcuts=shortcuts) File "/anaconda/lib/python2.7/site-packages/conda/plan.py", line 461, in install_actions shortcuts=shortcuts) File "/anaconda/lib/python2.7/site-packages/conda/plan.py", line 333, in ensure_linked_actions actions[inst.LINK].append(dist, LINK_COPY, shortcuts) TypeError: append() takes exactly one argument (3 given)
TypeError
def get_packages(installed, regex): pat = re.compile(regex, re.I) if regex else None for dist in sorted(installed, key=lambda x: x.lower()): name = name_dist(dist) if pat and pat.search(name) is None: continue yield dist
def get_packages(installed, regex): pat = re.compile(regex, re.I) if regex else None for dist in sorted(installed, key=str.lower): name = name_dist(dist) if pat and pat.search(name) is None: continue yield dist
https://github.com/conda/conda/issues/2700
Traceback (most recent call last): File "C:\Python\Scripts\conda-script.py", line 5, in <module> sys.exit(main()) File "C:\Python\lib\site-packages\conda\cli\main.py", line 120, in main args_func(args, p) File "C:\Python\lib\site-packages\conda\cli\main.py", line 127, in args_func args.func(args, p) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 268, in execute show_channel_urls=args.show_channel_urls) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 178, in print_packages installed.update(get_egg_info(prefix)) File "C:\Python\lib\site-packages\conda\egg_info.py", line 82, in get_egg_info dist = parse_egg_info(path) File "C:\Python\lib\site-packages\conda\egg_info.py", line 49, in parse_egg_info for line in open(path): File "C:\Python\lib\encodings\cp1252.py", line 39, in decode raise Exception(msg) from exc Exception: input = b'#!/bin/sh\r\nif [ `basename $0` = "setuptools-20.3-py3.5.egg" ]\r\nthen exec python3.5 -c "import sys, os; sys.path.insert(0, os.path.abspath(\'$0\')); from setuptools.command.easy_install import bootstrap; sys.exit(bootstrap())" "$@"\r\nelse\r\n echo $0 is not the correct name for this egg file.\r\n echo Please rename it back to setuptools-20.3-py3.5.egg and try again.\r\n exec false\r\nfi\r\nPK\x03\x04\x14\x00\x00\x00\x08\x00|]>H\\O\xbaEi\x00\x00\x00~\x00\x00\x00\x0f\x00\x00\x00easy_install.py-\xcc1\x0e\x83@\x0cD\xd1~Oa\xb9\x814\x1c \x12e\x8a\xb4\\`d\x91EYim#\xd6\x14\xb9=\x101\xd54\xef3\xf3\xb4\x1b\xc57\xd3K\xda\xefm-\xa4V\x9a]U\xec\xc3\xcc)\x95\x85\x00\x13\xcd\x00\x8d#u\x80J1\xa0{&amp;:\xb7l\xae\xd4r\xeck\xb8\xd76\xdct\xc8g\x0e\xe5\xee\x15]}\x0b\xba\xe0\x1f]\xa7\x7f\xa4\x03PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x1d\x00\x00\x00EGG-INFO/dependency_links.txt\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH1\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a\'\xd6\xc8\x01sX\xdcm\xd0\x92Si\x1bR\x12Y\x17P\xe2\x99\x15\x12\xbc\x95\xc8\xab\x0f(+\xf9\x17\xb2\xe2\xd9\x130*\xaa\xd9llq\xf1\xb0\xf64\xaa\xa2P\x1b\x1a\xcb\x17E?\x1c\x7f|\x17\xf57@\xf7\xb7\x12\xc4\xd1Z\xac\x9f\x06\xacx?\x0c\t\x91t\t\xe1K1Or"\x89\x13\xa0kM1\xa4%\xb3( M\xad\xf1H\xdf\xb2z\x1c\x11#\xcc\x93;\x8e\x1f\xbb\x0b\xb0\x0f\xd78 \x0e\xad\x8fi\x83\xca\xa0\xeb\xc6t\xe5b\xf8,\xfb_[-\xd2\xf4\x00\xf4\xdd\xa9\xe8\xb3n\xfc\xb8\xec\xb5\x0c[\xa9N\xb4\\L\x81\xfa\x0fPK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH0\\\x01\x91(\x00\x00\x00&amp;\x00\x00\x00\x16\x00\x00\x00EGG-INFO/top_level.txtKM,\xae\x8c\xcf\xcc+.I\xcc\xc9\xe1*\xc8N\x8f/J-\xce/-JN-\xe6*N-)-(\xc9\xcf\xcf)\xe6\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xa1B[H\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x11\x00\x00\x00EGG-INFO/zip-safe\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xf3\x80oH\x15\xd1Q\xc0\x8cj\x00\x00W\x88\x01\x00\x19\x00\x00\x00pkg_resources/__init__.py\xcd\xbdmw\x1b\xc7\x91(\xfc\x9d\xbfbB\xad/\x00\t\x1cIv\xb2\xc9*K\'\x8a\xa4$\xba\xb1%^I\xb6\x93\xa5y\x81!0$\'\x040\xf0\x0c@\n\xce\xe6\xf9\xedO\xbdvW\xf7\xf4\x80\x94\x93\xdc\xb38>\x16\x81\xe9\xa9\xae\xee\xae\xae\xae\xf7><<<8)f\xd7\xc5e\x995e[o\x9b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xca\x1d\x8c\x91\x85\xbb\xd8\x08T\x90\xdap\xb4\x068\x90V\xd5V+81W\xb3rHO\xc7\x19\xf4\xb0(M#\x83\x05=b\x0c\x81\xf2\xa8\xbdkV\x02\x0fL\xbetO\xd4\tMF0\xc0\xbe\xfc\xd7`\x7f\xfc\xcfF\xbfL\xa2_\xfe\xf0/A\xff\xf8\x9f\x8d>\xe1\xd9E\xff\xf2_3\xfb_\xfe\xb3\xd1\xbfL\xcf\xfe\xe5\xbf\x86\xf4\xbf\xfcgc\x9f&amp;\xfd\xd5\xbff\xf2\x7f\xf6\xcf\x9e\xfcU\xcf\xe4\x97\x1b\x10\xa6\x96n\x0c\xd7\xe5\xae\xcb\xd7\x0cb\xa7\xd0\xe0\xcc\x02\x80\xb7\x9b.CD\xf6\x0b\\\x7f\xb5\x99\xd0\xa1\x00\xa7' type(input) = <class 'bytes'> errors = strict type(errors) = <class 'str'> decoding_table = ☺☻♥♦ ♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&amp;'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂\u20ac\ufffe\u201aƒ\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\ufffe\u017d\ufffe\ufffe\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\ufffe\u017e\u0178 ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ type(decoding_table) = <class 'str'>
Exception
def list_packages( prefix, installed, regex=None, format="human", show_channel_urls=show_channel_urls ): res = 1 result = [] for dist in get_packages(installed, regex): res = 0 if format == "canonical": result.append(dist) continue if format == "export": result.append("=".join(dist2quad(dist)[:3])) continue try: # Returns None if no meta-file found (e.g. pip install) info = is_linked(prefix, dist) features = set(info.get("features", "").split()) disp = "%(name)-25s %(version)-15s %(build)15s" % info disp += " %s" % disp_features(features) schannel = info.get("schannel") if ( show_channel_urls or show_channel_urls is None and schannel != "defaults" ): disp += " %s" % schannel result.append(disp) except (AttributeError, IOError, KeyError, ValueError) as e: log.debug(str(e)) result.append("%-25s %-15s %15s" % dist2quad(dist)[:3]) return res, result
def list_packages( prefix, installed, regex=None, format="human", show_channel_urls=show_channel_urls ): res = 1 result = [] for dist in get_packages(installed, regex): res = 0 if format == "canonical": result.append(dist) continue if format == "export": result.append("=".join(dist2quad(dist)[:3])) continue try: # Returns None if no meta-file found (e.g. pip install) info = is_linked(prefix, dist) features = set(info.get("features", "").split()) disp = "%(name)-25s %(version)-15s %(build)15s" % info disp += " %s" % disp_features(features) schannel = info.get("schannel") if ( show_channel_urls or show_channel_urls is None and schannel != "defaults" ): disp += " %s" % schannel result.append(disp) except (AttributeError, IOError, KeyError, ValueError) as e: log.debug(str(e)) result.append("%-25s %-15s %s" % dist2quad(dist)[:3]) return res, result
https://github.com/conda/conda/issues/2700
Traceback (most recent call last): File "C:\Python\Scripts\conda-script.py", line 5, in <module> sys.exit(main()) File "C:\Python\lib\site-packages\conda\cli\main.py", line 120, in main args_func(args, p) File "C:\Python\lib\site-packages\conda\cli\main.py", line 127, in args_func args.func(args, p) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 268, in execute show_channel_urls=args.show_channel_urls) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 178, in print_packages installed.update(get_egg_info(prefix)) File "C:\Python\lib\site-packages\conda\egg_info.py", line 82, in get_egg_info dist = parse_egg_info(path) File "C:\Python\lib\site-packages\conda\egg_info.py", line 49, in parse_egg_info for line in open(path): File "C:\Python\lib\encodings\cp1252.py", line 39, in decode raise Exception(msg) from exc Exception: input = b'#!/bin/sh\r\nif [ `basename $0` = "setuptools-20.3-py3.5.egg" ]\r\nthen exec python3.5 -c "import sys, os; sys.path.insert(0, os.path.abspath(\'$0\')); from setuptools.command.easy_install import bootstrap; sys.exit(bootstrap())" "$@"\r\nelse\r\n echo $0 is not the correct name for this egg file.\r\n echo Please rename it back to setuptools-20.3-py3.5.egg and try again.\r\n exec false\r\nfi\r\nPK\x03\x04\x14\x00\x00\x00\x08\x00|]>H\\O\xbaEi\x00\x00\x00~\x00\x00\x00\x0f\x00\x00\x00easy_install.py-\xcc1\x0e\x83@\x0cD\xd1~Oa\xb9\x814\x1c \x12e\x8a\xb4\\`d\x91EYim#\xd6\x14\xb9=\x101\xd54\xef3\xf3\xb4\x1b\xc57\xd3K\xda\xefm-\xa4V\x9a]U\xec\xc3\xcc)\x95\x85\x00\x13\xcd\x00\x8d#u\x80J1\xa0{&amp;:\xb7l\xae\xd4r\xeck\xb8\xd76\xdct\xc8g\x0e\xe5\xee\x15]}\x0b\xba\xe0\x1f]\xa7\x7f\xa4\x03PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x1d\x00\x00\x00EGG-INFO/dependency_links.txt\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH1\x8f\x97\x14\x84\x02\x00\x00\x13\x0b\x00\x00\x19\x00\x00\x00EGG-INFO/entry_points.txt\x95V\xcd\x8e\xdb \x10\xbe\xf3\x14\xfb\x02\x9bCW\xbd \xf5\xda\xaa\xaa\xd4\xf6\x1e\xad\x10\xb6\')\x8a\r\x14p\x12\xf7\xe9;`\xf0\x12\xcb8\xf6\xc5\x0c\x9e\xef\x9b\x1f33\xe6X+iU\x0b\xcc\xd6Fhg\xdf\tp;0!\xad\xe3m\xfb\xf2\xe5\xc5\x82\xeb\xb5S\xaa\xb5\x87Zu\x1d\x97\xcd!G\xd0\x8e\x0b\xf9\xc0y};|\xde\xca#\xc7FX\xd7;\xf1\x81\xc2\x08x+\xb8]6\x11T4<I\xe5\xb9\x0c\xce\xe7e\xe8\xa4\xa6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xa9N\xb4\\L\x81\xfa\x0fPK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH0\\\x01\x91(\x00\x00\x00&amp;\x00\x00\x00\x16\x00\x00\x00EGG-INFO/top_level.txtKM,\xae\x8c\xcf\xcc+.I\xcc\xc9\xe1*\xc8N\x8f/J-\xce/-JN-\xe6*N-)-(\xc9\xcf\xcf)\xe6\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xa1B[H\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x11\x00\x00\x00EGG-INFO/zip-safe\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xf3\x80oH\x15\xd1Q\xc0\x8cj\x00\x00W\x88\x01\x00\x19\x00\x00\x00pkg_resources/__init__.py\xcd\xbdmw\x1b\xc7\x91(\xfc\x9d\xbfbB\xad/\x00\t\x1cIv\xb2\xc9*K\'\x8a\xa4$\xba\xb1%^I\xb6\x93\xa5y\x81!0$\'\x040\xf0\x0c@\n\xce\xe6\xf9\xedO\xbdvW\xf7\xf4\x80\x94\x93\xdc\xb38>\x16\x81\xe9\xa9\xae\xee\xae\xae\xae\xf7><<<8)f\xd7\xc5e\x995e[o\x9bY\x99=?y}p\x94\xf8\x1c\x1c<\xf7\x8d\xaa6+\xb2E}Y\xcd\x8aEvQ-\xcalV\xaf6E\xb5*\xe7\xd9m\xb5\xb9\xaaV\xf0|\xcd\xa0\xc7Y\xdd\xf8\xd6\x07\xed\xf6|^5\xe5lS7\xbblsU6e}\x91g\xd9\x87\xabR_\x08p\xc9\xca\x8fkh\xdc\xfa\x1fW\xc5\xb2l\x0f6uvU\xdc\x94\x08\xa1j\xe0\xcd\xcd\x15\xfc\xaf\x81vm\t\xff\x16\x1bA$\x9bN\x1fO\xa7\xe3\xec\xe1\xaa\xde<\xccn\xaf\xe0\xc1M\xd9\xe0[\x80\x10\xa2Co\xca;\x80g\xd5\x02./\xeb\x0c\x9ag\xdb\xb6\xcc\xea6\xa7\x16\xf5\xba\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\\\x7f\xb5\x99\xd0\xa1\x00\xa7' type(input) = <class 'bytes'> errors = strict type(errors) = <class 'str'> decoding_table = ☺☻♥♦ ♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&amp;'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂\u20ac\ufffe\u201aƒ\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\ufffe\u017d\ufffe\ufffe\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\ufffe\u017e\u0178 ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ type(decoding_table) = <class 'str'>
Exception
def parse_egg_info(path): """ Parse an .egg-info file and return its canonical distribution name """ info = {} for line in open(path, encoding="utf-8"): line = line.strip() m = pat.match(line) if m: key = m.group(1).lower() info[key] = m.group(2) try: return "%(name)s-%(version)s-<egg_info>" % info except KeyError: pass return None
def parse_egg_info(path): """ Parse an .egg-info file and return its canonical distribution name """ info = {} for line in open(path): line = line.strip() m = pat.match(line) if m: key = m.group(1).lower() info[key] = m.group(2) try: return "%(name)s-%(version)s-<egg_info>" % info except KeyError: pass return None
https://github.com/conda/conda/issues/2700
Traceback (most recent call last): File "C:\Python\Scripts\conda-script.py", line 5, in <module> sys.exit(main()) File "C:\Python\lib\site-packages\conda\cli\main.py", line 120, in main args_func(args, p) File "C:\Python\lib\site-packages\conda\cli\main.py", line 127, in args_func args.func(args, p) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 268, in execute show_channel_urls=args.show_channel_urls) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 178, in print_packages installed.update(get_egg_info(prefix)) File "C:\Python\lib\site-packages\conda\egg_info.py", line 82, in get_egg_info dist = parse_egg_info(path) File "C:\Python\lib\site-packages\conda\egg_info.py", line 49, in parse_egg_info for line in open(path): File "C:\Python\lib\encodings\cp1252.py", line 39, in decode raise Exception(msg) from exc Exception: input = b'#!/bin/sh\r\nif [ `basename $0` = "setuptools-20.3-py3.5.egg" ]\r\nthen exec python3.5 -c "import sys, os; sys.path.insert(0, os.path.abspath(\'$0\')); from setuptools.command.easy_install import bootstrap; sys.exit(bootstrap())" "$@"\r\nelse\r\n echo $0 is not the correct name for this egg file.\r\n echo Please rename it back to setuptools-20.3-py3.5.egg and try again.\r\n exec false\r\nfi\r\nPK\x03\x04\x14\x00\x00\x00\x08\x00|]>H\\O\xbaEi\x00\x00\x00~\x00\x00\x00\x0f\x00\x00\x00easy_install.py-\xcc1\x0e\x83@\x0cD\xd1~Oa\xb9\x814\x1c \x12e\x8a\xb4\\`d\x91EYim#\xd6\x14\xb9=\x101\xd54\xef3\xf3\xb4\x1b\xc57\xd3K\xda\xefm-\xa4V\x9a]U\xec\xc3\xcc)\x95\x85\x00\x13\xcd\x00\x8d#u\x80J1\xa0{&amp;:\xb7l\xae\xd4r\xeck\xb8\xd76\xdct\xc8g\x0e\xe5\xee\x15]}\x0b\xba\xe0\x1f]\xa7\x7f\xa4\x03PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x1d\x00\x00\x00EGG-INFO/dependency_links.txt\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH1\x8f\x97\x14\x84\x02\x00\x00\x13\x0b\x00\x00\x19\x00\x00\x00EGG-INFO/entry_points.txt\x95V\xcd\x8e\xdb \x10\xbe\xf3\x14\xfb\x02\x9bCW\xbd \xf5\xda\xaa\xaa\xd4\xf6\x1e\xad\x10\xb6\')\x8a\r\x14p\x12\xf7\xe9;`\xf0\x12\xcb8\xf6\xc5\x0c\x9e\xef\x9b\x1f33\xe6X+iU\x0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"\x89\x13\xa0kM1\xa4%\xb3( M\xad\xf1H\xdf\xb2z\x1c\x11#\xcc\x93;\x8e\x1f\xbb\x0b\xb0\x0f\xd78 \x0e\xad\x8fi\x83\xca\xa0\xeb\xc6t\xe5b\xf8,\xfb_[-\xd2\xf4\x00\xf4\xdd\xa9\xe8\xb3n\xfc\xb8\xec\xb5\x0c[\xa9N\xb4\\L\x81\xfa\x0fPK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH0\\\x01\x91(\x00\x00\x00&amp;\x00\x00\x00\x16\x00\x00\x00EGG-INFO/top_level.txtKM,\xae\x8c\xcf\xcc+.I\xcc\xc9\xe1*\xc8N\x8f/J-\xce/-JN-\xe6*N-)-(\xc9\xcf\xcf)\xe6\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xa1B[H\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x11\x00\x00\x00EGG-INFO/zip-safe\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xf3\x80oH\x15\xd1Q\xc0\x8cj\x00\x00W\x88\x01\x00\x19\x00\x00\x00pkg_resources/__init__.py\xcd\xbdmw\x1b\xc7\x91(\xfc\x9d\xbfbB\xad/\x00\t\x1cIv\xb2\xc9*K\'\x8a\xa4$\xba\xb1%^I\xb6\x93\xa5y\x81!0$\'\x040\xf0\x0c@\n\xce\xe6\xf9\xedO\xbdvW\xf7\xf4\x80\x94\x93\xdc\xb38>\x16\x81\xe9\xa9\xae\xee\xae\xae\xae\xf7><<<8)f\xd7\xc5e\x995e[o\x9bY\x99=?y}p\x94\xf8\x1c\x1c<\xf7\x8d\xaa6+\xb2E}Y\xcd\x8aEvQ-\xcalV\xaf6E\xb5*\xe7\xd9m\xb5\xb9\xaaV\xf0|\xcd\xa0\xc7Y\xdd\xf8\xd6\x07\xed\xf6|^5\xe5lS7\xbblsU6e}\x91g\xd9\x87\xabR_\x08p\xc9\xca\x8fkh\xdc\xfa\x1fW\xc5\xb2l\x0f6uvU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fe\xb3\xd1\xbfL\xcf\xfe\xe5\xbf\x86\xf4\xbf\xfcgc\x9f&amp;\xfd\xd5\xbff\xf2\x7f\xf6\xcf\x9e\xfcU\xcf\xe4\x97\x1b\x10\xa6\x96n\x0c\xd7\xe5\xae\xcb\xd7\x0cb\xa7\xd0\xe0\xcc\x02\x80\xb7\x9b.CD\xf6\x0b\\\x7f\xb5\x99\xd0\xa1\x00\xa7' type(input) = <class 'bytes'> errors = strict type(errors) = <class 'str'> decoding_table = ☺☻♥♦ ♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&amp;'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂\u20ac\ufffe\u201aƒ\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\ufffe\u017d\ufffe\ufffe\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\ufffe\u017e\u0178 ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ type(decoding_table) = <class 'str'>
Exception
def get_egg_info(prefix, all_pkgs=False): """ Return a set of canonical names of all Python packages (in `prefix`), by inspecting the .egg-info files inside site-packages. By default, only untracked (not conda installed) .egg-info files are considered. Setting `all_pkgs` to True changes this. """ installed_pkgs = linked_data(prefix) sp_dir = get_site_packages_dir(installed_pkgs) if sp_dir is None: return set() conda_files = set() for info in itervalues(installed_pkgs): conda_files.update(info.get("files", [])) res = set() for path in get_egg_info_files(join(prefix, sp_dir)): f = rel_path(prefix, path) if all_pkgs or f not in conda_files: try: dist = parse_egg_info(path) except UnicodeDecodeError: dist = None if dist: res.add(dist) return res
def get_egg_info(prefix, all_pkgs=False): """ Return a set of canonical names of all Python packages (in `prefix`), by inspecting the .egg-info files inside site-packages. By default, only untracked (not conda installed) .egg-info files are considered. Setting `all_pkgs` to True changes this. """ installed_pkgs = linked_data(prefix) sp_dir = get_site_packages_dir(installed_pkgs) if sp_dir is None: return set() conda_files = set() for info in itervalues(installed_pkgs): conda_files.update(info.get("files", [])) res = set() for path in get_egg_info_files(join(prefix, sp_dir)): f = rel_path(prefix, path) if all_pkgs or f not in conda_files: dist = parse_egg_info(path) if dist: res.add(dist) return res
https://github.com/conda/conda/issues/2700
Traceback (most recent call last): File "C:\Python\Scripts\conda-script.py", line 5, in <module> sys.exit(main()) File "C:\Python\lib\site-packages\conda\cli\main.py", line 120, in main args_func(args, p) File "C:\Python\lib\site-packages\conda\cli\main.py", line 127, in args_func args.func(args, p) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 268, in execute show_channel_urls=args.show_channel_urls) File "C:\Python\lib\site-packages\conda\cli\main_list.py", line 178, in print_packages installed.update(get_egg_info(prefix)) File "C:\Python\lib\site-packages\conda\egg_info.py", line 82, in get_egg_info dist = parse_egg_info(path) File "C:\Python\lib\site-packages\conda\egg_info.py", line 49, in parse_egg_info for line in open(path): File "C:\Python\lib\encodings\cp1252.py", line 39, in decode raise Exception(msg) from exc Exception: input = b'#!/bin/sh\r\nif [ `basename $0` = "setuptools-20.3-py3.5.egg" ]\r\nthen exec python3.5 -c "import sys, os; sys.path.insert(0, os.path.abspath(\'$0\')); from setuptools.command.easy_install import bootstrap; sys.exit(bootstrap())" "$@"\r\nelse\r\n echo $0 is not the correct name for this egg file.\r\n echo Please rename it back to setuptools-20.3-py3.5.egg and try again.\r\n exec false\r\nfi\r\nPK\x03\x04\x14\x00\x00\x00\x08\x00|]>H\\O\xbaEi\x00\x00\x00~\x00\x00\x00\x0f\x00\x00\x00easy_install.py-\xcc1\x0e\x83@\x0cD\xd1~Oa\xb9\x814\x1c \x12e\x8a\xb4\\`d\x91EYim#\xd6\x14\xb9=\x101\xd54\xef3\xf3\xb4\x1b\xc57\xd3K\xda\xefm-\xa4V\x9a]U\xec\xc3\xcc)\x95\x85\x00\x13\xcd\x00\x8d#u\x80J1\xa0{&amp;:\xb7l\xae\xd4r\xeck\xb8\xd76\xdct\xc8g\x0e\xe5\xee\x15]}\x0b\xba\xe0\x1f]\xa7\x7f\xa4\x03PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x1d\x00\x00\x00EGG-INFO/dependency_links.txt\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH1\x8f\x97\x14\x84\x02\x00\x00\x13\x0b\x00\x00\x19\x00\x00\x00EGG-INFO/entry_points.txt\x95V\xcd\x8e\xdb \x10\xbe\xf3\x14\xfb\x02\x9bCW\xbd \xf5\xda\xaa\xaa\xd4\xf6\x1e\xad\x10\xb6\')\x8a\r\x14p\x12\xf7\xe9;`\xf0\x12\xcb8\xf6\xc5\x0c\x9e\xef\x9b\x1f33\xe6X+iU\x0b\xcc\xd6Fhg\xdf\tp;0!\xad\xe3m\xfb\xf2\xe5\xc5\x82\xeb\xb5S\xaa\xb5\x87Zu\x1d\x97\xcd!G\xd0\x8e\x0b\xf9\xc0y};|\xde\xca#\xc7FX\xd7;\xf1\x81\xc2\x08x+\xb8]6\x11T4<I\xe5\xb9\x0c\xce\xe7e\xe8\xa4\xa6\x93\x14)Fwk\x14T\xd3I\x8a\x94\x9b\x90>\xf05Z\x84\xd0\x87\x1d\xa9z\xd16\x0c\xee%jR\xd3I\x8a\x14=\xac1\xf4@\x93@\x1a\xb8B\xab\xf42<*i\\\xf7\x9en\xbe!\xf8\x05Q>\xa9\x02/ji\x12\xc8\xaa\x9b\xe4!\x19\x8f+[w2G\xd1\xf9\x8b\xc9N+\xaau\x13\x08\xa0\x99<\x11c#\xac\x93#\x88\xce\xf6\xc4\xc0\x19O\x1f\xcc2;ii\x12\x88Q\x8e;(\xa0\x83\x8e\x8e\x0b\xb1\xfc\n\xaa\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Boa\xfb\x06cH\x96\xd4}L\xd3\xe1;Za\xe5\xe7\xc1S#bD\x035E\x9e\xc6\xc8\xb8\x1e\xa3hv\x81\x04hi\xeaTi\x1fl\xa4n\x9e1\xa0\xa7\x9a\x02\xa7\xa18\x02\xb5Z\xd0\x98\xb7\n2?\x81E\xca\xf5\xac)\x06\xe8\xb2#.@\x9a\x00\x1d)\x99\xeb\x1d@\x90\x074JN\x03\xf8\x02\xf7\xf3u|g\x85\xa7\xf3\x8c\xb2\x00\x93\xc5x\x80\x87\x07\x90\x1d\xd1\xed\xb2\xad\x9a\'\xd6\xc8\x01sX\xdcm\xd0\x92Si\x1bR\x12Y\x17P\xe2\x99\x15\x12\xbc\x95\xc8\xab\x0f(+\xf9\x17\xb2\xe2\xd9\x130*\xaa\xd9llq\xf1\xb0\xf64\xaa\xa2P\x1b\x1a\xcb\x17E?\x1c\x7f|\x17\xf57@\xf7\xb7\x12\xc4\xd1Z\xac\x9f\x06\xacx?\x0c\t\x91t\t\xe1K1Or"\x89\x13\xa0kM1\xa4%\xb3( M\xad\xf1H\xdf\xb2z\x1c\x11#\xcc\x93;\x8e\x1f\xbb\x0b\xb0\x0f\xd78 \x0e\xad\x8fi\x83\xca\xa0\xeb\xc6t\xe5b\xf8,\xfb_[-\xd2\xf4\x00\xf4\xdd\xa9\xe8\xb3n\xfc\xb8\xec\xb5\x0c[\xa9N\xb4\\L\x81\xfa\x0fPK\x03\x04\x14\x00\x00\x00\x08\x00P\x96qH0\\\x01\x91(\x00\x00\x00&amp;\x00\x00\x00\x16\x00\x00\x00EGG-INFO/top_level.txtKM,\xae\x8c\xcf\xcc+.I\xcc\xc9\xe1*\xc8N\x8f/J-\xce/-JN-\xe6*N-)-(\xc9\xcf\xcf)\xe6\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xa1B[H\x93\x06\xd72\x03\x00\x00\x00\x01\x00\x00\x00\x11\x00\x00\x00EGG-INFO/zip-safe\xe3\x02\x00PK\x03\x04\x14\x00\x00\x00\x08\x00\xf3\x80oH\x15\xd1Q\xc0\x8cj\x00\x00W\x88\x01\x00\x19\x00\x00\x00pkg_resources/__init__.py\xcd\xbdmw\x1b\xc7\x91(\xfc\x9d\xbfbB\xad/\x00\t\x1cIv\xb2\xc9*K\'\x8a\xa4$\xba\xb1%^I\xb6\x93\xa5y\x81!0$\'\x040\xf0\x0c@\n\xce\xe6\xf9\xedO\xbdvW\xf7\xf4\x80\x94\x93\xdc\xb38>\x16\x81\xe9\xa9\xae\xee\xae\xae\xae\xf7><<<8)f\xd7\xc5e\x995e[o\x9bY\x99=?y}p\x94\xf8\x1c\x1c<\xf7\x8d\xaa6+\xb2E}Y\xcd\x8aEvQ-\xcalV\xaf6E\xb5*\xe7\xd9m\xb5\xb9\xaaV\xf0|\xcd\xa0\xc7Y\xdd\xf8\xd6\x07\xed\xf6|^5\xe5lS7\xbblsU6e}\x91g\xd9\x87\xabR_\x08p\xc9\xca\x8fkh\xdc\xfa\x1fW\xc5\xb2l\x0f6uvU\xdc\x94\x08\xa1j\xe0\xcd\xcd\x15\xfc\xaf\x81vm\t\xff\x16\x1bA$\x9bN\x1fO\xa7\xe3\xec\xe1\xaa\xde<\xccn\xaf\xe0\xc1M\xd9\xe0[\x80\x10\xa2Co\xca;\x80g\xd5\x02./\xeb\x0c\x9ag\xdb\xb6\xcc\xea6\xa7\x16\xf5\xba\x84\x06U\xbdj3\xe8yY\xac\xaa\xf5v\x01\xc0\x1cZ\x07\x84Vv^V\xabK\xc0\xa4m\x01\x81j\x05m\xb1+\x18G~p\xd0;D\x98\xcdy\xd9V\x978{\xf0\xc6m\xdd\\3\xf2\xab\xbaY\xca\x04\xb7\xbbvS.\xf5\xfdv|\x90\x97\x97\x97\xfcd\x9c\x15\xaby\xb6]\xe13\x80\xe0\x1f\xc0P^o\xb2Y\x01\x8b\xb1h\x05.\xad\xcc\xa2ZV4C\xc5\x8e::\xc8\x7f\xac\xd6\xfc\x0e\xc1\xa2\xceg\xdbvS/\xb3\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ed\n\xd9\x86|\x95\t\xc2\x13\x0c\xff\xfd\x06\xcf\xf2\xdb+\x18=\x89+$\xfc\x00a\xb5\xed\xb6\xe4\x93\xb2\xd0i@I\xc7\xad?\xc9\x10\xc8L\x17;\x94\t\xe8\x9cEpx\xa0B\xd7\xb9\xebCQ\x9a\xbc/7\xdb5\x9d@\xdf2\xbc\xaf+\xe0p\xc3\xfa\xfc\xafpv\x00R\xf4\x06L\x05\x9c\xa8\xb0 W@\x1am\xb9\xb8\x10l\xf1\xd3\x00\x00\xa0y`Ie3\xec\x01\x07\x0c\x04_\xca\x1d\x8c\x91\x85\xbb\xd8\x08T\x90\xdap\xb4\x068\x90V\xd5V+81W\xb3rHO\xc7\x19\xf4\xb0(M#\x83\x05=b\x0c\x81\xf2\xa8\xbdkV\x02\x0fL\xbetO\xd4\tMF0\xc0\xbe\xfc\xd7`\x7f\xfc\xcfF\xbfL\xa2_\xfe\xf0/A\xff\xf8\x9f\x8d>\xe1\xd9E\xff\xf2_3\xfb_\xfe\xb3\xd1\xbfL\xcf\xfe\xe5\xbf\x86\xf4\xbf\xfcgc\x9f&amp;\xfd\xd5\xbff\xf2\x7f\xf6\xcf\x9e\xfcU\xcf\xe4\x97\x1b\x10\xa6\x96n\x0c\xd7\xe5\xae\xcb\xd7\x0cb\xa7\xd0\xe0\xcc\x02\x80\xb7\x9b.CD\xf6\x0b\\\x7f\xb5\x99\xd0\xa1\x00\xa7' type(input) = <class 'bytes'> errors = strict type(errors) = <class 'str'> decoding_table = ☺☻♥♦ ♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&amp;'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂\u20ac\ufffe\u201aƒ\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\ufffe\u017d\ufffe\ufffe\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\ufffe\u017e\u0178 ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ type(decoding_table) = <class 'str'>
Exception
def main(): from conda.config import root_env_name, root_dir, changeps1 import conda.install if "-h" in sys.argv or "--help" in sys.argv: # all execution paths sys.exit at end. help(sys.argv[1], sys.argv[2]) shell = sys.argv[2] shelldict = shells[shell] if sys.argv[1] == "..activate": path = get_path(shelldict) if len(sys.argv) == 3 or sys.argv[3].lower() == root_env_name.lower(): binpath = binpath_from_arg(root_env_name, shelldict=shelldict) rootpath = None elif len(sys.argv) == 4: binpath = binpath_from_arg(sys.argv[3], shelldict=shelldict) rootpath = binpath_from_arg(root_env_name, shelldict=shelldict) else: sys.exit("Error: did not expect more than one argument") pathlist_str = pathlist_to_str(binpath) sys.stderr.write("prepending %s to PATH\n" % shelldict["path_to"](pathlist_str)) # Clear the root path if it is present if rootpath: path = path.replace(shelldict["pathsep"].join(rootpath), "") path = path.lstrip() # prepend our new entries onto the existing path and make sure that the separator is native path = shelldict["pathsep"].join( binpath + [ path, ] ) # Clean up any doubled-up path separators path = path.replace(shelldict["pathsep"] * 2, shelldict["pathsep"]) # deactivation is handled completely in shell scripts - it restores backups of env variables. # It is done in shell scripts because they handle state much better than we can here. elif sys.argv[1] == "..checkenv": if len(sys.argv) < 4: sys.argv.append(root_env_name) if len(sys.argv) > 4: sys.exit("Error: did not expect more than one argument.") if sys.argv[3].lower() == root_env_name.lower(): # no need to check root env and try to install a symlink there sys.exit(0) # this should throw an error and exit if the env or path can't be found. try: prefix = prefix_from_arg(sys.argv[3], shelldict=shelldict) except ValueError as e: sys.exit(getattr(e, "message", e)) # Make sure an env always has the conda symlink try: conda.install.symlink_conda(prefix, root_dir, shell) except (IOError, OSError) as e: if e.errno == errno.EPERM or e.errno == errno.EACCES: msg = "Cannot activate environment {0}, not have write access to conda symlink".format( sys.argv[2] ) sys.exit(msg) raise sys.exit(0) elif sys.argv[1] == "..setps1": # path is a bit of a misnomer here. It is the prompt setting. However, it is returned # below by printing. That is why it is named "path" # DO NOT use os.getenv for this. One Windows especially, it shows cmd.exe settings # for bash shells. This method uses the shell directly. path = os.getenv(shelldict["promptvar"], "") # failsafes if not path: if shelldict["exe"] == "cmd.exe": path = "$P$G" # strip off previous prefix, if any: path = re.sub(".*\(\(.*\)\)\ ", "", path, count=1) env_path = sys.argv[3] if changeps1 and env_path: path = "(({0})) {1}".format(os.path.split(env_path)[-1], path) else: # This means there is a bug in main.py raise ValueError("unexpected command") # This print is actually what sets the PATH or PROMPT variable. The shell # script gets this value, and finishes the job. print(path)
def main(): from conda.config import root_env_name, root_dir, changeps1 import conda.install if "-h" in sys.argv or "--help" in sys.argv: # all execution paths sys.exit at end. help(sys.argv[1], sys.argv[2]) shell = sys.argv[2] shelldict = shells[shell] if sys.argv[1] == "..activate": path = get_path(shelldict) if len(sys.argv) == 3 or sys.argv[3].lower() == root_env_name.lower(): binpath = binpath_from_arg(root_env_name, shelldict=shelldict) rootpath = None elif len(sys.argv) == 4: binpath = binpath_from_arg(sys.argv[3], shelldict=shelldict) rootpath = binpath_from_arg(root_env_name, shelldict=shelldict) else: sys.exit("Error: did not expect more than one argument") pathlist_str = pathlist_to_str(binpath) sys.stderr.write("prepending %s to PATH\n" % shelldict["path_to"](pathlist_str)) # Clear the root path if it is present if rootpath: path = path.replace(shelldict["pathsep"].join(rootpath), "") # prepend our new entries onto the existing path and make sure that the separator is native path = shelldict["pathsep"].join( binpath + [ path, ] ) # deactivation is handled completely in shell scripts - it restores backups of env variables. # It is done in shell scripts because they handle state much better than we can here. elif sys.argv[1] == "..checkenv": if len(sys.argv) < 4: sys.argv.append(root_env_name) if len(sys.argv) > 4: sys.exit("Error: did not expect more than one argument.") if sys.argv[3].lower() == root_env_name.lower(): # no need to check root env and try to install a symlink there sys.exit(0) # this should throw an error and exit if the env or path can't be found. try: prefix = prefix_from_arg(sys.argv[3], shelldict=shelldict) except ValueError as e: sys.exit(getattr(e, "message", e)) # Make sure an env always has the conda symlink try: conda.install.symlink_conda(prefix, root_dir, shell) except (IOError, OSError) as e: if e.errno == errno.EPERM or e.errno == errno.EACCES: msg = "Cannot activate environment {0}, not have write access to conda symlink".format( sys.argv[2] ) sys.exit(msg) raise sys.exit(0) elif sys.argv[1] == "..setps1": # path is a bit of a misnomer here. It is the prompt setting. However, it is returned # below by printing. That is why it is named "path" # DO NOT use os.getenv for this. One Windows especially, it shows cmd.exe settings # for bash shells. This method uses the shell directly. path = os.getenv(shelldict["promptvar"], "") # failsafes if not path: if shelldict["exe"] == "cmd.exe": path = "$P$G" # strip off previous prefix, if any: path = re.sub(".*\(\(.*\)\)\ ", "", path, count=1) env_path = sys.argv[3] if changeps1 and env_path: path = "(({0})) {1}".format(os.path.split(env_path)[-1], path) else: # This means there is a bug in main.py raise ValueError("unexpected command") # This print is actually what sets the PATH or PROMPT variable. The shell # script gets this value, and finishes the job. print(path)
https://github.com/conda/conda/issues/2680
$ conda activate myenv Traceback (most recent call last): File "/home/jrodriguez/.local/anaconda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/jrodriguez/.local/anaconda/lib/python3.5/site-packages/conda/cli/main.py", line 48, in main activate.main() File "/home/jrodriguez/.local/anaconda/lib/python3.5/site-packages/conda/cli/activate.py", line 119, in main shelldict = shells[shell] KeyError: 'myenv'
KeyError
def load_linked_data(prefix, dist, rec=None): schannel, dname = dist2pair(dist) meta_file = join(prefix, "conda-meta", dname + ".json") if rec is None: try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") if "fn" not in rec: rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if not url and "channel" in rec: url = rec["url"] = rec["channel"] + rec["fn"] if rec["fn"][:-8] != dname: log.debug("Ignoring invalid package metadata file: %s" % meta_file) return None channel, schannel = url_channel(url) rec["channel"] = channel rec["schannel"] = schannel cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
def load_linked_data(prefix, dist, rec=None): schannel, dname = dist2pair(dist) if rec is None: meta_file = join(prefix, "conda-meta", dname + ".json") try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") if "fn" not in rec: rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if not url and "channel" in rec: url = rec["url"] = rec["channel"] + rec["fn"] channel, schannel = url_channel(url) rec["channel"] = channel rec["schannel"] = schannel cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
https://github.com/conda/conda/issues/2599
$ CIO_TEST=3 conda update pycrypto ... Traceback (most recent call last): File "/Users/ilan/python/bin/conda", line 6, in <module> sys.exit(conda.cli.main.main()) File "/Users/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ilan/conda/conda/cli/main_update.py", line 64, in execute install.install(args, parser, 'update') File "/Users/ilan/conda/conda/cli/install.py", line 232, in install plan.add_defaults_to_specs(r, linked, specs, update=isupdate) File "/Users/ilan/conda/conda/plan.py", line 344, in add_defaults_to_specs names_linked = {r.index[fn]['name']: fn for fn in linked} File "/Users/ilan/conda/conda/plan.py", line 344, in <dictcomp> names_linked = {r.index[fn]['name']: fn for fn in linked} KeyError: 'xar.tar.bz2'
KeyError
def add_defaults_to_specs(r, linked, specs, update=False): # TODO: This should use the pinning mechanism. But don't change the API: # cas uses it. if r.explicit(specs): return log.debug("H0 specs=%r" % specs) linked = [d if d.endswith(".tar.bz2") else d + ".tar.bz2" for d in linked] names_linked = {r.index[fn]["name"]: fn for fn in linked if fn in r.index} mspecs = list(map(MatchSpec, specs)) for name, def_ver in [ ("python", default_python), # Default version required, but only used for Python ("lua", None), ]: if any(s.name == name and not s.is_simple() for s in mspecs): # if any of the specifications mention the Python/Numpy version, # we don't need to add the default spec log.debug("H1 %s" % name) continue depends_on = {s for s in mspecs if r.depends_on(s, name)} any_depends_on = bool(depends_on) log.debug("H2 %s %s" % (name, any_depends_on)) if not any_depends_on: # if nothing depends on Python/Numpy AND the Python/Numpy is not # specified, we don't need to add the default spec log.debug("H2A %s" % name) continue if any(s.is_exact() for s in depends_on): # If something depends on Python/Numpy, but the spec is very # explicit, we also don't need to add the default spec log.debug("H2B %s" % name) continue if name in names_linked: # if Python/Numpy is already linked, we add that instead of the # default log.debug("H3 %s" % name) fkey = names_linked[name] info = r.index[fkey] ver = ".".join(info["version"].split(".", 2)[:2]) spec = "%s %s* (target=%s)" % (info["name"], ver, fkey) specs.append(spec) continue if name == "python" and def_ver.startswith("3."): # Don't include Python 3 in the specs if this is the Python 3 # version of conda. continue if def_ver is not None: specs.append("%s %s*" % (name, def_ver)) log.debug("HF specs=%r" % specs)
def add_defaults_to_specs(r, linked, specs, update=False): # TODO: This should use the pinning mechanism. But don't change the API: # cas uses it. if r.explicit(specs): return log.debug("H0 specs=%r" % specs) linked = [d if d.endswith(".tar.bz2") else d + ".tar.bz2" for d in linked] names_linked = {name_dist(dist): dist for dist in linked} mspecs = list(map(MatchSpec, specs)) for name, def_ver in [ ("python", default_python), # Default version required, but only used for Python ("lua", None), ]: if any(s.name == name and not s.is_simple() for s in mspecs): # if any of the specifications mention the Python/Numpy version, # we don't need to add the default spec log.debug("H1 %s" % name) continue depends_on = {s for s in mspecs if r.depends_on(s, name)} any_depends_on = bool(depends_on) log.debug("H2 %s %s" % (name, any_depends_on)) if not any_depends_on: # if nothing depends on Python/Numpy AND the Python/Numpy is not # specified, we don't need to add the default spec log.debug("H2A %s" % name) continue if any(s.is_exact() for s in depends_on): # If something depends on Python/Numpy, but the spec is very # explicit, we also don't need to add the default spec log.debug("H2B %s" % name) continue if name in names_linked: # if Python/Numpy is already linked, we add that instead of the # default log.debug("H3 %s" % name) fkey = names_linked[name] info = r.index[fkey] ver = ".".join(info["version"].split(".", 2)[:2]) spec = "%s %s* (target=%s)" % (info["name"], ver, fkey) specs.append(spec) continue if name == "python" and def_ver.startswith("3."): # Don't include Python 3 in the specs if this is the Python 3 # version of conda. continue if def_ver is not None: specs.append("%s %s*" % (name, def_ver)) log.debug("HF specs=%r" % specs)
https://github.com/conda/conda/issues/2599
$ CIO_TEST=3 conda update pycrypto ... Traceback (most recent call last): File "/Users/ilan/python/bin/conda", line 6, in <module> sys.exit(conda.cli.main.main()) File "/Users/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/Users/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/Users/ilan/conda/conda/cli/main_update.py", line 64, in execute install.install(args, parser, 'update') File "/Users/ilan/conda/conda/cli/install.py", line 232, in install plan.add_defaults_to_specs(r, linked, specs, update=isupdate) File "/Users/ilan/conda/conda/plan.py", line 344, in add_defaults_to_specs names_linked = {r.index[fn]['name']: fn for fn in linked} File "/Users/ilan/conda/conda/plan.py", line 344, in <dictcomp> names_linked = {r.index[fn]['name']: fn for fn in linked} KeyError: 'xar.tar.bz2'
KeyError
def get_index( channel_urls=(), prepend=True, platform=None, use_local=False, use_cache=False, unknown=False, offline=False, prefix=None, ): """ Return the index of packages available on the channels If prepend=False, only the channels passed in as arguments are used. If platform=None, then the current platform is used. If prefix is supplied, then the packages installed in that prefix are added. """ if use_local: channel_urls = ["local"] + list(channel_urls) channel_urls = normalize_urls(channel_urls, platform, offline) if prepend: channel_urls.extend(get_channel_urls(platform, offline)) channel_urls = prioritize_channels(channel_urls) index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown) if prefix: priorities = {c: p for c, p in itervalues(channel_urls)} maxp = max(itervalues(priorities)) + 1 for dist, info in iteritems(install.linked_data(prefix)): fn = info["fn"] schannel = info["schannel"] prefix = "" if schannel == "defaults" else schannel + "::" priority = priorities.get(schannel, maxp) key = prefix + fn if key in index: # Copy the link information so the resolver knows this is installed index[key]["link"] = info.get("link") else: # only if the package in not in the repodata, use local # conda-meta (with 'depends' defaulting to []) info.setdefault("depends", []) info["priority"] = priority index[key] = info return index
def get_index( channel_urls=(), prepend=True, platform=None, use_local=False, use_cache=False, unknown=False, offline=False, prefix=None, ): """ Return the index of packages available on the channels If prepend=False, only the channels passed in as arguments are used. If platform=None, then the current platform is used. If prefix is supplied, then the packages installed in that prefix are added. """ if use_local: channel_urls = ["local"] + list(channel_urls) channel_urls = normalize_urls(channel_urls, platform, offline) if prepend: channel_urls.extend(get_channel_urls(platform, offline)) channel_urls = prioritize_channels(channel_urls) index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown) if prefix: priorities = {c: p for c, p in itervalues(channel_urls)} for dist, info in iteritems(install.linked_data(prefix)): fn = info["fn"] schannel = info["schannel"] prefix = "" if schannel == "defaults" else schannel + "::" priority = priorities.get(schannel, 0) key = prefix + fn if key in index: # Copy the link information so the resolver knows this is installed index[key]["link"] = info.get("link") else: # only if the package in not in the repodata, use local # conda-meta (with 'depends' defaulting to []) info.setdefault("depends", []) info["priority"] = priority index[key] = info return index
https://github.com/conda/conda/issues/2538
Traceback (most recent call last): File "/home/ilan/a/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 556, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1059, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def package_cache(): """ Initializes the package cache. Each entry in the package cache dictionary contains three lists: - urls: the URLs used to refer to that package - files: the full pathnames to fetched copies of that package - dirs: the full pathnames to extracted copies of that package Nominally there should be no more than one entry in each list, but in theory this can handle the presence of multiple copies. """ if package_cache_: return package_cache_ # Stops recursion package_cache_["@"] = None for pdir in pkgs_dirs: try: data = open(join(pdir, "urls.txt")).read() for url in data.split()[::-1]: if "/" in url: add_cached_package(pdir, url) except IOError: pass if isdir(pdir): for fn in os.listdir(pdir): add_cached_package(pdir, fn) del package_cache_["@"] return package_cache_
def package_cache(): """ Initializes the package cache. Each entry in the package cache dictionary contains three lists: - urls: the URLs used to refer to that package - files: the full pathnames to fetched copies of that package - dirs: the full pathnames to extracted copies of that package Nominally there should be no more than one entry in each list, but in theory this can handle the presence of multiple copies. """ if package_cache_: return package_cache_ # Stops recursion package_cache_["@"] = None for pdir in pkgs_dirs: try: data = open(join(pdir, "urls.txt")).read() for url in data.split()[::-1]: if "/" in url: add_cached_package(pdir, url) except IOError: pass for fn in os.listdir(pdir): add_cached_package(pdir, fn) del package_cache_["@"] return package_cache_
https://github.com/conda/conda/issues/2596
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda-build", line 6, in <module> exec(compile(open(__file__).read(), __file__, 'exec')) File "/home/ilan/conda-build/bin/conda-build", line 5, in <module> sys.exit(main()) File "/home/ilan/conda-build/conda_build/main_build.py", line 140, in main args_func(args, p) File "/home/ilan/conda-build/conda_build/main_build.py", line 380, in args_func args.func(args, p) File "/home/ilan/conda-build/conda_build/main_build.py", line 367, in execute build.test(m) File "/home/ilan/conda-build/conda_build/build.py", line 613, in test rm_pkgs_cache(m.dist()) File "/home/ilan/conda-build/conda_build/build.py", line 386, in rm_pkgs_cache plan.execute_plan(rmplan) File "/home/ilan/conda/conda/plan.py", line 583, in execute_plan inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 65, in RM_FETCHED_CMD install.rm_fetched(arg) File "/home/ilan/conda/conda/install.py", line 749, in rm_fetched rec = package_cache().get(dist) File "/home/ilan/conda/conda/install.py", line 692, in package_cache for fn in os.listdir(pdir): OSError: [Errno 2] No such file or directory: '/home/ilan/minonda/pkgs'
OSError
def list_packages( prefix, installed, regex=None, format="human", show_channel_urls=show_channel_urls ): res = 1 result = [] for dist in get_packages(installed, regex): res = 0 if format == "canonical": result.append(dist) continue if format == "export": result.append("=".join(dist2quad(dist)[:3])) continue try: # Returns None if no meta-file found (e.g. pip install) info = install.is_linked(prefix, dist) features = set(info.get("features", "").split()) disp = "%(name)-25s %(version)-15s %(build)15s" % info disp += " %s" % common.disp_features(features) schannel = info.get("schannel") if ( show_channel_urls or show_channel_urls is None and schannel != "defaults" ): disp += " %s" % schannel result.append(disp) except (AttributeError, IOError, KeyError, ValueError) as e: log.debug(str(e)) result.append("%-25s %-15s %s" % dist2quad(dist)[:3]) return res, result
def list_packages( prefix, installed, regex=None, format="human", show_channel_urls=show_channel_urls ): res = 1 result = [] for dist in get_packages(installed, regex): res = 0 if format == "canonical": result.append(dist) continue if format == "export": result.append("=".join(dist2quad(dist)[:3])) continue try: # Returns None if no meta-file found (e.g. pip install) info = install.is_linked(prefix, dist) features = set(info.get("features", "").split()) disp = "%(name)-25s %(version)-15s %(build)15s" % info disp += " %s" % common.disp_features(features) schannel = info.get("schannel") if ( show_channel_urls or show_channel_urls is None and schannel != "defaults" ): disp += " %s" % schannel result.append(disp) except (AttributeError, IOError, KeyError, ValueError) as e: log.debug(str(e)) result.append("%-25s %-15s %15s" % dist2quad(dist, channel=False)) return res, result
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def pretty_diff(diff): added = {} removed = {} for s in diff: fn = s[1:] name, version, _, channel = dist2quad(fn) if channel != "defaults": version += " (%s)" % channel if s.startswith("-"): removed[name.lower()] = version elif s.startswith("+"): added[name.lower()] = version changed = set(added) & set(removed) for name in sorted(changed): yield " %s {%s -> %s}" % (name, removed[name], added[name]) for name in sorted(set(removed) - changed): yield "-%s-%s" % (name, removed[name]) for name in sorted(set(added) - changed): yield "+%s-%s" % (name, added[name])
def pretty_diff(diff): added = {} removed = {} for s in diff: fn = s[1:] name, version, unused_build = dist2quad(fn, channel=False) if s.startswith("-"): removed[name.lower()] = version elif s.startswith("+"): added[name.lower()] = version changed = set(added) & set(removed) for name in sorted(changed): yield " %s {%s -> %s}" % (name, removed[name], added[name]) for name in sorted(set(removed) - changed): yield "-%s-%s" % (name, removed[name]) for name in sorted(set(added) - changed): yield "+%s-%s" % (name, added[name])
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def object_log(self): result = [] for i, (date, content, unused_com) in enumerate(self.parse()): # Based on Mateusz's code; provides more details about the # history event event = { "date": date, "rev": i, "install": [], "remove": [], "upgrade": [], "downgrade": [], } added = {} removed = {} if is_diff(content): for pkg in content: name, version, build, channel = dist2quad(pkg[1:]) if pkg.startswith("+"): added[name.lower()] = (version, build, channel) elif pkg.startswith("-"): removed[name.lower()] = (version, build, channel) changed = set(added) & set(removed) for name in sorted(changed): old = removed[name] new = added[name] details = { "old": "-".join((name,) + old), "new": "-".join((name,) + new), } if new > old: event["upgrade"].append(details) else: event["downgrade"].append(details) for name in sorted(set(removed) - changed): event["remove"].append("-".join((name,) + removed[name])) for name in sorted(set(added) - changed): event["install"].append("-".join((name,) + added[name])) else: for pkg in sorted(content): event["install"].append(pkg) result.append(event) return result
def object_log(self): result = [] for i, (date, content, unused_com) in enumerate(self.parse()): # Based on Mateusz's code; provides more details about the # history event event = { "date": date, "rev": i, "install": [], "remove": [], "upgrade": [], "downgrade": [], } added = {} removed = {} if is_diff(content): for pkg in content: name, version, build = dist2quad(pkg[1:], channel=False) if pkg.startswith("+"): added[name.lower()] = (version, build) elif pkg.startswith("-"): removed[name.lower()] = (version, build) changed = set(added) & set(removed) for name in sorted(changed): old = removed[name] new = added[name] details = { "old": "-".join((name,) + old), "new": "-".join((name,) + new), } if new > old: event["upgrade"].append(details) else: event["downgrade"].append(details) for name in sorted(set(removed) - changed): event["remove"].append("-".join((name,) + removed[name])) for name in sorted(set(added) - changed): event["install"].append("-".join((name,) + added[name])) else: for pkg in sorted(content): event["install"].append(pkg) result.append(event) return result
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def dist2quad(dist): channel, dist = dist2pair(dist) parts = dist.rsplit("-", 2) + ["", ""] return (parts[0], parts[1], parts[2], channel)
def dist2quad(dist, channel=True): dist = str(dist) if dist.endswith(".tar.bz2"): dist = dist[:-8] parts = dist.rsplit("-", 2) if len(parts) < 3: parts = parts + [""] * (3 - len(parts)) chan_name, version, build = parts if not channel: return chan_name, version, build parts = chan_name.split("::") return (parts[-1], version, build, "defaults" if len(parts) < 2 else parts[0])
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def name_dist(dist): return dist2name(dist)
def name_dist(dist): return dist2quad(dist)[0]
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def create_meta(prefix, dist, info_dir, extra_info): """ Create the conda metadata, in a given prefix, for a given package. """ # read info/index.json first with open(join(info_dir, "index.json")) as fi: meta = json.load(fi) # add extra info, add to our intenral cache meta.update(extra_info) if "url" not in meta: meta["url"] = read_url(dist) # write into <env>/conda-meta/<dist>.json meta_dir = join(prefix, "conda-meta") if not isdir(meta_dir): os.makedirs(meta_dir) with open(join(meta_dir, dist2filename(dist, ".json")), "w") as fo: json.dump(meta, fo, indent=2, sort_keys=True) if prefix in linked_data_: load_linked_data(prefix, dist, meta)
def create_meta(prefix, dist, info_dir, extra_info): """ Create the conda metadata, in a given prefix, for a given package. """ # read info/index.json first with open(join(info_dir, "index.json")) as fi: meta = json.load(fi) # add extra info, add to our intenral cache meta.update(extra_info) if "url" not in meta: meta["url"] = read_url(dist) # write into <env>/conda-meta/<dist>.json meta_dir = join(prefix, "conda-meta") if not isdir(meta_dir): os.makedirs(meta_dir) with open(join(meta_dir, _dist2filename(dist, ".json")), "w") as fo: json.dump(meta, fo, indent=2, sort_keys=True) if prefix in linked_data_: load_linked_data(prefix, dist, meta)
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def try_hard_link(pkgs_dir, prefix, dist): dist = dist2filename(dist, "") src = join(pkgs_dir, dist, "info", "index.json") dst = join(prefix, ".tmp-%s" % dist) assert isfile(src), src assert not isfile(dst), dst try: if not isdir(prefix): os.makedirs(prefix) _link(src, dst, LINK_HARD) # Some file systems (at least BeeGFS) do not support hard-links # between files in different directories. Depending on the # file system configuration, a symbolic link may be created # instead. If a symbolic link is created instead of a hard link, # return False. return not os.path.islink(dst) except OSError: return False finally: rm_rf(dst) rm_empty_dir(prefix)
def try_hard_link(pkgs_dir, prefix, dist): dist = _dist2filename(dist, "") src = join(pkgs_dir, dist, "info", "index.json") dst = join(prefix, ".tmp-%s" % dist) assert isfile(src), src assert not isfile(dst), dst try: if not isdir(prefix): os.makedirs(prefix) _link(src, dst, LINK_HARD) # Some file systems (at least BeeGFS) do not support hard-links # between files in different directories. Depending on the # file system configuration, a symbolic link may be created # instead. If a symbolic link is created instead of a hard link, # return False. return not os.path.islink(dst) except OSError: return False finally: rm_rf(dst) rm_empty_dir(prefix)
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def find_new_location(dist): """ Determines the download location for the given package, and the name of a package, if any, that must be removed to make room. If the given package is already in the cache, it returns its current location, under the assumption that it will be overwritten. If the conflict value is None, that means there is no other package with that same name present in the cache (e.g., no collision). """ rec = package_cache().get(dist) if rec: return dirname((rec["files"] or rec["dirs"])[0]), None fname = dist2filename(dist) dname = fname[:-8] # Look for a location with no conflicts # On the second pass, just pick the first location for p in range(2): for pkg_dir in pkgs_dirs: pkg_path = join(pkg_dir, fname) prefix = fname_table_.get(pkg_path) if p or prefix is None: return pkg_dir, prefix + dname if p else None
def find_new_location(dist): """ Determines the download location for the given package, and the name of a package, if any, that must be removed to make room. If the given package is already in the cache, it returns its current location, under the assumption that it will be overwritten. If the conflict value is None, that means there is no other package with that same name present in the cache (e.g., no collision). """ rec = package_cache().get(dist) if rec: return dirname((rec["files"] or rec["dirs"])[0]), None fname = _dist2filename(dist) dname = fname[:-8] # Look for a location with no conflicts # On the second pass, just pick the first location for p in range(2): for pkg_dir in pkgs_dirs: pkg_path = join(pkg_dir, fname) prefix = fname_table_.get(pkg_path) if p or prefix is None: return pkg_dir, prefix + dname if p else None
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def load_linked_data(prefix, dist, rec=None): schannel, dname = dist2pair(dist) if rec is None: meta_file = join(prefix, "conda-meta", dname + ".json") try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") if "fn" not in rec: rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if not url and "channel" in rec: url = rec["url"] = rec["channel"] + rec["fn"] channel, schannel = url_channel(url) rec["channel"] = channel rec["schannel"] = schannel cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
def load_linked_data(prefix, dist, rec=None): schannel, dname = _dist2pair(dist) if rec is None: meta_file = join(prefix, "conda-meta", dname + ".json") try: with open(meta_file) as fi: rec = json.load(fi) except IOError: return None else: linked_data(prefix) url = rec.get("url") if "fn" not in rec: rec["fn"] = url.rsplit("/", 1)[-1] if url else dname + ".tar.bz2" if not url and "channel" in rec: url = rec["url"] = rec["channel"] + rec["fn"] channel, schannel = url_channel(url) rec["channel"] = channel rec["schannel"] = schannel cprefix = "" if schannel == "defaults" else schannel + "::" linked_data_[prefix][str(cprefix + dname)] = rec return rec
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def delete_linked_data(prefix, dist, delete=True): recs = linked_data_.get(prefix) if recs and dist in recs: del recs[dist] if delete: meta_path = join(prefix, "conda-meta", dist2filename(dist, ".json")) if isfile(meta_path): os.unlink(meta_path)
def delete_linked_data(prefix, dist, delete=True): recs = linked_data_.get(prefix) if recs and dist in recs: del recs[dist] if delete: meta_path = join(prefix, "conda-meta", _dist2filename(dist, ".json")) if isfile(meta_path): os.unlink(meta_path)
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def link(prefix, dist, linktype=LINK_HARD, index=None): """ Set up a package in a specified (environment) prefix. We assume that the package has been extracted (using extract() above). """ index = index or {} source_dir = is_extracted(dist) assert source_dir is not None pkgs_dir = dirname(source_dir) log.debug( "pkgs_dir=%r, prefix=%r, dist=%r, linktype=%r" % (pkgs_dir, prefix, dist, linktype) ) if not run_script(source_dir, dist, "pre-link", prefix): sys.exit("Error: pre-link failed: %s" % dist) info_dir = join(source_dir, "info") files = list(yield_lines(join(info_dir, "files"))) has_prefix_files = read_has_prefix(join(info_dir, "has_prefix")) no_link = read_no_link(info_dir) with Locked(prefix), Locked(pkgs_dir): for f in files: src = join(source_dir, f) dst = join(prefix, f) dst_dir = dirname(dst) if not isdir(dst_dir): os.makedirs(dst_dir) if os.path.exists(dst): log.warn("file already exists: %r" % dst) try: os.unlink(dst) except OSError: log.error("failed to unlink: %r" % dst) if on_win: try: move_path_to_trash(dst) except ImportError: # This shouldn't be an issue in the installer anyway pass lt = linktype if f in has_prefix_files or f in no_link or islink(src): lt = LINK_COPY try: _link(src, dst, lt) except OSError as e: log.error( "failed to link (src=%r, dst=%r, type=%r, error=%r)" % (src, dst, lt, e) ) if name_dist(dist) == "_cache": return for f in sorted(has_prefix_files): placeholder, mode = has_prefix_files[f] try: update_prefix(join(prefix, f), prefix, placeholder, mode) except PaddingError: sys.exit( "ERROR: placeholder '%s' too short in: %s\n" % (placeholder, dist) ) mk_menus(prefix, files, remove=False) if not run_script(prefix, dist, "post-link"): sys.exit("Error: post-link failed for: %s" % dist) meta_dict = index.get(dist + ".tar.bz2", {}) meta_dict["url"] = read_url(dist) try: alt_files_path = join(prefix, "conda-meta", dist2filename(dist, ".files")) meta_dict["files"] = list(yield_lines(alt_files_path)) os.unlink(alt_files_path) except IOError: meta_dict["files"] = files meta_dict["link"] = {"source": source_dir, "type": link_name_map.get(linktype)} if "icon" in meta_dict: meta_dict["icondata"] = read_icondata(source_dir) create_meta(prefix, dist, info_dir, meta_dict)
def link(prefix, dist, linktype=LINK_HARD, index=None): """ Set up a package in a specified (environment) prefix. We assume that the package has been extracted (using extract() above). """ index = index or {} source_dir = is_extracted(dist) assert source_dir is not None pkgs_dir = dirname(source_dir) log.debug( "pkgs_dir=%r, prefix=%r, dist=%r, linktype=%r" % (pkgs_dir, prefix, dist, linktype) ) if not run_script(source_dir, dist, "pre-link", prefix): sys.exit("Error: pre-link failed: %s" % dist) info_dir = join(source_dir, "info") files = list(yield_lines(join(info_dir, "files"))) has_prefix_files = read_has_prefix(join(info_dir, "has_prefix")) no_link = read_no_link(info_dir) with Locked(prefix), Locked(pkgs_dir): for f in files: src = join(source_dir, f) dst = join(prefix, f) dst_dir = dirname(dst) if not isdir(dst_dir): os.makedirs(dst_dir) if os.path.exists(dst): log.warn("file already exists: %r" % dst) try: os.unlink(dst) except OSError: log.error("failed to unlink: %r" % dst) if on_win: try: move_path_to_trash(dst) except ImportError: # This shouldn't be an issue in the installer anyway pass lt = linktype if f in has_prefix_files or f in no_link or islink(src): lt = LINK_COPY try: _link(src, dst, lt) except OSError as e: log.error( "failed to link (src=%r, dst=%r, type=%r, error=%r)" % (src, dst, lt, e) ) if name_dist(dist) == "_cache": return for f in sorted(has_prefix_files): placeholder, mode = has_prefix_files[f] try: update_prefix(join(prefix, f), prefix, placeholder, mode) except PaddingError: sys.exit( "ERROR: placeholder '%s' too short in: %s\n" % (placeholder, dist) ) mk_menus(prefix, files, remove=False) if not run_script(prefix, dist, "post-link"): sys.exit("Error: post-link failed for: %s" % dist) meta_dict = index.get(dist + ".tar.bz2", {}) meta_dict["url"] = read_url(dist) try: alt_files_path = join(prefix, "conda-meta", _dist2filename(dist, ".files")) meta_dict["files"] = list(yield_lines(alt_files_path)) os.unlink(alt_files_path) except IOError: meta_dict["files"] = files meta_dict["link"] = {"source": source_dir, "type": link_name_map.get(linktype)} if "icon" in meta_dict: meta_dict["icondata"] = read_icondata(source_dir) create_meta(prefix, dist, info_dir, meta_dict)
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def ensure_linked_actions(dists, prefix, index=None, force=False, always_copy=False): actions = defaultdict(list) actions[inst.PREFIX] = prefix actions["op_order"] = ( inst.RM_FETCHED, inst.FETCH, inst.RM_EXTRACTED, inst.EXTRACT, inst.UNLINK, inst.LINK, ) for dist in dists: fetched_in = install.is_fetched(dist) extracted_in = install.is_extracted(dist) if fetched_in and index is not None: # Test the MD5, and possibly re-fetch fn = dist + ".tar.bz2" try: if md5_file(fetched_in) != index[fn]["md5"]: # RM_FETCHED now removes the extracted data too actions[inst.RM_FETCHED].append(dist) # Re-fetch, re-extract, re-link fetched_in = extracted_in = None force = True except KeyError: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if not force and install.is_linked(prefix, dist): continue if extracted_in and force: # Always re-extract in the force case actions[inst.RM_EXTRACTED].append(dist) extracted_in = None # Otherwise we need to extract, and possibly fetch if not extracted_in and not fetched_in: # If there is a cache conflict, clean it up fetched_in, conflict = install.find_new_location(dist) fetched_in = join(fetched_in, install.dist2filename(dist)) if conflict is not None: actions[inst.RM_FETCHED].append(conflict) actions[inst.FETCH].append(dist) if not extracted_in: actions[inst.EXTRACT].append(dist) fetched_dist = extracted_in or fetched_in[:-8] fetched_dir = dirname(fetched_dist) try: # Determine what kind of linking is necessary if not extracted_in: # If not already extracted, create some dummy # data to test with install.rm_rf(fetched_dist) ppath = join(fetched_dist, "info") os.makedirs(ppath) index_json = join(ppath, "index.json") with open(index_json, "w"): pass if config_always_copy or always_copy: lt = install.LINK_COPY elif install.try_hard_link(fetched_dir, prefix, dist): lt = install.LINK_HARD elif allow_softlinks and sys.platform != "win32": lt = install.LINK_SOFT else: lt = install.LINK_COPY actions[inst.LINK].append("%s %d" % (dist, lt)) except (OSError, IOError): actions[inst.LINK].append(dist) finally: if not extracted_in: # Remove the dummy data try: install.rm_rf(fetched_dist) except (OSError, IOError): pass return actions
def ensure_linked_actions(dists, prefix, index=None, force=False, always_copy=False): actions = defaultdict(list) actions[inst.PREFIX] = prefix actions["op_order"] = ( inst.RM_FETCHED, inst.FETCH, inst.RM_EXTRACTED, inst.EXTRACT, inst.UNLINK, inst.LINK, ) for dist in dists: fetched_in = install.is_fetched(dist) extracted_in = install.is_extracted(dist) if fetched_in and index is not None: # Test the MD5, and possibly re-fetch fn = dist + ".tar.bz2" try: if md5_file(fetched_in) != index[fn]["md5"]: # RM_FETCHED now removes the extracted data too actions[inst.RM_FETCHED].append(dist) # Re-fetch, re-extract, re-link fetched_in = extracted_in = None force = True except KeyError: sys.stderr.write("Warning: cannot lookup MD5 of: %s" % fn) if not force and install.is_linked(prefix, dist): continue if extracted_in and force: # Always re-extract in the force case actions[inst.RM_EXTRACTED].append(dist) extracted_in = None # Otherwise we need to extract, and possibly fetch if not extracted_in and not fetched_in: # If there is a cache conflict, clean it up fetched_in, conflict = install.find_new_location(dist) fetched_in = join(fetched_in, install._dist2filename(dist)) if conflict is not None: actions[inst.RM_FETCHED].append(conflict) actions[inst.FETCH].append(dist) if not extracted_in: actions[inst.EXTRACT].append(dist) fetched_dist = extracted_in or fetched_in[:-8] fetched_dir = dirname(fetched_dist) try: # Determine what kind of linking is necessary if not extracted_in: # If not already extracted, create some dummy # data to test with install.rm_rf(fetched_dist) ppath = join(fetched_dist, "info") os.makedirs(ppath) index_json = join(ppath, "index.json") with open(index_json, "w"): pass if config_always_copy or always_copy: lt = install.LINK_COPY elif install.try_hard_link(fetched_dir, prefix, dist): lt = install.LINK_HARD elif allow_softlinks and sys.platform != "win32": lt = install.LINK_SOFT else: lt = install.LINK_COPY actions[inst.LINK].append("%s %d" % (dist, lt)) except (OSError, IOError): actions[inst.LINK].append(dist) finally: if not extracted_in: # Remove the dummy data try: install.rm_rf(fetched_dist) except (OSError, IOError): pass return actions
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def add_defaults_to_specs(r, linked, specs, update=False): # TODO: This should use the pinning mechanism. But don't change the API: # cas uses it. if r.explicit(specs): return log.debug("H0 specs=%r" % specs) linked = [fn if fn.endswith(".tar.bz2") else fn + ".tar.bz2" for fn in linked] names_linked = {r.index[fn]["name"]: fn for fn in linked} names_ms = {MatchSpec(s).name: MatchSpec(s) for s in specs} for name, def_ver in [ ("python", default_python), # Default version required, but only used for Python ("lua", None), ]: ms = names_ms.get(name) if ms and not ms.is_simple(): # if any of the specifications mention the Python/Numpy version, # we don't need to add the default spec log.debug("H1 %s" % name) continue any_depends_on = any( ms2.name == name for spec in specs for fn in r.find_matches(spec) for ms2 in r.ms_depends(fn) ) log.debug("H2 %s %s" % (name, any_depends_on)) if not any_depends_on and name not in names_ms: # if nothing depends on Python/Numpy AND the Python/Numpy is not # specified, we don't need to add the default spec log.debug("H2A %s" % name) continue if any_depends_on and len(specs) >= 1 and MatchSpec(specs[0]).is_exact(): # if something depends on Python/Numpy, but the spec is very # explicit, we also don't need to add the default spec log.debug("H2B %s" % name) continue if name in names_linked: # if Python/Numpy is already linked, we add that instead of the # default log.debug("H3 %s" % name) fkey = names_linked[name] info = r.index[fkey] ver = ".".join(info["version"].split(".", 2)[:2]) spec = "%s %s*" % (info["name"], ver) if update: spec += " (target=%s)" % fkey specs.append(spec) continue if (name, def_ver) in [("python", "3.3"), ("python", "3.4"), ("python", "3.5")]: # Don't include Python 3 in the specs if this is the Python 3 # version of conda. continue specs.append("%s %s*" % (name, def_ver)) log.debug("HF specs=%r" % specs)
def add_defaults_to_specs(r, linked, specs, update=False): # TODO: This should use the pinning mechanism. But don't change the API: # cas uses it. if r.explicit(specs): return log.debug("H0 specs=%r" % specs) names_linked = {install.name_dist(dist): dist for dist in linked} names_ms = {MatchSpec(s).name: MatchSpec(s) for s in specs} for name, def_ver in [ ("python", default_python), # Default version required, but only used for Python ("lua", None), ]: ms = names_ms.get(name) if ms and not ms.is_simple(): # if any of the specifications mention the Python/Numpy version, # we don't need to add the default spec log.debug("H1 %s" % name) continue any_depends_on = any( ms2.name == name for spec in specs for fn in r.find_matches(spec) for ms2 in r.ms_depends(fn) ) log.debug("H2 %s %s" % (name, any_depends_on)) if not any_depends_on and name not in names_ms: # if nothing depends on Python/Numpy AND the Python/Numpy is not # specified, we don't need to add the default spec log.debug("H2A %s" % name) continue if any_depends_on and len(specs) >= 1 and MatchSpec(specs[0]).is_exact(): # if something depends on Python/Numpy, but the spec is very # explicit, we also don't need to add the default spec log.debug("H2B %s" % name) continue if name in names_linked: # if Python/Numpy is already linked, we add that instead of the # default log.debug("H3 %s" % name) fkey = names_linked[name] + ".tar.bz2" info = r.index[fkey] ver = ".".join(info["version"].split(".", 2)[:2]) spec = "%s %s*" % (info["name"], ver) if update: spec += " (target=%s)" % fkey specs.append(spec) continue if (name, def_ver) in [("python", "3.3"), ("python", "3.4"), ("python", "3.5")]: # Don't include Python 3 in the specs if this is the Python 3 # version of conda. continue specs.append("%s %s*" % (name, def_ver)) log.debug("HF specs=%r" % specs)
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError
def __init__(self, index, sort=False, processed=False): self.index = index if not processed: for fkey, info in iteritems(index.copy()): if fkey.endswith("]"): continue for fstr in chain( info.get("features", "").split(), info.get("track_features", "").split(), track_features or (), ): self.add_feature(fstr, group=False) for fstr in iterkeys(info.get("with_features_depends", {})): index["%s[%s]" % (fkey, fstr)] = info self.add_feature(fstr, group=False) groups = {} trackers = {} installed = set() for fkey, info in iteritems(index): groups.setdefault(info["name"], []).append(fkey) for feat in info.get("track_features", "").split(): trackers.setdefault(feat, []).append(fkey) if "link" in info and not fkey.endswith("]"): installed.add(fkey) self.groups = groups self.installed = installed self.trackers = trackers self.find_matches_ = {} self.ms_depends_ = {} if sort: for name, group in iteritems(groups): groups[name] = sorted(group, key=self.version_key, reverse=True)
def __init__(self, index, sort=False, processed=False): self.index = index if not processed: for fkey, info in iteritems(index.copy()): if fkey.endswith("]"): continue for fstr in chain( info.get("features", "").split(), info.get("track_features", "").split(), track_features or (), ): self.add_feature(fstr, group=False) for fstr in iterkeys(info.get("with_features_depends", {})): index["%s[%s]" % (fkey, fstr)] = info self.add_feature(fstr, group=False) groups = {} trackers = {} installed = set() for fkey, info in iteritems(index): groups.setdefault(info["name"], []).append(fkey) for feat in info.get("track_features", "").split(): trackers.setdefault(feat, []).append(fkey) if "link" in info: installed.add(fkey) self.groups = groups self.installed = installed self.trackers = trackers self.find_matches_ = {} self.ms_depends_ = {} if sort: for name, group in iteritems(groups): groups[name] = sorted(group, key=self.version_key, reverse=True)
https://github.com/conda/conda/issues/2570
Traceback (most recent call last): File "/home/ilan/minonda/bin/conda", line 6, in <module> sys.exit(main()) File "/home/ilan/conda/conda/cli/main.py", line 120, in main args_func(args, p) File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func args.func(args, p) File "/home/ilan/conda/conda/cli/main_install.py", line 62, in execute install.install(args, parser, 'install') File "/home/ilan/conda/conda/cli/install.py", line 394, in install plan.execute_actions(actions, index, verbose=not args.quiet) File "/home/ilan/conda/conda/plan.py", line 555, in execute_actions inst.execute_instructions(plan, index, verbose) File "/home/ilan/conda/conda/instructions.py", line 133, in execute_instructions cmd(state, arg) File "/home/ilan/conda/conda/instructions.py", line 80, in UNLINK_CMD install.unlink(state['prefix'], arg) File "/home/ilan/conda/conda/install.py", line 1075, in unlink mk_menus(prefix, meta['files'], remove=True) TypeError: 'NoneType' object has no attribute '__getitem__'
TypeError