repo
stringclasses
856 values
pull_number
int64
3
127k
instance_id
stringlengths
12
58
issue_numbers
listlengths
1
5
base_commit
stringlengths
40
40
patch
stringlengths
67
1.54M
test_patch
stringlengths
0
107M
problem_statement
stringlengths
3
307k
hints_text
stringlengths
0
908k
created_at
timestamp[s]
conda/conda
4,325
conda__conda-4325
[ "4322" ]
291b3a7304c5c60fe290272455ad182d09828485
diff --git a/conda/common/compat.py b/conda/common/compat.py --- a/conda/common/compat.py +++ b/conda/common/compat.py @@ -155,6 +155,10 @@ def ensure_text_type(value): return value.decode('utf-8') if hasattr(value, 'decode') else value +def ensure_unicode(value): + return value.decode('unicode_escape') if ...
conda sends bad HTTP headers when querying noarch repos ``conda 4.3`` requires package repositories to provide the ``noarch`` platform directory. After adding ``noarch`` to my custom repository served by Microsoft ``IIS 7.5``, conda started failing after a few runs of ``conda install``: ``` $ conda install conda F...
Thanks for the report. I've tracked down the problem. Working on the solution now.
2017-01-16T19:17:58
conda/conda
4,326
conda__conda-4326
[ "4299" ]
cb4bbbdbef1f5b90f53768d780ed297f5f584813
diff --git a/conda/gateways/download.py b/conda/gateways/download.py --- a/conda/gateways/download.py +++ b/conda/gateways/download.py @@ -73,7 +73,9 @@ def download(url, target_full_path, md5sum): with open(target_full_path, 'wb') as fh: streamed_bytes = 0 for...
Conda 4.3.4 seems to be broken ``` bag@bag ~ % conda --version conda 4.3.4 bag@bag ~ % conda install -y --file https://raw.githubusercontent.com/bioconda/bioconda-utils/master/bioconda_utils/bioconda_utils-requirements.txt CondaError: Downloaded bytes did not match Content-Length url: https://raw.gith...
Seems like https://github.com/conda/conda/commit/24ad4709#diff-e524c3264718c66b34ea0dadbfc2559fR88 introduced the bug. The request header sent by `requests.session` in this case has: ```bash 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*' ``` AFAIK, the `Content-Length` header holds the raw length of the HT...
2017-01-16T20:00:14
conda/conda
4,327
conda__conda-4327
[ "4323" ]
291b3a7304c5c60fe290272455ad182d09828485
diff --git a/conda/__init__.py b/conda/__init__.py --- a/conda/__init__.py +++ b/conda/__init__.py @@ -6,7 +6,9 @@ """OS-agnostic, system-level binary package manager.""" from __future__ import absolute_import, division, print_function, unicode_literals +import os from os.path import dirname +import sys from ._...
Channels in centrally installed .condarc file are being ignored in conda 4.3.4 Hi, I am testing a centrally installed Anaconda setup with Anaconda installed under `C:\Program Files\Anaconda3`. I have a condarc file under `C:\Program Files\Anaconda3\.condarc`. When I run `conda info` it tells me that my config file i...
Definitely a problem. Thanks for the report. I'll investigate.
2017-01-16T21:07:55
conda/conda
4,329
conda__conda-4329
[ "4316" ]
291b3a7304c5c60fe290272455ad182d09828485
diff --git a/conda/cli/activate.py b/conda/cli/activate.py --- a/conda/cli/activate.py +++ b/conda/cli/activate.py @@ -94,8 +94,26 @@ def pathlist_to_str(paths, escape_backslashes=True): return path +def get_activate_path(shelldict): + arg_num = len(sys.argv) + if arg_num != 4: + num_expected = 2 ...
deactivate bug @kevinzzz007 your issue reported in #4275 is different than what #4275 is reporting. I've created a new issue here. > I have a similar problem, I created an env with a name that does not start with an underscore, first I can successfully activate this env, but when I type source deactivate when insid...
This logic has changed recently, and it's also in the latest release of 4.2. I'll try to fix this tomorrow. @kalefranz thank you so much!
2017-01-16T23:21:15
conda/conda
4,361
conda__conda-4361
[ "4324" ]
801252baac3b5cd229a90e035b302d5dfaef3c48
diff --git a/conda/plan.py b/conda/plan.py --- a/conda/plan.py +++ b/conda/plan.py @@ -773,7 +773,7 @@ def remove_actions(prefix, specs, index, force=False, pinned=True): name = r.package_name(old_dist) if old_dist == nlinked.get(name): continue - if pinned and any(r.match(ms, old_...
KeyError when removing package We see the following KeyError when trying to remove a conda package, we've just upgraded from using conda 4.1.3 to 4.3.4. The last version that seems to work is 4.1.12, however 4.2.x may work as well for this issue, but it cannot get into this point due to unrelated (http, condahttp, etc...
Thanks for the report. Digging in soon. @kalefranz - I wonder why did you close this, is it already fixed in master? I still see this Keyerror with version 4.3.5 https://travis-ci.org/bsipocz/package-template/jobs/193123449 I didn't know I did!!!! It wasn't intentional. Unless I thought it was fixed. Looking aga...
2017-01-18T18:32:52
conda/conda
4,370
conda__conda-4370
[ "4351", "4351" ]
1d9f6da81f3ba64f6184f703f4ba7515969b17c0
diff --git a/conda/resolve.py b/conda/resolve.py --- a/conda/resolve.py +++ b/conda/resolve.py @@ -263,7 +263,10 @@ def invalid_chains(self, spec, filter): A generator of tuples, empty if the MatchSpec is valid. """ def chains_(spec, names): - if self.valid(spec, filter) or spe...
Jupyter install on 3.6 env crashes conda with infinite recursion This is a fairly fresh py3.6 env. Error trace follows (I snipped the hundreds of redundant frames in the middle of the recursion for readability, all non-redundant info kept): ``` (py36) denali[~]> conda install jupyter Fetching package metadata .......
@fperez Thanks for the report. @mcg1969 I know the stack trace ends in auxlib/entity, but it looks like the recursion is happening at File "/Users/fperez/usr/conda/lib/python3.5/site-packages/conda/resolve.py", line 273, in chains_ for x in chains_(m2, names): when the stack blows. Is there an...
2017-01-18T21:12:59
conda/conda
4,392
conda__conda-4392
[ "4309", "4309" ]
cebd69e01d1cf7bb02aebb66e2f4d75c760eccb4
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -2,6 +2,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals from abc import ABCMeta, abstractmethod, abstractproperty +from errno import EXDEV...
Conda exits with: Invalid cross-device link While building a docker image with docker-1.2.6 on ubuntu-16.0.4 I error: OSError(18, 'Invalid cross-device link') Here is the debug output: `An unexpected error has occurred. | Time: 0:00:00 803.99 kB/s Please consider posting the following informa...
Thanks for the report. I'm not sure this is a new problem in 4.3, but it might be. Without more debug output (and I'm not sure conda-env can even give more), my guess is that conda is trying to hard-link across two different devices. Changing your command to CONDA_ALWAYS_COPY=true /root/miniconda3/bin/cond...
2017-01-20T22:41:25
conda/conda
4,397
conda__conda-4397
[ "4393" ]
500cbff008b37136ee66e7b213ee23d5f1ea7514
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -601,12 +601,12 @@ def __init__(self, transaction_context, linked_package_data, target_prefix, targ def execute(self): if self.link_type != LinkType.directory: ...
diff --git a/conda/gateways/disk/test.py b/conda/gateways/disk/test.py --- a/conda/gateways/disk/test.py +++ b/conda/gateways/disk/test.py @@ -53,15 +53,20 @@ def hardlink_supported(source_file, dest_dir): # file system configuration, a symbolic link may be created # instead. If a symbolic link is created ins...
conda 4.3.6 broken - Uncaught backoff with errno EEXIST 17 Trying to update all broke with a *file already exists* error when trying to install the packages: ``` C:\dev\code\sandbox> conda update --all Fetching package metadata ................. Solving package specifications: . Package plan for installation in ...
Using conda 4.3.6 on py35 / win64. Downgrading to conda 4.2.15 allowed me to complete the update. I'd love to know where this error came from and fix it, but I need more information. Can you still reproduce it? If so, can you give me the output with the addition of `-v -v -v`? @kalefranz - I reverted to the previo...
2017-01-22T08:51:51
conda/conda
4,406
conda__conda-4406
[ "5116" ]
9591b0e7a49ba3ee99fc6fba5c470330f149ec14
diff --git a/conda/cli/activate.py b/conda/cli/activate.py --- a/conda/cli/activate.py +++ b/conda/cli/activate.py @@ -1,14 +1,15 @@ -from __future__ import print_function, division, absolute_import, unicode_literals +from __future__ import absolute_import, division, print_function, unicode_literals import errno im...
diff --git a/tests/test_activate.py b/tests/test_activate.py --- a/tests/test_activate.py +++ b/tests/test_activate.py @@ -1,26 +1,24 @@ # -*- coding: utf-8 -*- -from __future__ import print_function, absolute_import, unicode_literals - -import subprocess -import tempfile +from __future__ import absolute_import, print...
refactor conda/cli/activate.py to help menuinst Let menuinst not have to work about shellsdict in conda 4.3.
2017-01-23T19:24:46
conda/conda
4,409
conda__conda-4409
[ "4398" ]
f5db11ff49e5fe600f049ccc4ae8c6d828538706
diff --git a/conda/models/index_record.py b/conda/models/index_record.py --- a/conda/models/index_record.py +++ b/conda/models/index_record.py @@ -12,6 +12,10 @@ class LinkTypeField(EnumField): def box(self, instance, val): if isinstance(val, string_types): val = val.replace('-', '').replace(...
conda install error 'ValidationError: hard is not a valid LinkType' This command: conda install numpy causes this error: ``` An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Cur...
This is my clunky fix in `Users/mike/anaconda/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py` starting at line 545, changing `hard` into `hardlink`: def box(self, instance, val): if val is None: # let the required/nullable logic handle validation for this case retur...
2017-01-23T21:52:33
conda/conda
4,433
conda__conda-4433
[ "4425", "4425" ]
9a65c479c45bed12b2a9fc3b8df65078a3da1e5e
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -510,15 +510,11 @@ def __init__(self, transaction_context, package_info, target_prefix, target_shor None, None, target_...
Cannot upgrade pandas or other packages My anaconda suddenly cannot upgrade pandas or other packages. As I type "conda upgrade pandas", it will return: An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/iss...
Open python, then run this: ``` from glob import glob from json import loads for path in glob('/Users/Jianhua/anaconda/conda-meta/*.json'): try: with open(path) as fh: data = fh.read() _ = loads(data) except: print(path) print(data) raise ``...
2017-01-26T01:03:48
conda/conda
4,518
conda__conda-4518
[ "4513" ]
f71c08a765ee5714980206b30115b74886813fec
diff --git a/conda/core/index.py b/conda/core/index.py --- a/conda/core/index.py +++ b/conda/core/index.py @@ -9,7 +9,7 @@ from logging import DEBUG, getLogger from mmap import ACCESS_READ, mmap from os import makedirs -from os.path import getmtime, isfile, join, split as path_split +from os.path import getmtime, is...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -191,6 +191,12 @@ def test_install_python2(self): assert exists(join(prefix, PYTHON_BINARY)) assert_package_is_installed(prefix, 'python-2') + # regression test for #4...
Conda breaks if it can't find the noarch channel If the `noarch` URL of some custom channel doesn't exist, conda becomes completely broken. The error is: ``` Fetching package metadata ...... WARNING: The remote server could not find the noarch directory for the requested channel with url: https://zigzah.com/stati...
2017-02-03T18:37:45
conda/conda
4,548
conda__conda-4548
[ "4546" ]
81d2f6e2d383bb056d19ead27819675a6d48a06e
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -385,14 +385,14 @@ def this_triplet(entry_point_def): if noarch is not None and noarch.type == NoarchType.python: actions = tuple(cls(transaction_context, packa...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -231,7 +231,7 @@ def test_create_install_update_remove(self): self.assertRaises(CondaError, run_command, Commands.INSTALL, prefix, 'constructor=1.0') assert not package_is_installe...
Unable to install noarch: python package without entry points I've been playing with the `noarch: python` feature in conda 4.3 and enjoying it, really great addition! One issue that I've found is that conda seems unable to install noarch python packages that do not have entry points. Building and installing `noarch...
Thanks for the bug report. I'll get a fix in the next patch release.
2017-02-06T19:30:19
conda/conda
4,585
conda__conda-4585
[ "4567" ]
112f0549e6dfa7dd4770a5a1836adbe594e55203
diff --git a/conda/common/compat.py b/conda/common/compat.py --- a/conda/common/compat.py +++ b/conda/common/compat.py @@ -152,7 +152,15 @@ def ensure_binary(value): def ensure_text_type(value): - return value.decode('utf-8') if hasattr(value, 'decode') else value + if hasattr(value, 'decode'): + try:...
ERROR conda.core.link:_execute_actions(319): An error occurred while installing package 'defaults::qt-5.6.2-vc9_3' ``` Current conda install: platform : win-64 conda version : 4.3.9 conda is private : False conda-env version : 4.3.9 conda-build version : 2.1.3 ...
If this problem is reproducible for you, can you give me the output of conda create -n test qt -vvv It'll be a lot of output. Feel free to email it to me if you want. kale@franz.io I have the similar error too. I found the reason. It is because OS message is not encoded in utf-8 (in my case, CP949) On...
2017-02-09T16:27:11
conda/conda
4,627
conda__conda-4627
[ "4608" ]
02ba2cec99e166719085f46cbe96a95a36a8d460
diff --git a/conda/core/index.py b/conda/core/index.py --- a/conda/core/index.py +++ b/conda/core/index.py @@ -345,7 +345,11 @@ def maybe_decompress(filename, resp_content): """) else: - help_message = "An HTTP error occurred when trying to retrieve this URL.\n%r" % e + hel...
error msg instructions: "Please consider posting the following information to the conda GitHub issue tracker at:" https://github.com/conda/conda/issues # brief description * error when running `conda install -c r r-essentials` at `Could not connect to https://repo.continuum.io/pkgs/free/linux-64/pango-1.40.3-1.t...
2017-02-14T06:15:21
conda/conda
4,628
conda__conda-4628
[ "4592", "4592" ]
7f5570e4afb9ae9ddf0a900a54115144f2fe2a38
diff --git a/conda/core/index.py b/conda/core/index.py --- a/conda/core/index.py +++ b/conda/core/index.py @@ -154,7 +154,9 @@ def read_mod_and_etag(path): match_objects = take(3, re.finditer(REPODATA_HEADER_RE, m)) result = dict(map(ensure_unicode, mo.groups()) for mo in match_objects...
BufferError when trying to update conda I get the following error when running the `conda update conda` command. The error message does not seem to provide any hint of what may be wrong. Anyone has a guess of what might be the problem? ``` PS C:\> conda update conda Fetching package metadata ...An unexpected er...
Thanks for the report. Definitely one I haven't seen before. Easy fix though. Thanks for the report. Definitely one I haven't seen before. Easy fix though.
2017-02-14T06:28:29
conda/conda
4,637
conda__conda-4637
[ "4636", "4636" ]
9501f4fde15aad95c7905331a1c48e650ff9824a
diff --git a/conda/base/context.py b/conda/base/context.py --- a/conda/base/context.py +++ b/conda/base/context.py @@ -282,7 +282,7 @@ def envs_dirs(self): @property def pkgs_dirs(self): if self._pkgs_dirs: - return tuple(IndexedSet(self._pkgs_dirs)) + return tuple(IndexedSet(ex...
Condarc `pkgs_dirs` setting does not understand environment variables Tested with Conda 4.3.11 on ubuntu 16.04 and centos 7 The existing `envs_dirs` setting will interpret environment variables (very useful feature). This behavior does not seem to have carried over to the new `pkgs_dirs` option and instead, the env...
2017-02-14T22:23:49
conda/conda
4,647
conda__conda-4647
[ "2384" ]
d5a69ae91e5e2b8e4391cbcaa48e2bf9e52f3c9b
diff --git a/conda/resolve.py b/conda/resolve.py --- a/conda/resolve.py +++ b/conda/resolve.py @@ -875,11 +875,10 @@ def mysat(specs, add_if=False): solution, obj7 = C.minimize(eq_optional_c, solution) log.debug('Package removal metric: %d', obj7) - # Requested packages: maximize ...
Conda is installing unrequested feature This seems to be a regression in `conda` 4.0. I have created two test packages just to check this. They are empty and have just the `meta.yaml`: test-release: ``` yaml package: name: test version: "1.0" build: number: 0 features: ``` test-debug: ``` yaml package: ...
What happens if you use the same build number for both? Then it won't try to install `debug`. It only happens when the build number of the package with the feature is higher. Quick question: you say 4.0, but are you using the latest version (4.0.5), or truly just 4.0? Sorry, it is 4.0.5. I just assumed the regressi...
2017-02-15T15:45:44
conda/conda
4,651
conda__conda-4651
[ "4649", "4649" ]
b583c5534879cb07575bbcc384291d239452b37d
diff --git a/conda/core/index.py b/conda/core/index.py --- a/conda/core/index.py +++ b/conda/core/index.py @@ -591,8 +591,6 @@ def add_http_value_to_dict(resp, http_key, d, dict_key): def create_cache_dir(): - pkgs_dir = PackageCache.first_writable(context.pkgs_dirs).pkgs_dir - assert pkgs_dir == context.pkg...
Package cache error with conda 4.3.12 on win64 Following error occurs when I try to create a new environment with conda 4.3.12 on win64: `$ C:\Program Files\Anaconda3\Scripts\conda-script.py create -p C:\hub\temp\venv python=3.5` Traceback (most recent call last): File "C:\Program Files\Anaconda3\l...
@wulmer Thanks for the report. That `assert` is incorrect, and it was a mistake that it got left in. Can you do me a favor and edit your file C:\Program Files\Anaconda3\lib\site-packages\conda\core\index.py by removing the `assert` on line `596`? See if that fixes your issue... Thanks for using canary btw ...
2017-02-15T19:10:02
conda/conda
4,709
conda__conda-4709
[ "4703" ]
49408ea466a2f632c391521a4991d3bfe3cdf46f
diff --git a/conda/gateways/disk/create.py b/conda/gateways/disk/create.py --- a/conda/gateways/disk/create.py +++ b/conda/gateways/disk/create.py @@ -138,8 +138,8 @@ def make_menu(prefix, file_path, remove=False): log.warn("Environment name starts with underscore '_'. Skipping menu installation.") re...
Error installing ipython When trying to `conda install anaconda` on a Windows NanoServer container I continually get the below error when it tries to install ipython: ``` ERROR conda.core.link:_execute_actions(330): An error occurred while installing package 'defaults::ipython-5.1.0-py36_0'. PathNotFoundException() ...
add `-v -v -v` to your commandline. Yeah I'm not seeing `PathNotFoundException` anywhere in conda code. `-vvv` should help Sorry, should have thought of that myself - I just wanted to post the exception in case it rang a bell. The output from trying to install ipython is available at: https://gist.github.com/dhirsc...
2017-02-23T02:52:44
conda/conda
4,711
conda__conda-4711
[ "4694" ]
49408ea466a2f632c391521a4991d3bfe3cdf46f
diff --git a/conda/models/channel.py b/conda/models/channel.py --- a/conda/models/channel.py +++ b/conda/models/channel.py @@ -3,15 +3,14 @@ from itertools import chain from logging import getLogger -from requests.packages.urllib3.util import Url from ..base.constants import (DEFAULTS_CHANNEL_NAME, DEFAULT_CHANN...
conda navigator install Install attempt on a Windows 10 machine From the command prompt: ``` C:\Users\rbaer>conda install anaconda-navigator An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues ...
This may or may not help: ``` C:\Users\rbaer>anaconda-navigator Traceback (most recent call last): File "C:\Anaconda\Scripts\anaconda-navigator-script.py", line 5, in <module> sys.exit(anaconda_navigator.app.main.main()) File "C:\Anaconda\lib\site-packages\anaconda_navigator\app\main.py", line 47, in main...
2017-02-23T04:20:06
conda/conda
4,729
conda__conda-4729
[ "4247" ]
ddd12b987a7c4745b7eed27c00082021fb0d53a3
diff --git a/conda/exports.py b/conda/exports.py --- a/conda/exports.py +++ b/conda/exports.py @@ -125,3 +125,6 @@ from .gateways.subprocess import ACTIVE_SUBPROCESSES, subprocess_call # NOQA ACTIVE_SUBPROCESSES, subprocess_call = ACTIVE_SUBPROCESSES, subprocess_call + +from .core.repodata import cache_fn_url # N...
cannot import conda.fetch.cache_fn_url I'm using conda 4.3.2, and the function `conda.fetch.cache_fn_url` does not exist anymore. What to do?
`conda.core.index.cache_fn_url` > On Jan 9, 2017, at 6:11 PM, Ilan Schnell <notifications@github.com> wrote: > > I'm using conda 4.3.2, and the function conda.fetch.cache_fn_url does not exist anymore. What to do? > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directl...
2017-02-25T02:34:47
conda/conda
4,774
conda__conda-4774
[ "4757" ]
14dd0efb8e2116ed07d6cca01b8f63f3ac04cb66
diff --git a/conda/common/configuration.py b/conda/common/configuration.py --- a/conda/common/configuration.py +++ b/conda/common/configuration.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals from abc import ABCMeta, abstractmethod -from collections import Map...
diff --git a/tests/common/test_configuration.py b/tests/common/test_configuration.py --- a/tests/common/test_configuration.py +++ b/tests/common/test_configuration.py @@ -7,7 +7,8 @@ from conda.common.compat import odict, string_types from conda.common.configuration import (Configuration, MapParameter, ParameterFlag,...
Error when installing r-essential on windows 7 When I try to install the r-essentials, I get the following error: $ C:\ProgramData\Anaconda3\Scripts\conda-script.py install -c r r-essentials=1.5.2 Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\conda\exceptions.py", line 61...
Latest conda version is 4.3.13. `conda update conda` Thanks. I had an error in the .condarc file. It seems, that the above error occurs when another error message is going to be created. Oh yeah. Syntax errors in yaml configuration files don't go through conda's normal error handler because it hasn't been initiali...
2017-03-01T15:28:01
conda/conda
4,776
conda__conda-4776
[ "4745" ]
efdd81ae9146cbb36c4db6fc18e3db55e6837b95
diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py --- a/conda/core/package_cache.py +++ b/conda/core/package_cache.py @@ -92,7 +92,8 @@ def is_fetched(self): @property def is_extracted(self): - return isdir(self.extracted_package_dir) + epd = self.extracted_package_dir + ...
Conda error while creating anaconda with python2.7 I've Anaconda 3 already installed, now I'm trying to create anaconda with python 2.7 version. But I'm getting below error. Windows 8 `$ C:\Users\Karthick\Anaconda3\Scripts\conda-script.py create -n py27 python=2.7 anaconda` Traceback (most recent c...
`conda clean --packages` should fix your issue. I'm working on a PR to prevent this from happening in general.
2017-03-01T16:45:39
conda/conda
4,789
conda__conda-4789
[ "4788" ]
1ba6d4544529b28f80677b870539d522c095e269
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -811,6 +811,7 @@ def execute(self): target_package_cache[package_cache_entry.dist] = package_cache_entry def reverse(self): + rm_rf(self.target_full_path) ...
CondaError resulting from incorrect path I ran `conda update --all` and got: ``` jessime@jessime-Q502LA:~$ conda update --all Fetching package metadata ......... Solving package specifications: . Package plan for installation in environment /home/jessime/anaconda2: The following NEW packages will be INSTALL...
Try `conda clean --packages`, and then try again. Or just rm -rf /home/jessime/anaconda2/pkgs/pandas-0.19.2-np112py27_1 We've got some UI issues where conda looks to stall and users hit ctrl-c to break out, but conda is really just in the middle of doing real work. Several fixes for this coming... > We've g...
2017-03-03T15:35:02
conda/conda
4,843
conda__conda-4843
[ "4840", "4840" ]
f54e37f97d37cebdbf64304b78bc85356f2fcbe7
diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py --- a/conda/core/package_cache.py +++ b/conda/core/package_cache.py @@ -272,6 +272,9 @@ def _add_entry(__packages_map, pkgs_dir, package_filename): def dedupe_pkgs_dir_contents(pkgs_dir_contents): # if both 'six-1.10.0-py35_0/'...
Conda 4.3.14 crashes on update or install Any attempt to install or update a package, or create an environment causes crash after updating conda to 4.3.14. I used an attempt to downgrade conda to the pervious version that worked to illustrate the crash: ``` $ conda install conda=4.3.13 Fetching package metadata ......
F&(% F&(%
2017-03-09T19:15:01
conda/conda
4,922
conda__conda-4922
[ "4914" ]
57dd56712c0c21f3958951be5e9e5dd1d96e03d0
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -96,7 +96,10 @@ def __init__(self, transaction_context, target_prefix, target_short_path): @property def target_full_path(self): trgt, shrt_pth = self.target_prefi...
Installing rstudio 1.0.44 on root, errors ``` $ conda install rstudio=1.0.44 --json ERROR conda.core.link:_execute_actions(335): An error occurred while installing package 'defaults::rstudio-1.0.44-0'. FileExistsError(17, 'File exists') Attempting to roll back. Traceback (most recent call last): File "/Users/...
@kalefranz any ideas about this? The new rstudio splits pandoc into a separate package while the old one had it bundled. I thought the clobber stuff was turned off now? It is. This is different than clobber. What appears to be happening is that conda for some reason thinks it needs to create a 'bin/pandoc' *dire...
2017-03-23T00:22:31
conda/conda
4,963
conda__conda-4963
[ "4944", "4944" ]
eb2687e7164437421058d592705f37d40bc86b45
diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py --- a/conda/cli/conda_argparse.py +++ b/conda/cli/conda_argparse.py @@ -10,14 +10,11 @@ import os import subprocess import sys -from difflib import get_close_matches from .common import add_parser_help from .find_commands import find_commands...
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -1,6 +1,8 @@ import json from unittest import TestCase +from conda.common.compat import on_win + from conda import text_type from conda._vendor.auxlib.ish import dals from conda.base....
Error in CommandNotFoundError Commit 809532b7cc5ec1ea18f1aa565025d7c5599185b3 has broken the class CommandNotFoundError. Examples to trigger both code paths calling CommandNotFoundError(): ``` (root) [root@d4cb01a1b5b6 ~]# conda activate Traceback (most recent call last): File "/conda/bin/conda", line 6, in <mo...
@nehaljwani thanks I will work on this one I have the exact same problem. ---------------------------------------------------------------------------------------------------- In [24]: conda -unknown unknown An unexpected error has occurred. Please consider posting the following information to the conda GitHub is...
2017-03-29T14:00:49
conda/conda
4,990
conda__conda-4990
[ "4969" ]
19b5182e4bbd587a241e6177470290b4fd804aac
diff --git a/conda/cli/install.py b/conda/cli/install.py --- a/conda/cli/install.py +++ b/conda/cli/install.py @@ -54,7 +54,7 @@ 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): - rai...
Error in DirectoryNotFoundError Commit 1f430607 has broken the class DirectoryNotFoundError. Example to trigger the code path calling DirectoryNotFoundError(): (root) [root@833f44c1b4d6 ~]# conda create -n starlord --clone /path/to/vanishing/point Current conda install: platform : linux-64 ...
Thanks Nehal. @tyler-thetyrant Can you take this one? @kalefranz Yup. Looking into it.
2017-04-03T20:36:41
conda/conda
5,009
conda__conda-5009
[ "5006" ]
df18f9fa4b95c31435f2751a0a5de365cb20c5d3
diff --git a/conda/cli/help.py b/conda/cli/help.py --- a/conda/cli/help.py +++ b/conda/cli/help.py @@ -35,7 +35,7 @@ def root_read_only(command, prefix, json=False): # then make changes to it. # This may be done using the command: # -# $ conda create -n my_${name} --clone=${prefix} +# $ conda create -n my_${name} --...
When lacking permissions to write, clone message should quote prefix. When trying to install a new package into a location that the user lacks write permissions (read-only root), conda helpfully suggests cloning the environment into a new location: ``` CondaIOError: IO error: Missing write permissions in: C:\Progra...
2017-04-06T04:48:42
conda/conda
5,010
conda__conda-5010
[ "5001" ]
0d33c605c75d53346055ba40fcda024d3172494e
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -22,8 +22,7 @@ from ..exceptions import CondaUpgradeError, CondaVerificationError, PaddingError from ..gateways.disk.create import (compile_pyc, create_hard_link_or_copy, create_li...
noarch python entry points created by conda differ than those created by conda-build The entry point scripts which are created by conda for `noarch: python` packages differ slightly from those created for standard packages by conda-build. The templates for the scripts are: [conda](https://github.com/conda/conda/blo...
pip seems to use the following [template](https://github.com/pypa/pip/blob/9.0.1/pip/wheel.py#L414-L423) for entry points (at least when installing wheels): ``` python maker.script_template = """# -*- coding: utf-8 -*- import re import sys from %(module)s import %(import_name)s if __name__ == '__main__': ...
2017-04-06T11:16:36
conda/conda
5,011
conda__conda-5011
[ "4998" ]
fa0393fd6821fb0b2246bb29a82a7333e752c097
diff --git a/conda/cli/install.py b/conda/cli/install.py --- a/conda/cli/install.py +++ b/conda/cli/install.py @@ -300,7 +300,7 @@ def install(args, parser, command='install'): if pinned_specs: path = join(prefix, 'conda-meta', 'pinned') error_message.append("\n\nNote that...
`conda install` on missing packages tracebacks if multiline pinned file exists If you attempt to install a non-existent package into an environment with a pinned file containing more than one entry, conda will traceback. Here's an example `pinned` file: ``` pip ==9.0.1 requests ==2.13.0 ``` Subsequently, `cond...
2017-04-06T11:34:29
conda/conda
5,018
conda__conda-5018
[ "5017" ]
1fb7c3b49b005463f56eaeff8c9970e42fa8d576
diff --git a/conda/models/index_record.py b/conda/models/index_record.py --- a/conda/models/index_record.py +++ b/conda/models/index_record.py @@ -99,6 +99,7 @@ class IndexRecord(DictSafeMixin, Entity): requires = ListField(string_types, required=False) size = IntegerField(required=False) subdir = String...
add timestamp metadata for tiebreaking conda-build 3 hashed packages
2017-04-06T18:34:35
conda/conda
5,030
conda__conda-5030
[ "5034" ]
7f96c658ab06a49d55ee7042d5d30e06fdcd3bc6
diff --git a/conda/base/context.py b/conda/base/context.py --- a/conda/base/context.py +++ b/conda/base/context.py @@ -93,6 +93,7 @@ class Context(Configuration): string_delimiter=os.pathsep) _pkgs_dirs = SequenceParameter(string_types, aliases=('pkgs_dirs',)) _subdir = Pri...
diff --git a/tests/base/test_context.py b/tests/base/test_context.py --- a/tests/base/test_context.py +++ b/tests/base/test_context.py @@ -24,7 +24,7 @@ from unittest import TestCase -class ContextTests(TestCase): +class ContextCustomRcTests(TestCase): def setUp(self): string = dals(""" @@ -171,3 +...
add subdirs configuration parameter As a beta and undocumented feature for future use, add a configurable subdirs parameter.
2017-04-10T17:06:10
conda/conda
5,091
conda__conda-5091
[ "5055" ]
ec9c9999ea57d3351d5c5c688baacc982c3daee2
diff --git a/conda/core/repodata.py b/conda/core/repodata.py --- a/conda/core/repodata.py +++ b/conda/core/repodata.py @@ -265,7 +265,8 @@ def maybe_decompress(filename, resp_content): If the remote site is anaconda.org or follows the Anaconda Server API, you will need to - ...
Unable to install package from anaconda.org Despite successfully logging in, I am unable to install a package from anaconda.org. Why do I need to be "authorized" to install from a public repo? Here's a session: > (anaconda) src% conda install -c pydanny cookiecutter > Fetching package metadata ... > > CondaHT...
Here's some verbose output. > (anaconda) src% conda install --verbose -c pydanny cookiecutter > 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 > > > >...
2017-04-21T05:43:19
conda/conda
5,092
conda__conda-5092
[ "5033" ]
ec9c9999ea57d3351d5c5c688baacc982c3daee2
diff --git a/conda/common/signals.py b/conda/common/signals.py --- a/conda/common/signals.py +++ b/conda/common/signals.py @@ -43,6 +43,8 @@ def signal_handler(handler): try: yield finally: + standard_handlers = signal.SIG_IGN, signal.SIG_DFL for sig, previous_handler in previous_hand...
conda.common.signals.signal_handler throwing exceptions on travis The conda.common.signals.signal_handler context manager [introduced in 4.3.14](https://github.com/conda/conda/compare/4.3.13...4.3.14#diff-1ce3aba0f5b5277dc9830e6671cab0f1R35) is causing my travis conda build to fail in the midst of a `conda build` comma...
Stacktrace from CI is ``` Traceback (most recent call last): File "/home/travis/miniconda/bin/conda-build", line 6, in <module> sys.exit(conda_build.cli.main_build.main()) File "/home/travis/miniconda/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 334, in main execute(sys.argv[1:])...
2017-04-21T05:55:24
conda/conda
5,093
conda__conda-5093
[ "5028" ]
ec9c9999ea57d3351d5c5c688baacc982c3daee2
diff --git a/conda/cli/main_list.py b/conda/cli/main_list.py --- a/conda/cli/main_list.py +++ b/conda/cli/main_list.py @@ -11,15 +11,6 @@ from os.path import isdir, isfile import re -from .common import (add_parser_help, add_parser_json, add_parser_prefix, - add_parser_show_channel_urls, disp_fe...
unexpected issue Uncaught Exception: Error: Conda command "info" failed: command: conda info,--json output: An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues `$ /Users/tasalta/anaconda/bin/co...
2017-04-21T06:28:28
conda/conda
5,096
conda__conda-5096
[ "5073" ]
1ac0dab62399c71aa38d1d7db0576af14e4e1079
diff --git a/conda/base/context.py b/conda/base/context.py --- a/conda/base/context.py +++ b/conda/base/context.py @@ -103,8 +103,10 @@ class Context(Configuration): # remote connection details ssl_verify = PrimitiveParameter(True, element_type=string_types + (bool,), vali...
OpenSSL.SSL.Error while creating new environment Hi, I am trying to create a new conda environment but getting the following error: `$ /opt/external/conda/bin/conda env create -n aaa -vvv Fetching package metadata ...An unexpected error has occurred. Please consider posting the following information to the conda...
@przemolb Do you have the environment variable `REQUESTS_CA_BUNDLE` set? What is the output for: ``` env | grep -i CA_BUNDLE ``` If it is set, make sure that the file which is present in the value, exists, and is up to date, otherwise unset this environment variable by typing: ``` unset REQUESTS_CA_BUNDLE ``` A...
2017-04-21T15:36:21
conda/conda
5,098
conda__conda-5098
[ "4671" ]
daf34a6925dadf0a091f38a834780731db26ccdd
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -6,14 +6,16 @@ import json from logging import getLogger from os.path import dirname, join +from random import random import re +from time import sleep from .linked_data impor...
Conflict with package, which just has been built @marscher commented on [Fri Feb 17 2017](https://github.com/conda/conda-build/issues/1748) The build phase succeeded, but when the test phase tries to create the environment a conflict is raised containing only the actual package, which just has been built. I've checked...
cc @mcg1969 - any tips on getting better hints here? I'm afraid we just need to keep working on improving the conflict hints. I'm not sure I have any short-term advice. It's really an extended R&D struggle. I know that there has been some effort before to create better hints: https://github.com/rmcgibbo/conda-hint But...
2017-04-21T16:19:20
conda/conda
5,103
conda__conda-5103
[ "4849", "4849" ]
58b12f4949fb50c1890a810942660982153af440
diff --git a/conda/plan.py b/conda/plan.py --- a/conda/plan.py +++ b/conda/plan.py @@ -467,7 +467,6 @@ def install_actions_list(prefix, index, specs, force=False, only_names=None, alw channel_priority_map=None, is_update=False): # type: (str, Dict[Dist, Record], List[str], bool, Option[Li...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -925,13 +925,16 @@ def test_install_mkdir(self): try: prefix = make_temp_prefix() assert isdir(prefix) - run_command(Commands.INSTALL, prefix, "python=3.5", "--...
Version constraint ignored depending on order of args to `conda create` (4.3.13) All of these command lines should resolve `python=2.7.12` I think but some choose `python=2.7.13`. To reproduce I have to use both a certain package (python-dateutil) along with python, and put the packages in a certain order (python-date...
2017-04-21T20:12:25
conda/conda
5,107
conda__conda-5107
[ "5102", "5102" ]
1985160dac27c4c05d079015e65a8b63141b87aa
diff --git a/conda/base/context.py b/conda/base/context.py --- a/conda/base/context.py +++ b/conda/base/context.py @@ -107,7 +107,7 @@ class Context(Configuration): element_type=string_types + (NoneType,)) client_ssl_cert_key = PrimitiveParameter(None, aliases=('client_cer...
diff --git a/tests/base/test_context.py b/tests/base/test_context.py --- a/tests/base/test_context.py +++ b/tests/base/test_context.py @@ -45,6 +45,13 @@ def setUp(self): channel_alias: ftp://new.url:8082 conda-build: root-dir: /some/test/path + proxy_servers: + http: http:/...
Bad interpreation of null in proxy_servers section in .condarc since ver. 4.2.13 Upon upgrade to conda to version 4.2.13 the following settings in .condarc, which were meant to unset any http_proxy or https_proxy variables no longer work; result in HTTP error. ``` proxy_servers: # Unset proxies so we can defin...
Sounds similar to what @nehaljwani fixed in https://github.com/conda/conda/pull/5096 Sounds similar to what @nehaljwani fixed in https://github.com/conda/conda/pull/5096
2017-04-22T03:42:45
conda/conda
5,112
conda__conda-5112
[ "5111", "5111" ]
c6f06c91f984b6b0dea4839b93f613aa821d9488
diff --git a/conda/_vendor/auxlib/type_coercion.py b/conda/_vendor/auxlib/type_coercion.py --- a/conda/_vendor/auxlib/type_coercion.py +++ b/conda/_vendor/auxlib/type_coercion.py @@ -231,8 +231,8 @@ def typify(value, type_hint=None): elif not (type_hint - (STRING_TYPES_SET | {bool})): return booli...
diff --git a/tests/base/test_context.py b/tests/base/test_context.py --- a/tests/base/test_context.py +++ b/tests/base/test_context.py @@ -170,7 +170,7 @@ def test_proxy_servers(self): assert context.proxy_servers['ftp'] is None assert context.proxy_servers['sftp'] == '' assert context.proxy_...
typify for str + NoneType is wrong https://github.com/conda/conda/pull/5107#issuecomment-296356913 It still seems to me as if `typify()` is doing something wrong: ```python >>> from conda._vendor.auxlib.configuration import typify >>> typify('false', str) 'false' >>> typify('false', (str, type(None))) 'False' ...
2017-04-22T09:13:49
conda/conda
5,122
conda__conda-5122
[ "4671" ]
e060ffcacba7481bfd8ce2b0a865669977178d2b
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -172,7 +172,6 @@ def source_full_path(self): class LinkPathAction(CreateInPrefixPathAction): - _verify_max_backoff_reached = False @classmethod def create_file_li...
Conflict with package, which just has been built @marscher commented on [Fri Feb 17 2017](https://github.com/conda/conda-build/issues/1748) The build phase succeeded, but when the test phase tries to create the environment a conflict is raised containing only the actual package, which just has been built. I've checked...
cc @mcg1969 - any tips on getting better hints here? I'm afraid we just need to keep working on improving the conflict hints. I'm not sure I have any short-term advice. It's really an extended R&D struggle. I know that there has been some effort before to create better hints: https://github.com/rmcgibbo/conda-hint But...
2017-04-23T01:05:09
conda/conda
5,124
conda__conda-5124
[ "5123", "5123" ]
e50cdeeb33ff93a946e3be6d4a7a60d6939c891a
diff --git a/conda/exports.py b/conda/exports.py --- a/conda/exports.py +++ b/conda/exports.py @@ -30,6 +30,9 @@ from .gateways.connection import CondaSession # NOQA CondaSession = CondaSession +from .common.toposort import _toposort +_toposort = _toposort + from .gateways.disk.link import lchmod # NOQA lchmod ...
export toposort for conda-build export toposort for conda-build
2017-04-23T03:23:17
conda/conda
5,133
conda__conda-5133
[ "5132", "5132" ]
1f519f31581aa570f911805c1d8121d6b3857fe2
diff --git a/conda/common/signals.py b/conda/common/signals.py --- a/conda/common/signals.py +++ b/conda/common/signals.py @@ -4,6 +4,7 @@ from contextlib import contextmanager from logging import getLogger import signal +import threading from .compat import iteritems @@ -17,7 +18,6 @@ 'SIGBREAK', ) - ...
signal handler can only be used in main thread Often get these with conda-build tests https://travis-ci.org/conda/conda/jobs/225296134#L1380 ``` 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, inde...
2017-04-24T18:56:37
conda/conda
5,148
conda__conda-5148
[ "5078" ]
26321390415b8d87aa2f2a356a9b717bbef04276
diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py --- a/conda/core/package_cache.py +++ b/conda/core/package_cache.py @@ -410,6 +410,7 @@ def make_actions_for_dist(dist, record): source_full_path=pc_entry_writable_cache.package_tarball_full_path, target_pkgs_dir=pc...
Add repodata information to extracted package directory Immediately following the extraction of a package tarball, add the repodata information for the package to the `info` directory within the extracted package directory. Put this information in a new file `info/external.json`. Or maybe `info/post_extract.json`. O...
Out of curiosity, is this required for making `conda info $package` faster? I don't think it'll affect `conda info package`. That requires downloading repodata, and the round trip http time there, even for 304 responses, is noticeable and what slows things down. At some point we need to make those repodata fetch call...
2017-04-25T21:57:38
conda/conda
5,157
conda__conda-5157
[ "5160" ]
ca57ef2a1ac70355d1aeb58ddc2da78f655c4fbc
diff --git a/conda/activate.py b/conda/activate.py --- a/conda/activate.py +++ b/conda/activate.py @@ -6,6 +6,7 @@ from os.path import abspath, basename, dirname, expanduser, expandvars, isdir, join import re import sys +from tempfile import NamedTemporaryFile try: from cytoolz.itertoolz import concatv @@ -3...
diff --git a/tests/test_activate.py b/tests/test_activate.py --- a/tests/test_activate.py +++ b/tests/test_activate.py @@ -3,10 +3,13 @@ from logging import getLogger import os -from os.path import join +from os.path import join, isdir import sys +from tempfile import gettempdir from unittest import TestCase +fro...
conda xontrib xonsh wrapper Make a wrapper for xonsh.
2017-04-27T01:31:36
conda/conda
5,159
conda__conda-5159
[ "3580" ]
ca57ef2a1ac70355d1aeb58ddc2da78f655c4fbc
diff --git a/conda/activate.py b/conda/activate.py --- a/conda/activate.py +++ b/conda/activate.py @@ -110,10 +110,13 @@ def build_activate(self, name_or_prefix): # query environment old_conda_shlvl = int(os.getenv('CONDA_SHLVL', 0)) old_conda_prefix = os.getenv('CONDA_PREFIX') + max_s...
Allow activating multiple environments Hi, I'm trying to configure conda to use it on a computing cluster with command line access for multiple users (~300 accounts). The idea is that we will provide to users some preinstalled conda environments that they can use as they need. Some people will want to activate several...
So, if I understand correctly, you're proposing that it be possible to activate more than one environment at a time by removing the deactivate step from the activate script. Then you would add an option to deactivate that would allow it to deactivate all the previously activated environments. Is that right? Activati...
2017-04-27T02:42:43
conda/conda
5,166
conda__conda-5166
[ "5152" ]
340600b231abae4060f946dfaaa84fffa71013d4
diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py --- a/conda/cli/main_info.py +++ b/conda/cli/main_info.py @@ -248,12 +248,14 @@ def get_info_dict(system=False): def get_main_info_str(info_dict): + from .._vendor.auxlib.ish import dals + for key in 'pkgs_dirs', 'envs_dirs', 'channels': ...
conda info in 4.3.17 has a spacing offset problem ``` $ ❯ /conda4/bin/conda info Current conda install: platform : osx-64 conda version : 4.3.17 conda is private : False conda-env version : 4.3.17 conda-build version : 2.1.9 python...
2017-04-27T16:56:42
conda/conda
5,186
conda__conda-5186
[ "5184", "5184" ]
2e97c19d63b0ec3c075ed5d706032b891222ec2d
diff --git a/conda/common/configuration.py b/conda/common/configuration.py --- a/conda/common/configuration.py +++ b/conda/common/configuration.py @@ -105,7 +105,7 @@ def __init__(self, parameter_name, parameter_value, source, wrong_type, valid_ty self.valid_types = valid_types if msg is None: ...
diff --git a/tests/common/test_configuration.py b/tests/common/test_configuration.py --- a/tests/common/test_configuration.py +++ b/tests/common/test_configuration.py @@ -424,7 +424,11 @@ def test_config_resets(self): assert config.changeps1 is False def test_empty_map_parameter(self): - co...
"conda" install or update throwing AttributeError: 'str' object has no attribute items I've installed the last version of Anaconda3 with Python 3.6, which has the "conda" command version 4.3.14 on a Windows 7 without administrator rights to my account, but I could successfully install Anaconda in my <user>\appdata\loca...
@srodriguex Could you please share the output for `conda info -a`? @nehaljwani Here you go: ``` C:\Users\<username>>conda info -a Current conda install: platform : win-64 conda version : 4.3.14 conda is private : False conda-env version : 4.3.14 conda-build version ...
2017-04-28T20:40:21
conda/conda
5,190
conda__conda-5190
[ "5125" ]
2e97c19d63b0ec3c075ed5d706032b891222ec2d
diff --git a/conda/base/constants.py b/conda/base/constants.py --- a/conda/base/constants.py +++ b/conda/base/constants.py @@ -52,6 +52,7 @@ "linux-ppc64le", "linux-armv6l", "linux-armv7l", + "linux-aarch64", ...
Incorrectly detected arch on aarch64 As per the title, conda currently only knows about the usual x86, x86_64 and armv7l architectures. Since aarch64 systems are compatible with armhf binaries, conda just needs to alias 'aarch64' to 'armv7l'. The only hitch involved in approaching the problem via such an alias is th...
2017-04-28T21:19:32
conda/conda
5,192
conda__conda-5192
[ "5189", "5189" ]
b4aae214af25845ac0f68da8e40f1d33c1dcd5ad
diff --git a/conda/common/configuration.py b/conda/common/configuration.py --- a/conda/common/configuration.py +++ b/conda/common/configuration.py @@ -572,7 +572,12 @@ def collect_errors(self, instance, value, source="<<merged>>"): def _merge(self, matches): # get matches up to and including first importa...
diff --git a/tests/common/test_configuration.py b/tests/common/test_configuration.py --- a/tests/common/test_configuration.py +++ b/tests/common/test_configuration.py @@ -432,3 +432,9 @@ def test_invalid_map_parameter(self): config = SampleConfiguration()._set_raw_data(data) with raises(InvalidTypeErr...
Improve error message on invalid SequenceParameter For a malformed configuration parameter of type sequence: ``` (test) [hulk@ranganork conda]# cat ~/.condarc channels: defaults ``` The following shows the expected error: ``` (test) [hulk@ranganork conda]# conda config --validate InvalidTypeError: Paramet...
Similar to #5184 Do you want to tackle this one @nehaljwani? Similar to #5184 Do you want to tackle this one @nehaljwani?
2017-04-29T05:42:46
conda/conda
5,200
conda__conda-5200
[ "3470", "3470" ]
3beff3b3cb8c6ca3661a3364e77c614d1ec623e0
diff --git a/conda/__init__.py b/conda/__init__.py --- a/conda/__init__.py +++ b/conda/__init__.py @@ -41,7 +41,7 @@ def __init__(self, message, caused_by=None, **kwargs): super(CondaError, self).__init__(message) def __repr__(self): - return '%s: %s\n' % (self.__class__.__name__, text_type(self)...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -1104,7 +1104,7 @@ def test_remove_spellcheck(self): run_command(Commands.REMOVE, prefix, 'numpi') exc_string = '%r' % exc.value - assert exc_string == "PackageNot...
Whitespace in error messages I started creating an environment then cancelled it. The error messages for the later commands have some extra vertical whitespace. Also, the "CondaValueError" part and "Value Error" parts seem like they shouldn't be included in the terminal output. ``` $conda create -n dot2tex python=2.7 ...
Another error message issue (should be printed not as an exception): ``` ncurses-5.9-9. 100% |##############################################################################################################| Time: 0:00:10 94.92 kB/s An unexpected error has occurred.########################################### ...
2017-05-01T22:15:36
conda/conda
5,201
conda__conda-5201
[ "1597", "1597" ]
568c5397eaa1b25f552a5c8ca8bcade93e5da309
diff --git a/conda/base/context.py b/conda/base/context.py --- a/conda/base/context.py +++ b/conda/base/context.py @@ -136,6 +136,7 @@ class Context(Configuration): always_yes = PrimitiveParameter(False, aliases=('yes',)) channel_priority = PrimitiveParameter(True) debug = PrimitiveParameter(False) + ...
conda install --dry-run with certain options will really install I just executed: ``` bash sudo -u wakari /opt/wakari/anaconda/bin/conda install --no-deps --offline -p /opt/wakari/anaconda --dry-run `cat ~/.py27_packages.txt` ``` And this command then went and installed the packages. This might be related to #1317...
I just tested this out and with conda 4.3.16 this issue is resolved: ``` $ conda install --no-deps --offline -p /tmp/test --dry-run `cat test.txt` Fetching package metadata ............... Solving package specifications: . Package plan for installation in environment /tmp/test: The following NEW packages ...
2017-05-01T22:52:04
conda/conda
5,206
conda__conda-5206
[ "4468" ]
e865d1fffed1e3e5076a7419d7fbb88d44359894
diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py --- a/conda/cli/main_info.py +++ b/conda/cli/main_info.py @@ -350,6 +350,8 @@ def execute(args, parser): WARNING: could not import _license.show_info # try: # $ conda install -n root _license""") + except Exception as e: + log.warn('%r', ...
"conda info -a" returns an exception, possibly during license file parsing I don't know what to make of this but I have a pretty conventional Anaconda + Conda setup. I have an "almost" virigin Anaconda 4.2 installation (just installed a few days ago), and I've updated Conda to the latest version. And I get an excepti...
2017-05-02T06:09:03
conda/conda
5,216
conda__conda-5216
[ "5214", "5214" ]
36e23ad6ce450ed4df587d5b29957f6e91683e64
diff --git a/conda/cli/install.py b/conda/cli/install.py --- a/conda/cli/install.py +++ b/conda/cli/install.py @@ -311,20 +311,20 @@ def install(args, parser, command='install'): raise CondaImportError(text_type(e)) raise - if not context.json: - if any(nothing_to_do(actions) for actio...
conda install with multiple (more than one) packages fails to list packages Observe: ``` >conda install pyqt Fetching package metadata ........... Solving package specifications: . # All requested packages already installed. # packages in environment at C:\Users\heath.raftery\AppData\Local\Continuum\Anaconda3...
What version of Conda are you using? This does not happen in the recent versions of conda. `conda update conda` will update your conda to most recent version. ``` conda install nltk qtpy Fetching package metadata ........... Solving package specifications: . Package plan for installation in environment /Us...
2017-05-04T04:49:55
conda/conda
5,221
conda__conda-5221
[ "5207" ]
052a5e7355297db55e49b39957b5f7e4114ce223
diff --git a/conda/models/channel.py b/conda/models/channel.py --- a/conda/models/channel.py +++ b/conda/models/channel.py @@ -410,14 +410,12 @@ def prioritize_channels(channels, with_credentials=True, subdirs=None): # number as the value # ('https://conda.anaconda.org/conda-forge/osx-64/', ('conda-forge', ...
diff --git a/tests/models/test_channel.py b/tests/models/test_channel.py --- a/tests/models/test_channel.py +++ b/tests/models/test_channel.py @@ -789,11 +789,11 @@ def test_env_var_file_urls(self): prioritized = prioritize_channels(new_context.channels) assert prioritized == OrderedDict(( ...
Lower version platform pkgs preferred to newer noarch. 4.3.17 regression With `conda 4.3.17` the solver prefers ~~Windows~~ platform-specific packages over `noarch` even if the `noarch` version has a higher version number. This ~~is not observable on a Linux and also~~ works fine ~~on Windows~~ for `conda 4.3.16`. See...
Scratch that about being Windows-specific -- I accidentally didn't really update to `conda 4.3.17` on Linux. Now with properly updated to `4.3.17` the same behavior is shown on Linux too. I see #5030 introduced this. As I understand this, after #5030 the platform-specific and `noarch` directory in effect get treated a...
2017-05-04T15:53:58
conda/conda
5,226
conda__conda-5226
[ "4224" ]
534824e1083df9a7df2fc2b84464965991c44caf
diff --git a/conda/core/path_actions.py b/conda/core/path_actions.py --- a/conda/core/path_actions.py +++ b/conda/core/path_actions.py @@ -221,7 +221,7 @@ def verify(self): # with max_retries = 2, max total time ~= 0.4 sec # with max_retries = 6, max total time ~= 6.5 sec count = ...
Can not create a new conda environment/clean conda I have just installed anaconda 4.2.0 on my system Ubuntu 16.04. As the default version of python is 3.5.2, i tried to create a new environment for Python 2.7 but it was impossible. I then tried to clean conda but this issue occured: Current conda install: ...
@vovanhuy Could you please share the output for: `env | grep -i proxy` I suspect that you are behind a (corporate?) http(s?)-proxy, but you have accidentally also added it as a socks proxy in the network configuration in Ubuntu, which also creates the environment variable: SOCKS_PROXY Yes, you are right. I added pr...
2017-05-04T20:51:27
conda/conda
5,228
conda__conda-5228
[ "4987", "4987" ]
194d2ee2251dc07a7d4b71c5ea26f6a0e9215dc0
diff --git a/conda/cli/install.py b/conda/cli/install.py --- a/conda/cli/install.py +++ b/conda/cli/install.py @@ -10,7 +10,6 @@ import logging import os from os.path import abspath, basename, exists, isdir, join -import re from . import common from .._vendor.auxlib.ish import dals @@ -321,10 +320,7 @@ def insta...
change results from conda update --all I run my conda update commands in a script and have to wade through the entire list of installed packages to see results. Is it possible to default the results from the update command to `# All requested packages already installed.` without the list? Thanks change results from...
2017-05-05T00:17:06
conda/conda
5,231
conda__conda-5231
[ "3489" ]
194d2ee2251dc07a7d4b71c5ea26f6a0e9215dc0
diff --git a/conda/cli/main_remove.py b/conda/cli/main_remove.py --- a/conda/cli/main_remove.py +++ b/conda/cli/main_remove.py @@ -9,7 +9,7 @@ from argparse import RawDescriptionHelpFormatter from collections import defaultdict import logging -from os.path import abspath, join +from os.path import abspath, join, isd...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -1126,6 +1126,9 @@ def test_force_remove(self): stdout, stderr = run_command(Commands.REMOVE, prefix, "flask") assert not package_is_installed(prefix, "flask-") + # regres...
conda remove --all behavior changed in 4.2.7 `conda remove --all` used to remove an environment if it existed, and quietly succeed if it was already gone. Now this command fails when the environment does not exist. This makes something formerly easy to do in an automated way now difficult especially in a cross-platform...
Still exists in conda 4.3.x ``` kfranz@0283:~/continuum/conda *4.3.x ❯ python -m conda remove --all -n flub CondaEnvironmentNotFoundError: Could not find environment: flub . You can list all discoverable environments with `conda info --envs`. ``` I hate that we didn't get to this sooner. At this point, I...
2017-05-05T01:05:19
conda/conda
5,232
conda__conda-5232
[ "598" ]
0eddaa3089822cec0394b69b3c6a9ac294afafef
diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py --- a/conda/cli/main_config.py +++ b/conda/cli/main_config.py @@ -423,8 +423,12 @@ def clean_element_type(element_types): # config.rc_keys if not args.get: - with open(rc_path, 'w') as rc: - rc.write(yaml_dump(rc_config)) + ...
conda config stack trace when can't write config file This situation should be handled nicer. `conda config` doesn't have permission to write the config file. Thanks. ``` An unexpected error has occurred, please consider sending the following traceback to the conda GitHub issue tracker at: https://github.com/c...
2017-05-05T02:31:42
conda/conda
5,236
conda__conda-5236
[ "4960" ]
8807d9c06470d6262d986f330b10f610f4d95e12
diff --git a/conda/__init__.py b/conda/__init__.py --- a/conda/__init__.py +++ b/conda/__init__.py @@ -44,7 +44,19 @@ def __repr__(self): return '%s: %s' % (self.__class__.__name__, text_type(self)) def __str__(self): - return text_type(self.message % self._kwargs) + try: + retu...
An unexpected error has occurred. Current conda install: platform : win-64 conda version : 4.3.11 conda is private : False conda-env version : 4.3.11 conda-build version : 2.0.2 python version : 2.7.12.final.0 requests version : 2.13.0 root envi...
Do you face the same error with Conda v4.3.14? Could you please attach output for: ``` I:\Program Files\Anaconda2\Scripts\conda-script.py install numpy -vvv ```
2017-05-05T15:30:58
conda/conda
5,239
conda__conda-5239
[ "4974" ]
8807d9c06470d6262d986f330b10f610f4d95e12
diff --git a/conda/core/link.py b/conda/core/link.py --- a/conda/core/link.py +++ b/conda/core/link.py @@ -104,8 +104,9 @@ class UnlinkLinkTransaction(object): @classmethod def create_from_dists(cls, index, target_prefix, unlink_dists, link_dists): # This constructor method helps to patch into the 'p...
condo update --all 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.15 conda is private : False conda-env version : 4.3.15 ...
Can someone tell me what happened above that I couldn't update all packages with conda update --all Hi @laacdm could you run the command in verbose mode and attach a .txt file with the whole output? `$ /Users/luisaalanizcastillo/anaconda/bin/conda update --all -v -v -v`
2017-05-05T16:13:48
conda/conda
5,241
conda__conda-5241
[ "4151" ]
c2136f17e0fdd693e73d035c08742ad995654ab2
diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py --- a/conda/cli/main_info.py +++ b/conda/cli/main_info.py @@ -223,7 +223,10 @@ def get_info_dict(system=False): user_agent=user_agent, conda_location=CONDA_PACKAGE_ROOT, ) - if not on_win: + if on_win: + from ..common.platf...
conda info to show a bit more about operating system There is some general architecture and bit-width information in the `conda info` output but it would be really handy for debugging if we provided a few more hints that would allow someone looking at the output to make a good guess as to: * Windows version (7, 8, 1...
4.3.x conda info OSX ``` kfranz@0283:~/continuum/conda *4.3.x ❯ python -m conda info Current conda install: platform : osx-64 conda version : 4.3.17.post60+8807d9c06 conda is private : False conda-env version : 4.3.17.post60+8807d9c06 conda-build version : 2.1.10...
2017-05-05T17:31:23
conda/conda
5,249
conda__conda-5249
[ "4516" ]
6fc7a5fbe41d36103b8d7d0bb8df3162d7a9e45a
diff --git a/conda/core/package_cache.py b/conda/core/package_cache.py --- a/conda/core/package_cache.py +++ b/conda/core/package_cache.py @@ -262,6 +262,8 @@ def _add_entry(__packages_map, pkgs_dir, package_filename): if not package_filename.endswith(CONDA_TARBALL_EXTENSION): package_file...
Conda package update error Hi, I am having this error while trying to upgrade scikit-learn package: ``` $ conda update scikit-learn Fetching package metadata ......... Solving package specifications: . Package plan for installation in environment /Users/ivan/anaconda: The following packages will be UPDATED:...
By the way I have a similar error anytime I invoke conda: ``` [ivan@mbp ~]$ conda upgrade conda Fetching package metadata ......... Solving package specifications: . Package plan for installation in environment /Users/ivan/anaconda: The following packages will be UPDATED: conda: 4.3.4-py27_0 --> 4.3.16...
2017-05-08T14:28:20
conda/conda
5,250
conda__conda-5250
[ "5242" ]
6fc7a5fbe41d36103b8d7d0bb8df3162d7a9e45a
diff --git a/conda/gateways/disk/create.py b/conda/gateways/disk/create.py --- a/conda/gateways/disk/create.py +++ b/conda/gateways/disk/create.py @@ -200,6 +200,7 @@ def _do_softlink(src, dst): # A future optimization will be to copy code from @mingwandroid's virtualenv patch. _do_copy(src, dst) ...
Argument `--copy` seems to be ignoring when create environment Hello! For several month ago when I created new environment, for example ``` conda create -p E:\JN\dist\pyenv36-win64 --copy python=3 ``` I got a list of packages to be installed and see `(copy)` and the end of each line: ``` The following NEW pa...
I use conda 4.3.17 from canary channel. ``` $ conda info Current conda install: platform : win-64 conda version : 4.3.17 conda is private : False conda-env version : 4.3.17 conda-build version : not installed python version : 3....
2017-05-08T14:42:30
conda/conda
5,252
conda__conda-5252
[ "1509" ]
d2743a31026824c0b53c225941560936bd886970
diff --git a/conda/core/link.py b/conda/core/link.py --- a/conda/core/link.py +++ b/conda/core/link.py @@ -691,7 +691,7 @@ def run_script(prefix, dist, action='post-link', env_prefix=None): log.info("failed to run %s for %s due to COMSPEC KeyError", action, dist) return False else: - ...
Replace /bin/bash with /usr/bin/env bash Currently `conda` hardcodes `#!/bin/bash`. If instead `#!/usr/bin/env bash` would be used, then the version of the current environment would be used. I'm attempting to package `conda` at the moment for an OS where `#!/bin/bash` is unavailable, but `#!/usr/bin/env bash` does wor...
What exactly do you mean when say "`conda` hardcodes `#!/bin/bash`? Do you mean the Miniconda installer? Installing packages on a system where `#!/bin/bash` isn't available but `#!/usr/bin/env bash` is doesn't work because of: https://github.com/conda/conda/blob/master/conda/install.py#L339 The same applies for many...
2017-05-08T16:29:12
conda/conda
5,259
conda__conda-5259
[ "5258" ]
bd628e251e024b9574dd2634b6ce47fba5bdcc95
diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py --- a/conda/cli/main_config.py +++ b/conda/cli/main_config.py @@ -279,22 +279,16 @@ def execute_config(args, parser): sort_keys=True, indent=2, separators=(',', ': '), cls=EntityEncoder)) ...
conda config --describe reports elements types as str for everything
2017-05-09T07:41:00
conda/conda
5,261
conda__conda-5261
[ "4911", "4911" ]
01996fe9e596e2ad5e9d75474d092104b90b6993
diff --git a/conda/gateways/disk/create.py b/conda/gateways/disk/create.py --- a/conda/gateways/disk/create.py +++ b/conda/gateways/disk/create.py @@ -8,7 +8,7 @@ import os from os import X_OK, access, makedirs from os.path import basename, isdir, isfile, join, lexists -import shutil +from shutil import copy as shut...
Permission denied for c_rehash in multi-user config Tried 4.3.14 and 4.3.8. Also tried adding the `conda-canary` channel, but no luck. This seems to have coincided with an upgrade from 4.3.8 -> 4.3.14. Here's the trace: ``` INFO conda.common.io:captured(59): overtaking stderr and stdout INFO conda.common.io:ca...
What do you get for ls -al /home/fido/.conda/envs/bar0/bin/c_rehash Please update to 4.3.13 or later. And add here the new stack trace if you still have problems. Hi, Sorry I opened a new ticket. Forgot I had this one open. ``` -rwxrwxr-x. 1 fido accre 5144 Mar 3 10:28 /home/fido/.conda/envs/baz/bin/c_r...
2017-05-09T16:22:32
conda/conda
5,265
conda__conda-5265
[ "1543" ]
94b1f760c82d178fa884f216b8aeaaf65714aa6d
diff --git a/conda/base/context.py b/conda/base/context.py --- a/conda/base/context.py +++ b/conda/base/context.py @@ -155,7 +155,9 @@ class Context(Configuration): dry_run = PrimitiveParameter(False) force = PrimitiveParameter(False) json = PrimitiveParameter(False) + no_dependencies = PrimitiveParam...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -531,6 +531,21 @@ def test_install_prune(self): assert package_is_installed(prefix, 'pytz') assert package_is_installed(prefix, 'python-3') + def test_no_deps_flag(self): + ...
--dependencies-only flag for development It'd be nice to have a `conda install -dependencies-only` flag. This would install all of the dependencies of the required package, but not the package itself. This would be useful when developing a package - it would allow you to install all of the required packages in one fell...
I agree. It would be basically the opposite of `--no-deps`. Even so, it's pretty easy to achieve the same thing with `conda install package; conda remove package`. easy but feels like hacky.... +1 - this is a common scenario when wanting to automate unit tests prior to creating a package. Don't want to go through t...
2017-05-09T17:59:40
conda/conda
5,269
conda__conda-5269
[ "5147" ]
587594c5247499761671c944fe78da8bd1a3bf1d
diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py --- a/conda/cli/main_info.py +++ b/conda/cli/main_info.py @@ -198,6 +198,9 @@ def get_info_dict(system=False): for c in channels] channels = [mask_anaconda_token(c) for c in channels] + config_files = tuple(path for path in cont...
"conda info -a" doesn't tell whole story about condarc files TL;DR: `conda info -a` and `conda config --show` need to list EVERY configuration file they are going to read in, not just the first one they find. I'm using conda inside Anaconda Enterprise. I have conda 4.2.14 in this case (but I've checked and this sam...
Have you tried `conda config --show-sources`? `conda config --show` doesn't show values from the first configuration file found. It shows the final, compiled result from all configuration found. `conda config --show-sources` shows all recognized, uncompiled values in all recognized sources. @kalefranz thanks for cl...
2017-05-10T02:33:54
conda/conda
5,273
conda__conda-5273
[ "5272" ]
d46ee3535f8049f1f9408bb48246a9f741e58fb0
diff --git a/conda_env/yaml.py b/conda_env/yaml.py --- a/conda_env/yaml.py +++ b/conda_env/yaml.py @@ -6,6 +6,7 @@ from __future__ import absolute_import, print_function from collections import OrderedDict +from conda.common.compat import PY2 from conda.common.yaml import get_yaml yaml = get_yaml() @@ -24,6 +25...
conda env export under python2 is ug ``` $ python2 -m conda_env export -p /conda name: null channels: - !!python/unicode 'file:///Users/kfranz/.conda/conda-bld' - !!python/unicode 'file:///conda/conda-bld' - !!python/unicode 'bkreider' - !!python/unicode 'conda-canary' - !!python/unicode 'conda-f...
2017-05-10T07:58:44
conda/conda
5,274
conda__conda-5274
[ "4596" ]
d46ee3535f8049f1f9408bb48246a9f741e58fb0
diff --git a/conda_env/pip_util.py b/conda_env/pip_util.py --- a/conda_env/pip_util.py +++ b/conda_env/pip_util.py @@ -4,6 +4,8 @@ NOTE: This modules used to in conda, as conda/pip.py """ from __future__ import absolute_import, print_function + +import os from os.path import isfile, join import re import subproce...
conda env export deprecated? Got a rather strange warning earlier that seemed to imply `conda env export` is going to stop working. I hope I'm just misreading this and/or this warning is talking about something else. FWIW I have found `conda env export` really useful so as to export an environment file to `stdout` t...
It looks like a warning from pip, not from conda. Conda is probably not redirecting pip's stderr. Just a quick reply---yes, that's a pip warning. We'll have to make sure we handle that properly moving forward, but conda env behavior will not be changing because of it. Phew! 😌 Thanks for clarifying. This gets rid of t...
2017-05-10T07:58:56
conda/conda
5,275
conda__conda-5275
[ "4795" ]
d46ee3535f8049f1f9408bb48246a9f741e58fb0
diff --git a/conda_env/__main__.py b/conda_env/__main__.py new file mode 100644 --- /dev/null +++ b/conda_env/__main__.py @@ -0,0 +1,5 @@ +import sys + +from .cli.main import main + +sys.exit(main()) diff --git a/conda_env/cli/main_export.py b/conda_env/cli/main_export.py --- a/conda_env/cli/main_export.py +++ b/conda_...
conda-env appears to lack support for path-based environments I am trying to use `conda env` with AEN where all the conda environments are path-based (not name-based), however I cannot figure out how to do `conda env attach` or `conda env export` since, so far as I can tell, conda-env only works with name-based conda e...
2017-05-10T07:59:10
conda/conda
5,276
conda__conda-5276
[ "3689" ]
d46ee3535f8049f1f9408bb48246a9f741e58fb0
diff --git a/conda_env/specs/__init__.py b/conda_env/specs/__init__.py --- a/conda_env/specs/__init__.py +++ b/conda_env/specs/__init__.py @@ -24,4 +24,8 @@ def detect(**kwargs): def build_message(specs): - return "\n".join([s.msg for s in specs if s.msg is not None]) + binstar_spec = next((spec for spec in ...
conda-env 4.2.9 still says to install 'binstar' # Is this a big deal? First, this seems like something minor that I could get in and submit a PR to fix. This isn't going to kill anyone, it's just a minor annoyance that could be cleaned up. I'm sorry if this is already a ticket. I tried searching but _whow_ you guys...
Awesome bug report. Which all of them were this detailed. We also accept pull requests 😁 We'll try to get it into a 4.3 release regardless. @nehaljwani Since you have some history here on several of the issues I linked above, do you want to take a stab at fixing this once and for all? It's a bug, so should target...
2017-05-10T08:41:35
conda/conda
5,284
conda__conda-5284
[ "1427" ]
ef896b73f3191cdee93a13fb19ce2a4e79c94767
diff --git a/conda/cli/install.py b/conda/cli/install.py --- a/conda/cli/install.py +++ b/conda/cli/install.py @@ -35,8 +35,6 @@ def check_prefix(prefix, json=False): name = basename(prefix) error = None - if name.startswith('.'): - error = "environment name cannot start with '.': %s" % name i...
Creating a virtual environment starting with '.' (dot/period) Hi, Is there any way to create a virtual environment that starts with a '.' (dot/period)? I am running a program that searches for virtual python environments in a specific dot-prefixed folder name. The developers for that software use `virtualenv` for thei...
What error do you get? I didn't know there was a restriction. Ah, it looks like we do indeed restrict it. ``` kfranz@0283:~/continuum/conda *test-requests ❯ python -m conda create -n .someenv CondaValueError: environment name cannot start with '.': .someenv ``` I've traced that restriction down to b9f5528c1399...
2017-05-10T19:32:52
conda/conda
5,308
conda__conda-5308
[ "1713" ]
19c3c149801bbc4a9a0b834306e21cab6f7c81f0
diff --git a/conda/cli/main_package.py b/conda/cli/main_package.py --- a/conda/cli/main_package.py +++ b/conda/cli/main_package.py @@ -263,9 +263,11 @@ def which_package(path): if prefix is None: from ..exceptions import CondaVerificationError raise CondaVerificationError("could not determine con...
`conda package -w` is case dependent on Windows It should be case-insensitive, because windows filesystem is case insensitive. E.g., when I run from the environment root: `conda package -w Lib\site-packages\win32\win32file.pyd` Ir finds the package, but if I run `conda package -w lib\site-packages\win32\win32file.py...
I think the problem is the function [`which_path`](https://github.com/conda/conda/blob/master/conda/misc.py#L149) uses string comparisons to test equality against file paths. I think that function should use [`os.path.normpath()`](https://docs.python.org/2/library/os.path.html#os.path.normcase) on all paths to make the...
2017-05-12T22:44:25
conda/conda
5,309
conda__conda-5309
[ "2511", "2511" ]
19c3c149801bbc4a9a0b834306e21cab6f7c81f0
diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py --- a/conda/cli/main_config.py +++ b/conda/cli/main_config.py @@ -188,6 +188,11 @@ def configure_parser(sub_parsers): default=[], metavar="KEY", ) + action.add_argument( + "--stdin", + action="store_true", + ...
conda should take config information from --file and stdin conda should take config information from --file and stdin
2017-05-12T23:52:29
conda/conda
5,310
conda__conda-5310
[ "4302" ]
19c3c149801bbc4a9a0b834306e21cab6f7c81f0
diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py --- a/conda/cli/main_config.py +++ b/conda/cli/main_config.py @@ -383,18 +383,31 @@ def execute_config(args, parser): json_warnings.append(message) arglist.insert(0 if prepend else len(arglist), item) + primitive_par...
diff --git a/tests/test_config.py b/tests/test_config.py --- a/tests/test_config.py +++ b/tests/test_config.py @@ -660,12 +660,31 @@ def test_config_set(): assert stdout == '' assert stderr == '' + with open(rc) as fh: + content = yaml_load(fh.read()) + assert content['a...
Unable to set conda-build.root-dir with config Not sure the right way to do this, but it looks like there might not be any right way ATM. I would like to be able to use `conda config` to get the following added to my `.condarc` file. ```yaml conda-build: root-dir: /tmp ``` If I try to set `conda-build.root...
cc @msarahan `conda config --set` doesn't currently support map-type parameters. It should be possible to do `conda config --set proxy_servers.http 1.2.3.4:4004` and `conda config --get proxy_servers.http`
2017-05-13T00:18:04
conda/conda
5,311
conda__conda-5311
[ "4986" ]
e7b1a6bf1eac0f00b84cb70911d5df0694978119
diff --git a/conda/cli/main_clean.py b/conda/cli/main_clean.py --- a/conda/cli/main_clean.py +++ b/conda/cli/main_clean.py @@ -120,7 +120,7 @@ def rm_tarballs(args, pkgs_dirs, totalsize, verbose=True): print(fmt % ('Total:', human_bytes(totalsize))) print() - if not context.json: + if not cont...
--yes not functioning for "Clean" Hi, either `conda clean -y --all` or `conda clean --yes --all` still prompt for a confirmation. conda 4.2.13 macOS 10.12.4
@kalefranz should this be fixed for 4.1 onwards or? Confirmed here as well. `conda==4.2.13` `Windows 32-bit` Probably at least 4.2 onward.
2017-05-13T00:33:15
conda/conda
5,312
conda__conda-5312
[ "5256", "4302" ]
d0399db929580685ed0790f64d55b60d4b10ed64
diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py --- a/conda/cli/main_config.py +++ b/conda/cli/main_config.py @@ -21,8 +21,7 @@ from ..common.configuration import pretty_list, pretty_map from ..common.constants import NULL from ..common.yaml import yaml_dump, yaml_load -from ..config import (rc_bool...
diff --git a/tests/test_config.py b/tests/test_config.py --- a/tests/test_config.py +++ b/tests/test_config.py @@ -656,15 +656,38 @@ def test_config_set(): with make_temp_condarc() as rc: stdout, stderr, return_code = run_command(Commands.CONFIG, '--file', rc, ...
Enable ssl_verify with config --get `config get ssl_verify` Gives ``` usage: conda config [-h] [--json] [--debug] [--verbose] [--system | --env | --file FILE] (--show | --show-sources | --validate | --describe | --get [KEY [KEY ...]] | --append KEY VALUE | --prepend KEY ...
cc @msarahan `conda config --set` doesn't currently support map-type parameters. It should be possible to do `conda config --set proxy_servers.http 1.2.3.4:4004` and `conda config --get proxy_servers.http`
2017-05-13T01:26:17
conda/conda
5,313
conda__conda-5313
[ "2173" ]
01352cfa00587b87f78d444f2ca896de91ed9716
diff --git a/conda/cli/main_clean.py b/conda/cli/main_clean.py --- a/conda/cli/main_clean.py +++ b/conda/cli/main_clean.py @@ -12,7 +12,7 @@ from os.path import getsize, isdir, join import sys -from .conda_argparse import add_parser_json, add_parser_yes +from .conda_argparse import add_parser_json, add_parser_quiet...
Add quiet option to conda clean Would be nice to have a quiet option that simply told how much disk space was freed from each of the storage areas instead of listing all packages removed.
2017-05-13T04:21:51
conda/conda
5,314
conda__conda-5314
[ "1992" ]
01352cfa00587b87f78d444f2ca896de91ed9716
diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py --- a/conda/cli/conda_argparse.py +++ b/conda/cli/conda_argparse.py @@ -381,20 +381,10 @@ def add_parser_known(p): def add_parser_use_index_cache(p): p.add_argument( - "--use-index-cache", + "-C", "--use-index-cache", ...
add short option for "--use-index-cache" `--use-index-cache` makes search and info much faster, but it's a lot of characters to type. Could you add a short equivalent? To propose something: it could be a capital C like in yum/dnf: ``` -C, --cacheonly Run entirely from system cache, don't update t...
2017-05-13T04:49:00
conda/conda
5,316
conda__conda-5316
[ "5315" ]
c40d1013b0998935a693f758d8198579f02f58b2
diff --git a/conda/base/context.py b/conda/base/context.py --- a/conda/base/context.py +++ b/conda/base/context.py @@ -103,7 +103,7 @@ class Context(Configuration): # remote connection details ssl_verify = PrimitiveParameter(True, element_type=string_types + (bool,), - ali...
We should add an alias to `ssl_verify` -> `verify_ssl` Having this would allow to have parity with anaconda-client configuration and perhaps `verify_ssl` is a better name. Thoughts @kalefranz ? ---- Related to https://github.com/conda/conda/issues/5256
2017-05-14T10:47:09
conda/conda
5,333
conda__conda-5333
[ "3399" ]
714412283af4e9d8bd520ab8e7c3e944926833b5
diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py --- a/conda/cli/main_info.py +++ b/conda/cli/main_info.py @@ -11,12 +11,12 @@ from logging import getLogger import os from os import listdir -from os.path import exists, expanduser, join +from os.path import exists, expanduser, isfile, join import re imp...
Error while installing packages from conda-forge or other channels Hi this issue has been reported initially on conda-forge, but seems to be a general conda problem: https://github.com/conda-forge/conda-forge.github.io/issues/226 Briefly, on a Mac OS X, I get an error "UNAUTHORIZED" error message when installing pack...
Logging out from anaconda cloud with `anaconda-client` solves the issue: ``` $ anaconda logout ``` Weird that conda installation was so badly broken due to the unrelated login used to **upload** the packages. cc @pmlandwehr I believe this is fixed as of conda `4.2.11`. Can anybody associated with this ticket help ...
2017-05-16T02:11:09
conda/conda
5,335
conda__conda-5335
[ "3810" ]
eb3eb4c934cbc344d84a7073e187360d41905093
diff --git a/conda_env/cli/main_update.py b/conda_env/cli/main_update.py --- a/conda_env/cli/main_update.py +++ b/conda_env/cli/main_update.py @@ -79,7 +79,7 @@ def execute(args, parser): except exceptions.SpecNotFound: raise - if not args.name: + if not (args.name or args.prefix): if not...
conda env update : does not support --prefix The `conda env update` does not support the `--prefix` / `-p` argument. ``` $ conda info | grep version conda version : 4.2.12 conda-env version : 4.2.12 conda-build version : 1.20.3 python version : 2.7.11.final.0 requests versio...
I don't know if I've interpreted your issue correctly, but I think all you need to do is drop the `env` so your command becomes `conda update -p ./conda-env` Here's what I'm trying to achieve: I have a bootstrap script that always gets run when a project gets checked out or updated. This is to make it easy for users ...
2017-05-16T03:21:40
conda/conda
5,342
conda__conda-5342
[ "5341" ]
79f86d4cf31e6275cf3b201e76b43a95ecbb9888
diff --git a/conda/cli/main.py b/conda/cli/main.py --- a/conda/cli/main.py +++ b/conda/cli/main.py @@ -80,12 +80,24 @@ def generate_parser(): return p, sub_parsers +def init_loggers(context): + from ..gateways.logging import set_all_logger_level, set_verbosity + if not context.json: + # Silence lo...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -65,6 +65,18 @@ except ImportError: from mock import patch + +def get_win_locations(): + try: + from menuinst.win32 import dirs_src as win_locations + except ImportError: + try: ...
Add --json flag on conda-env that works! The json flag seems to be there, but it is not working. With a file that looks like ```yaml # environment.yaml name: test_env_1 channels: - defaults dependencies: - python - pytest-cov ``` ``` (root) $ conda-env create --json Using Anaconda API: http s://api.a...
2017-05-16T18:47:06
conda/conda
5,357
conda__conda-5357
[ "5346" ]
79f86d4cf31e6275cf3b201e76b43a95ecbb9888
diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py --- a/conda/cli/conda_argparse.py +++ b/conda/cli/conda_argparse.py @@ -121,7 +121,7 @@ def error(self, message): else: argument = None if argument and argument.dest == "cmd": - m = re.compil...
latest 4.3.x (4.3.18-37-g79f86d4c) not picking up conda-build subcommands From conda-build's test suite: ``` ________________________________ test_skeleton_pypi ________________________________ Traceback (most recent call last): File "/home/dev/code/conda-build/tests/test_published_examples.py", line 15, in tes...
Am able to reproduce ``` kfranz@0283:~/continuum/conda-build *(no branch) ❯ /conda/bin/conda info Current conda install: platform : osx-64 conda version : 4.3.18.post37+79f86d4cf conda is private : False conda-env version : 4.3.18.post37+79f86d4cf conda-build versio...
2017-05-18T13:09:00
conda/conda
5,359
conda__conda-5359
[ "5358" ]
98c6d80f3299edf775b495f90651d558248d2cf8
diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py --- a/conda/cli/conda_argparse.py +++ b/conda/cli/conda_argparse.py @@ -45,7 +45,6 @@ def _get_action_from_name(self, name): def error(self, message): import re - import subprocess from .find_commands import find_exec...
conda should exec to non-conda subcommands, not subprocess
2017-05-18T13:17:36
conda/conda
5,368
conda__conda-5368
[ "5367" ]
99f5bff861d7c89419a87967aac22e415bf85581
diff --git a/conda/common/platform.py b/conda/common/platform.py --- a/conda/common/platform.py +++ b/conda/common/platform.py @@ -18,8 +18,8 @@ def is_admin_on_windows(): # pragma: unix no cover if not on_win: # pragma: no cover return False try: - from ctypes.windll.shell32 import IsUserAn...
conda info always shows 'unknown' for admin indicator on Windows
2017-05-18T21:33:26
conda/conda
5,373
conda__conda-5373
[ "5248" ]
4df735e8779af55b1452b6b3fc2d3d64d4ad06a7
diff --git a/conda/plan.py b/conda/plan.py --- a/conda/plan.py +++ b/conda/plan.py @@ -235,7 +235,7 @@ def format(s, pkg): print(format(oldfmt[pkg] + arrow + newfmt[pkg], pkg)) if downgraded: - print("\nThe following packages will be DOWNGRADED due to dependency conflicts:\n") + print(...
diff --git a/tests/test_plan.py b/tests/test_plan.py --- a/tests/test_plan.py +++ b/tests/test_plan.py @@ -215,7 +215,7 @@ def test_display_actions(): display_actions(actions, index) assert c.stdout == """ -The following packages will be DOWNGRADED due to dependency conflicts: +The following packages wi...
confusing messages at downgrading When I willfully downgrade a package, confusing dialogs are given related to dependency conflicts, possibly because the same dialog/logging is used when an automatic downgrade requirement was being determined: ```bash (stable) └─❱❱❱ conda install pandas=0.19 ...
Seems to me the simplest thing for us to do here is to drop the "due to dependency conflicts." It's not clear to me we can reliably say that anyway.
2017-05-19T01:51:04
conda/conda
5,379
conda__conda-5379
[ "5378" ]
dd8b57b6a3f8cfd4d74ecdcf54328d8137526353
diff --git a/conda/gateways/logging.py b/conda/gateways/logging.py --- a/conda/gateways/logging.py +++ b/conda/gateways/logging.py @@ -91,4 +91,3 @@ def trace(self, message, *args, **kwargs): logging.addLevelName(TRACE, "TRACE") logging.Logger.trace = trace -initialize_logging()
duplicate log messages Adding code ```python class DbgViewHandler(logging.Handler): def emit(self, record): print("DbgViewHandler: %s" % record) logger = logging.getLogger("logging_test") logger.setLevel(logging.DEBUG) logger.propagate = False stream_handler = logging.StreamHandler() stream_han...
2017-05-19T15:26:15
conda/conda
5,380
conda__conda-5380
[ "5356" ]
0d0a47e40bc80d0e957ce20d4868b0d27440eaf9
diff --git a/conda/gateways/logging.py b/conda/gateways/logging.py --- a/conda/gateways/logging.py +++ b/conda/gateways/logging.py @@ -37,7 +37,7 @@ def filter(self, record): @memoize def initialize_logging(): - initialize_root_logger() + # initialize_root_logger() # probably don't need to touch the root log...
importing `conda.cli.python_api` changes root logger `conda.gateways.logging.initialize_logging` calls `initialize_root_logger` and `initialize_conda_logger` which add custom handlers named "stderr" to the root and "conda" logger and change their levels. `initialize_logging` gets called when importing `conda.gateways`...
2017-05-19T15:26:38
conda/conda
5,382
conda__conda-5382
[ "5298" ]
e047925bba543e2c96fb648649fd2158824dcf55
diff --git a/conda/resolve.py b/conda/resolve.py --- a/conda/resolve.py +++ b/conda/resolve.py @@ -531,7 +531,7 @@ def version_key(self, dist, vtype=None): valid = 1 if cpri < MAX_CHANNEL_PRIORITY else 0 ver = normalized_version(rec.get('version', '')) bld = rec.get('build_number', 0) - ...
Conda does not respect exact matchspecs Really strange here, but I've followed this as far as I can in conda-build, and I think it's in conda. I have these specs: ``` ipdb> sub_build_ms_deps [MatchSpec('openssl 1.0.2k 1'), MatchSpec('zlib 1.2.8 3'), MatchSpec('bzip2 1.0.6 3'), MatchSpec('ncurses 5.9 10'), Mat...
PS: to make things even more confusing, heefb760 is an older build, done yesterday, while the h95a1600 build is from today - so it isn't the timestamp prioritization messing up. Just wrote a simple test that I expected to fail: ```python def test_build_string(): # regression test for #5298 spec = MatchSpe...
2017-05-19T18:56:28
conda/conda
5,393
conda__conda-5393
[ "5384", "5384" ]
3a9025698a2ccc104f074e4384532a6d27363e2c
diff --git a/conda/cli/main.py b/conda/cli/main.py --- a/conda/cli/main.py +++ b/conda/cli/main.py @@ -82,7 +82,7 @@ def generate_parser(): def init_loggers(context): from ..gateways.logging import set_all_logger_level, set_verbosity - if not context.json: + if context.json: # Silence logging inf...
Conda 4.3.19 (canary) is breaking json output parsing for navigator ```plain $ conda create -n test-conda python --json Solving package specifications: # This line should not be there....! { "actions": { "LINK": [ "defaults::openssl-1.0.2k-2", "defaults::readline-6.2-2", "defaults::sq...
2017-05-20T18:00:36
conda/conda
5,404
conda__conda-5404
[ "5217", "5217" ]
d837cc25b5e6a5760a229ab2883ef31411087dde
diff --git a/conda/cli/python_api.py b/conda/cli/python_api.py --- a/conda/cli/python_api.py +++ b/conda/cli/python_api.py @@ -35,7 +35,10 @@ def get_configure_parser_function(command): def run_command(command, *arguments, **kwargs): - """ + """Runs a conda command in-process with a given set of command-line...
`cli.python_api` captures `stdout` from `cli.common.confirm_yn` `cli.python_api.run_command` captures any output to `stdout`/`stderr` via `common.io.captured`. This causes the user confirmation messages from `cli.common.confirm_yn`, i.e., ```bash Proceed ([y]/n)? ``` to also be captured, i.e., not being output/acc...
Definitely prefer option 1 if anybody wants to swing by and submit an easy PR. Definitely prefer option 1 if anybody wants to swing by and submit an easy PR.
2017-05-22T17:34:19
conda/conda
5,412
conda__conda-5412
[ "5411" ]
ce7e9d845ddd17f52967d9cc454f824617a78fdc
diff --git a/conda/cli/main_config.py b/conda/cli/main_config.py --- a/conda/cli/main_config.py +++ b/conda/cli/main_config.py @@ -9,7 +9,7 @@ import collections import json import os -from os.path import join +from os.path import isfile, join import sys from textwrap import wrap @@ -138,6 +138,13 @@ def configu...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -610,7 +610,7 @@ def test_conda_config_describe(self): stdout, stderr = run_command(Commands.CONFIG, prefix, "--describe") assert not stderr for param_name in context....
Create a conda command to write default config values and info to condarc It would be nice to have a way to materialize the whole spectrum of configuration options for conda in the user condarc (if empty). `conda config --write-defaults` I guess this could also be used for other locations `conda config --write-...
2017-05-23T21:24:29
conda/conda
5,414
conda__conda-5414
[ "5081", "5081" ]
ce7e9d845ddd17f52967d9cc454f824617a78fdc
diff --git a/conda/resolve.py b/conda/resolve.py --- a/conda/resolve.py +++ b/conda/resolve.py @@ -510,6 +510,9 @@ def generate_feature_metric(self, C): def generate_removal_count(self, C, specs): return {'!'+self.push_MatchSpec(C, ms.name): 1 for ms in specs} + def generate_install_count(self, C, sp...
diff --git a/tests/test_create.py b/tests/test_create.py --- a/tests/test_create.py +++ b/tests/test_create.py @@ -714,6 +714,16 @@ def test_package_pinning(self): assert not package_is_installed(prefix, "python-2.7") assert not package_is_installed(prefix, "itsdangerous-0.23") + @pytest....
Make pinned packages optional/constrained dependencies In the conda 4.3 feature branch, make the `get_pinned_specs()` function in `conda/plan.py` return `MatchSpec` objects with the `optional=True` flag. Make sure (by writing extra unit tests) that the `conda.cli.common.spec_from_line()` function is both working cor...
While working on the test I notice something isn't working quite right, I suspect the solver: ``` run_command(Commands.INSTALL, prefix, "openssl") assert not package_is_installed(prefix, "python") run_command(Commands.INSTALL, prefix, "flask") assert package_is_installed(prefix, "python-3.6.1-2") ``` works fin...
2017-05-24T13:21:11
conda/conda
5,421
conda__conda-5421
[ "5420" ]
3e96017a129c066ec7738968d3cbe4b59dd26b7b
diff --git a/conda_env/cli/main_update.py b/conda_env/cli/main_update.py --- a/conda_env/cli/main_update.py +++ b/conda_env/cli/main_update.py @@ -1,18 +1,16 @@ from argparse import RawDescriptionHelpFormatter import os -import textwrap import sys +import textwrap -from conda import config -from conda.cli import c...
conda-env update error in 4.3.20 ``` conda env update 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.20 ...
2017-05-25T04:03:54
conda/conda
5,426
conda__conda-5426
[ "5425" ]
c93159791bb4600a1f67a06c7108c5c73ffcfd98
diff --git a/conda/common/platform.py b/conda/common/platform.py --- a/conda/common/platform.py +++ b/conda/common/platform.py @@ -19,12 +19,12 @@ def is_admin_on_windows(): # pragma: unix no cover return False try: from ctypes import windll - return windll.shell32.IsUserAnAdmin()() != 0 ...
diff --git a/tests/common/test_platform.py b/tests/common/test_platform.py new file mode 100644 --- /dev/null +++ b/tests/common/test_platform.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import, division, print_function, unicode_literals + +from conda.common.compat import on_win +from ...
Launching navigator via prompt warnings appear _From @RidaZubair on May 24, 2017 9:47_ **OS:** Windows **Anaconda: 4.4.0** **Actual:** On launching navigator via prompt following warning appears on prompt ![2](https://cloud.githubusercontent.com/assets/27444898/26396930/175ef622-408e-11e7-8e75-e9c2218e15de.png) ...
_From @goanpeca on May 24, 2017 13:52_ @kalefranz whats with the conda.common.platform error there? @RidaZubair warnings are just to inform that the conda commands that we called might have return something on the stderr, but by themselves they are not errors. However I am currious about the first Warning on Con...
2017-05-25T13:14:13