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 | 5,452 | conda__conda-5452 | [
"5451"
] | 2dd2233452e96adf3c2b2af232b3fb457ec6a51d | 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 or not context.ye... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -1072,8 +1072,11 @@ def test_clean_tarballs_and_packages(self):
assert any(basename(d).startswith('flask-') for d in pkgs_dir_dirs)
assert any(basename(f).startswith('flask... | conda clean --json error
`conda clean -t --json --dry-run
{
"error": "Traceback (most recent call last):\n File \"C:\\Anaconda27\\lib\\site-packages\\conda\\exceptions.py\", line 632, in conda_exception_handler\n return_value = func(*args, **kwargs)\n File \"C:\\Anaconda27\\lib\\site-packages\\conda\\cli\\main... | 2017-05-30T16:03:00 | |
conda/conda | 5,467 | conda__conda-5467 | [
"5466",
"5466"
] | 79e79bdbbf2e783eb6092e7e16493e4bfbc7a82e | diff --git a/conda/models/channel.py b/conda/models/channel.py
--- a/conda/models/channel.py
+++ b/conda/models/channel.py
@@ -16,10 +16,10 @@
try:
from cytoolz.functoolz import excepts
- from cytoolz.itertoolz import concatv, topk
+ from cytoolz.itertoolz import concatv, drop
except ImportError: # prag... | 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
@@ -20,7 +20,6 @@
from conda.utils import on_win
from logging import getLogger
from unittest import TestCase
-import conda.models.channel
try:
from unittest.mock impo... | scrambled URL of non-alias channel with token
The URL parsing would swap around locations of URL parts if passed a `/t/<TOKEN>` URL that was not the `channel_alias`.
scrambled URL of non-alias channel with token
The URL parsing would swap around locations of URL parts if passed a `/t/<TOKEN>` URL that was not the `chan... | 2017-06-01T23:48:30 | |
conda/conda | 5,471 | conda__conda-5471 | [
"5470",
"5470"
] | 79e79bdbbf2e783eb6092e7e16493e4bfbc7a82e | 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
@@ -8,7 +8,7 @@
from ..base.constants import APP_NAME, SEARCH_PATH
from ..base.context import context
from ..cli.main import generate_parser
-from ..common.io import captured, replace_log_stream... | diff --git a/tests/common/test_io.py b/tests/common/test_io.py
--- a/tests/common/test_io.py
+++ b/tests/common/test_io.py
@@ -1,8 +1,48 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
-from conda.common.io import attach_stderr_handler, captured
+from co... | make stdout/stderr capture in python_api customizable
Let the user customize how and if the standard output/error streams should be captured.
make stdout/stderr capture in python_api customizable
Let the user customize how and if the standard output/error streams should be captured.
| 2017-06-02T00:04:22 | |
conda/conda | 5,473 | conda__conda-5473 | [
"5400",
"5400"
] | 918933dc6e0e1bfa726ca814d32de46be67dc856 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -82,8 +82,8 @@ def print_activate(arg):
# To activate this environment, use:
# > activate %s
#
- # To deactivate this environment, use:
- # > deactivate %s
+ ... | Environment Deactivation - Misleading Message?
When I try to create an environment, I get the following message:
```bash
(root) [xyz@unknown ~]$ conda create -yn anacondacon
Fetching package metadata .........
Solving package specifications:
Package plan for installation in environment /conda/envs/anacondacon:
... | 2017-06-02T03:02:21 | ||
conda/conda | 5,475 | conda__conda-5475 | [
"5444"
] | e072cba5e890c24e4557dee2bc6499f8f53162ba | diff --git a/conda_env/cli/main_create.py b/conda_env/cli/main_create.py
--- a/conda_env/cli/main_create.py
+++ b/conda_env/cli/main_create.py
@@ -5,11 +5,11 @@
import sys
import textwrap
+from conda._vendor.auxlib.path import expand
from conda.cli import install as cli_install
from conda.cli.conda_argparse impor... | Not able to install Udacity car Simulator
(C:\Users\Heeramani\Anaconda2) C:\Users\Heeramani>conda env create -f environments.yml
Using Anaconda API: https://api.anaconda.org
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
https://git... | 2017-06-02T06:32:46 | ||
conda/conda | 5,477 | conda__conda-5477 | [
"5302",
"5302"
] | 28f8b9d89b3679bf271754039d6bf93cc8e19a68 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -8,7 +8,7 @@
from difflib import get_close_matches
import errno
-import logging
+from logging import getLogger
import os
from os.path import abspath, basename, exists, isdir, join
import re
@@ -29,7 ... | Add a warning when creating environments with spaces
From https://github.com/ContinuumIO/navigator/issues/1000.
```
(root) 0316-gpena-castellanos:navigator gpena-castellanos$ conda install -n "test space" qtconsole
Fetching package metadata ...........
Solving package specifications: .
Package plan for install... | Shouldn't the package's post link script quote the `$PREFIX` variable properly, instead of assuming that the environment path will not have a space in it?
Yes it should and I will fix that today but we should also warn since a large amount of critical software (e.g. GNU make) cannot handle spaces very well.
Shouldn't t... | 2017-06-02T07:33:24 | |
conda/conda | 5,496 | conda__conda-5496 | [
"5483"
] | d85347ba5d0dcaf58073d0ddd66687e04f482d8d | diff --git a/conda/_vendor/auxlib/path.py b/conda/_vendor/auxlib/path.py
--- a/conda/_vendor/auxlib/path.py
+++ b/conda/_vendor/auxlib/path.py
@@ -6,7 +6,7 @@
from os.path import abspath, dirname, exists, expanduser, expandvars, isdir, isfile, join, sep
try:
import pkg_resources
-except ImportError:
+except Exce... | An unexpected error has occurred.
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
https://github.com/conda/conda/issues
Current conda install:
platform : win-64
conda version : 4.3.21
conda is priv... | I ran into similar problem just now. Updating your conda may help.
This is the error I get when I try to update my conda. Has anyone figured out how to fix this? | 2017-06-06T12:49:06 | |
conda/conda | 5,526 | conda__conda-5526 | [
"5525"
] | cb134f324394dcfc1fed116f4ea1b0c578670d9a | diff --git a/conda/exceptions.py b/conda/exceptions.py
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -355,6 +355,10 @@ def __init__(self, message, url, status_code, reason, elapsed_time, response=Non
_message += "CF-RAY: %s\n\n" % cf_ray if cf_ray else "\n"
message = _message + message
+ ... | Fix all the `None`s in CondaHTTPError
```
CondaHTTPError: HTTP None None for url https://repo.continuum.io/pkgs/free/win-64/repodata.json.bz2
Elapsed: None
```
| 2017-06-14T18:03:37 | ||
conda/conda | 5,532 | conda__conda-5532 | [
"5515",
"5515"
] | e0718e46b326233c450390d5a9096df071186a3b | diff --git a/conda/__init__.py b/conda/__init__.py
--- a/conda/__init__.py
+++ b/conda/__init__.py
@@ -88,6 +88,9 @@ def dump_map(self):
error="Multiple Errors Encountered.",
)
+ def contains(self, exception_class):
+ return any(isinstance(e, exception_class) for e ... | CondaMultiError precludes catching more specific exceptions
In trying to narrow Conda-build's exception scope, I find that I cannot directly catch the PaddingError here:
```
===================================================== FAILURES =====================================================
________________________... | I can add a `contains` method on `CondaMultiError`. In the interim, you could do the same for code locally until we get a few releases out with the addition. Here's what it would look like
```python
def contains(self, exception_class):
return any(isinstance(e, exception_class) for e in self.errors)
... | 2017-06-15T07:38:37 | |
conda/conda | 5,549 | conda__conda-5549 | [
"5523"
] | 672c772c233b8f1639d869fb01f4fb1583090304 | diff --git a/conda/misc.py b/conda/misc.py
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -198,7 +198,7 @@ def append_env(prefix):
os.mkdir(dir_path)
with open(join(dir_path, 'environments.txt'), 'a') as f:
f.write('%s\n' % prefix)
- except IOError:
+ except (IOError, OSError):
... | conda fails if a user's home directory doesn't exist
In certain applications that we support, it is possible that a user does not have a home directory within which to create `~/.conda`. This is causing a fatal error in the `append_env` method [here](https://github.com/conda/conda/blob/master/conda/misc.py#L185-L193).... | 2017-06-19T02:03:45 | ||
conda/conda | 5,703 | conda__conda-5703 | [
"5649",
"5649"
] | 7cab18070a6397cbf2218144edd7fa64c17a5964 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -163,14 +163,13 @@ def install(args, parser, command='install'):
raise PackageNotInstalledError(prefix, name)
if newenv and not args.no_default_packages:
- default_packages = ... | diff --git a/tests/test_activate.py b/tests/test_activate.py
--- a/tests/test_activate.py
+++ b/tests/test_activate.py
@@ -191,7 +191,7 @@ def test_activate_bad_env_keeps_existing_good_env(shell):
@pytest.mark.installed
def test_activate_deactivate(shell):
- if shell == "bash.exe" and datetime.now() < datetime(2... | Conda 4.3 not installing default packages
I have the following `.condarc`:
```
channels:
- conda-forge
- defaults
create_default_packages:
- ipython
```
When creating a new environment with `conda 4.3.22` the `ipython` package is not included:
```
$ conda create -n testenv python=3
Fetching pa... | Conda always prioritizes conda-forge over the default channel by design.
You can either temporarily remove conda-forge from your .condarc or add `-c defaults` in your command.
@tyler-thetyrant By default packages I mean the ones specified in the config `create_default_packages`.
When using conda 4.3 it doesn't ho... | 2017-07-20T21:28:07 |
conda/conda | 5,726 | conda__conda-5726 | [
"1741"
] | c1af02bb4fcfb8c962bb52d040ba705174345889 | 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
@@ -39,6 +39,12 @@ def list_packages(prefix, installed, regex=None, format='human',
show_channel_urls=None):
res = 0
result = []
+
+ if format == 'human':
+ resul... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -546,7 +546,7 @@ def test_create_empty_env(self):
stderr = list_output[1]
expected_output = """# packages in environment at %s:
#
-
+# Name Version ... | `conda list` doesn't have column headers
The `conda list` command outputs 3 columns of data for which there are no column headers. The first appears to be `package name`, the second `version`, the third is possibly `feature+build number`? It would be great to have these headers added and could be done so in the already... | In addition, what would be the fourth column?
| 2017-07-25T23:02:50 |
conda/conda | 5,733 | conda__conda-5733 | [
"5708",
"5708"
] | dce9978e3a226ab407e89f12e693350db4a5fe4f | diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -531,8 +531,8 @@ def version_key(self, dist, vtype=None):
bld = rec.get('build_number', 0)
bs = rec.get('build')
ts = rec.get('timestamp', 0)
- return ((valid, -cpri, ver, bld, bs, ts) if ... | Local package cache higher in priority than conda-build folders
If I have two recipes, "upstream" and "downstream", I see very undesirable behavior with conda.
1. build upstream - hash abc123, timestamp
2. build downstream
3. change upstream, rebuild - hash (somethingnew)
4. build downstream
The second "downs... | Ping @kalefranz, @csoja, this bug is preventing the new testing mechanism from working since @msarahan has implemented a workaround that deletes the very packages I am testing (`clean_pkg_cache`).
The pkgs folder is not treated as a channel at all so that can't be it. The tarballs there are given the priority assigned ... | 2017-07-26T20:40:39 | |
conda/conda | 5,764 | conda__conda-5764 | [
"5763"
] | c60a7ab0540fa0ce3856c76c4f00a2fa15343c3a | diff --git a/conda/models/channel.py b/conda/models/channel.py
--- a/conda/models/channel.py
+++ b/conda/models/channel.py
@@ -95,14 +95,14 @@ def _read_channel_configuration(scheme, host, port, path):
for name, channel in sorted(context.custom_channels.items(), reverse=True,
key=l... | 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
@@ -887,3 +887,35 @@ def test_regression_against_unknown_none(self):
assert channel.base_url is None
assert channel.url() == defaults.url()
assert cha... | Conda mangles channels with hyphens
Update: This is not related to hyphens, only substrings.
Seen on versions: 4.3.21, 4.3.23 (maybe more versions)
Conda mangles channels that are a substring match when using default_channels and channels. The channel name "substring-channels" gets mangled into "substring/-chann... | I've updated this to say that it is substrings between channels and default_channels that causes this bugs, not hyphens. Here is a complete example. Substrings from default_channels cause problems with "channels".
```
default_channels:
- http://test/conda/substring <<<<< PROBLEM
- http://test/conda/defau... | 2017-08-01T21:22:29 |
conda/conda | 5,814 | conda__conda-5814 | [
"5809"
] | be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e | 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
@@ -104,7 +104,7 @@ def execute(args, parser):
for installer_type, specs in env.dependencies.items():
try:
installer = get_installer(installer_type)
-... | _pip_install_via_requirements got an unexpected keyword argument 'prune'
```
{
"command":"/home/travis/miniconda/bin/conda-env update",
"conda_info":{
"GID":2000,
"UID":2000,
"_channels":"https://conda.anaconda.org/conda-canary/linux-64
https://conda.anaconda.org/conda-c... | 2017-08-14T23:06:58 | ||
conda/conda | 5,815 | conda__conda-5815 | [
"5808"
] | be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e | 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
@@ -265,12 +265,26 @@ def _make_single_record(self, package_filename):
package_tarball_full_path=package_tarball_full_path,
extracted_package_dir=e... | assertion error when loading package cache
```
{
"command":"D:\\Anaconda3\\Scripts\\conda-script.py install -c anaconda pillow",
"conda_info":{
"_channels":"https://conda.anaconda.org/anaconda/win-64
https://conda.anaconda.org/anaconda/noarch
https://r... | 2017-08-14T23:25:25 | ||
conda/conda | 5,820 | conda__conda-5820 | [
"5790"
] | be6ce15e42b9c714e9b15b2de47480dc9dd5ab2e | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -16,7 +16,7 @@
from .._vendor.auxlib.ish import dals
from ..base.constants import ROOT_ENV_NAME
from ..base.context import context
-from ..common.compat import text_type
+from ..common.compat import text... | conda 4.4 incorrect activate message
I updated to conda 4.4.0b2 from conda v4.3. I created a new environment and it recommended the following - which I ran and got an error:
To activate this environment, use
$ conda activate anaconda2
To deactivate an active environment, use
$ conda deactivate
02... | Duplicate of #5738
| 2017-08-15T11:25:34 | |
conda/conda | 5,831 | conda__conda-5831 | [
"5825"
] | 4f623168b74673105f866c35b1d33aa80f6a6bda | diff --git a/conda/cli/common.py b/conda/cli/common.py
--- a/conda/cli/common.py
+++ b/conda/cli/common.py
@@ -8,7 +8,6 @@
from .._vendor.auxlib.ish import dals
from ..base.constants import PREFIX_MAGIC_FILE, ROOT_ENV_NAME
from ..base.context import context
-from ..common.compat import itervalues
from ..models.matc... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -374,9 +374,22 @@ def assert_json_parsable(content):
try:
prefix = make_temp_prefix(str(uuid4())[:7])
+ stdout, stderr = run_command(Commands.CREATE, prefix, "python=3.5 -... | Conda 4.4 --json --dry-run returns a different format
Could be a feature... or a bug. These breaking changes should probably be reserved for major versions? So Bug it is :-p
## Conda 4.4
```
$ conda install rstudio --dry-run --json
{
"actions": {
"LINK": [
"defaults::font-ttf-dejavu-sans-mono-2.3... | 2017-08-15T21:51:50 | |
conda/conda | 5,835 | conda__conda-5835 | [
"5834"
] | 2f786d23c891eaca14cbd06b67f79f41cddcec8d | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -87,7 +87,7 @@ def ssl_verify_validation(value):
class Context(Configuration):
add_pip_as_python_dependency = PrimitiveParameter(True)
- allow_softlinks = PrimitiveParameter(True)
+ allow_... | Change default value for 'allow_softlinks' from True to False
The `allow_softlinks` configuration parameter can be dangerous. Softlinks into prefixes directly from the package cache will often lead to environment corruption. It was an oversight that the default value for `allow_softlinks` is set to `True`. In conda ... | 2017-08-16T16:38:14 | ||
conda/conda | 5,839 | conda__conda-5839 | [
"5834",
"5834"
] | b38340806c4f2657dc1647fee7b4b10aec60ee3f | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -72,7 +72,7 @@ def ssl_verify_validation(value):
class Context(Configuration):
add_pip_as_python_dependency = PrimitiveParameter(True)
- allow_softlinks = PrimitiveParameter(True)
+ allow_... | Change default value for 'allow_softlinks' from True to False
The `allow_softlinks` configuration parameter can be dangerous. Softlinks into prefixes directly from the package cache will often lead to environment corruption. It was an oversight that the default value for `allow_softlinks` is set to `True`. In conda ... | 2017-08-16T20:04:06 | ||
conda/conda | 5,846 | conda__conda-5846 | [
"5847"
] | d3b47d7b9ee483ba894a385e99361fa13ca9444b | diff --git a/conda/gateways/disk/delete.py b/conda/gateways/disk/delete.py
--- a/conda/gateways/disk/delete.py
+++ b/conda/gateways/disk/delete.py
@@ -30,16 +30,12 @@ def rm_rf(path, max_retries=5, trash=True):
path = abspath(path)
log.trace("rm_rf %s", path)
if isdir(path) and not islink(pat... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -431,6 +431,12 @@ def test_list_with_pip_egg(self):
assert any(line.endswith("<pip>") for line in stdout_lines
if line.lower().startswith("flask"))
+ # regr... | Problem: conda-build doesn't clean up temporary files
@gabm commented on [Thu Aug 17 2017](https://github.com/conda/conda-build/issues/2289)
It seems conda-build doesn't clean up temporary files located under `/tmp/tmpxxxxxx` or `User/../AppData/Local/tmpxxxxxx` on windows. After the build these folders contain the de... | 2017-08-17T16:44:03 | |
conda/conda | 5,921 | conda__conda-5921 | [
"5920"
] | 40037889fba4b0afb4a9d60d04ed6014637632a6 | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -54,7 +54,7 @@
dotlog = getLogger('dotupdate')
stderrlog = getLogger('stderrlog')
-REPODATA_PICKLE_VERSION = 1
+REPODATA_PICKLE_VERSION = 2
REPODATA_HEADER_RE = b'"(_etag|_mod|_cache_control)":... | bump repodata pickle version in 4.3.x
| 2017-09-05T14:30:48 | ||
conda/conda | 5,923 | conda__conda-5923 | [
"5922"
] | 40037889fba4b0afb4a9d60d04ed6014637632a6 | diff --git a/conda/models/channel.py b/conda/models/channel.py
--- a/conda/models/channel.py
+++ b/conda/models/channel.py
@@ -4,8 +4,7 @@
from itertools import chain
from logging import getLogger
-from ..base.constants import (DEFAULTS_CHANNEL_NAME, DEFAULT_CHANNELS_UNIX, DEFAULT_CHANNELS_WIN,
- ... | 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
@@ -800,7 +800,7 @@ def test_subdirs_env_var(self):
subdirs = ('linux-highest', 'linux-64', 'noarch')
def _channel_urls(channels=None):
- for chan... | prioritize channels within multi-channels
| 2017-09-05T16:23:18 | |
conda/conda | 5,949 | conda__conda-5949 | [
"5948"
] | 9c9dc2b85061399e5dfa0f80331f8b0fe8109226 | diff --git a/conda/gateways/adapters/s3.py b/conda/gateways/adapters/s3.py
--- a/conda/gateways/adapters/s3.py
+++ b/conda/gateways/adapters/s3.py
@@ -1,13 +1,16 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+import json
from logging import getLogger
... | add boto3 to conda's s3 adapter
| 2017-09-11T16:56:58 | ||
conda/conda | 5,982 | conda__conda-5982 | [
"5980",
"5980"
] | f0032e064a8122ebdb4a0d7885a0b61a053e58f5 | diff --git a/conda/gateways/disk/delete.py b/conda/gateways/disk/delete.py
--- a/conda/gateways/disk/delete.py
+++ b/conda/gateways/disk/delete.py
@@ -49,6 +49,8 @@ def rm_rf(path, max_retries=5, trash=True):
log.info("Failed to remove %s.", path)
else:
log.trace("rm_rf failed. No... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -456,6 +456,19 @@ def test_list_with_pip_wheel(self):
rm_rf(join(prefix, get_python_site_packages_short_path("3.5")), "os.py")
assert prefix not in linked_data_
+ # regres... | Fix prefix data cache with rm_rf for conda-build on windows
As reported by @mingwandroid:
conda-build uses rd on Windows to remove the prefix before calling `rm_rf`, so we need conda to forget about the installed packages.
Fix prefix data cache with rm_rf for conda-build on windows
As reported by @mingwandroid:
c... | 2017-09-18T17:36:39 | |
conda/conda | 5,986 | conda__conda-5986 | [
"5948",
"5980"
] | 40c6ae17729142fcd54478996417d171cc111ab9 | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -83,12 +83,15 @@ def _get_prefix_paths(prefix):
yield os.path.join(prefix, 'bin')
-def binpath_from_arg(arg, shell):
+def binpath_from_arg(arg, shell, going_to_shell=True):
shelldict =... | diff --git a/tests/cli/test_activate.py b/tests/cli/test_activate.py
--- a/tests/cli/test_activate.py
+++ b/tests/cli/test_activate.py
@@ -181,6 +181,8 @@ def _format_vars(shell):
@pytest.mark.installed
def test_activate_test1(shell):
+ if shell == 'bash.exe':
+ pytest.skip("usage of cygpath in win_path_t... | add boto3 to conda's s3 adapter
Fix prefix data cache with rm_rf for conda-build on windows
As reported by @mingwandroid:
conda-build uses rd on Windows to remove the prefix before calling `rm_rf`, so we need conda to forget about the installed packages.
| 2017-09-19T18:45:41 | |
conda/conda | 5,988 | conda__conda-5988 | [
"5983"
] | 91adf32066cf3ee10b5d10e3419bed4348bdcacd | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -97,6 +97,7 @@ class Context(Configuration):
element_type=string_types + (NoneType,),
validation=default_python_validati... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -141,7 +141,7 @@ def make_temp_env(*packages, **kwargs):
try:
# try to clear any config that's been set by other tests
reset_context([os.path.join(prefix+os.sep, 'condarc'... | conda install --download-only feature
Right now we have `--dry-run`, but is there a way to actually download the `.tar.bz2` files into `pkgs` without installing them? If not, can there be?
`--download-only` is one design with precedent, but also maybe as a separate subcommand, like `pip download`. The overarching g... | Yeah we need this. It's been on the roadmap for the API for a while. Actually is trivial to implement at this point. I'll make sure it gets into 4.4.
Sent from my iPhone
> On Sep 18, 2017, at 7:34 PM, Mahmoud Hashemi <notifications@github.com> wrote:
>
> Right now we have --dry-run, but is there a way to actually d... | 2017-09-19T20:42:10 |
conda/conda | 6,044 | conda__conda-6044 | [
"5854"
] | 066fea062b6184a50acd6f0e3de16f52f4c84868 | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -51,7 +51,7 @@
log = getLogger(__name__)
stderrlog = getLogger('conda.stderrlog')
-REPODATA_PICKLE_VERSION = 6
+REPODATA_PICKLE_VERSION = 16
REPODATA_HEADER_RE = b'"(_etag|_mod|_cache_control)"... | diff --git a/tests/conda_env/test_create.py b/tests/conda_env/test_create.py
--- a/tests/conda_env/test_create.py
+++ b/tests/conda_env/test_create.py
@@ -133,5 +133,9 @@ def test_create_advanced_pip(self):
assert exists(python_path)
assert_package_is_installed(prefix, 'argh', exact=Fa... | Cannot open Anaconda Navigator
I have an issue when I try to open the Navigator. It throws an unexpected error occurred.
`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 inst... | Related to #5500. | 2017-09-29T21:59:21 |
conda/conda | 6,076 | conda__conda-6076 | [
"5852"
] | b934b58893b19c6d3a0b16322d4f7c020f5edcaf | diff --git a/conda/core/solve.py b/conda/core/solve.py
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -449,13 +449,12 @@ def _prepare(self, prepared_specs):
self._r = Resolve(self._index, channels=self.channels)
else:
# add in required channels that aren't explicitly given in ... | conda-4.4.0rc0 channel history can break conda
If the user has a private local repo or the Anaconda Repository and the hostname/ip changed or is no longer valid, conda will refuse to install any packages.
This happens even if you update your `.condarc` to only have the defaults channel again.
```
$ conda list --... | Hi @kalefranz - ran into a potentially similar issue...
```
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\skearns>conda install pykerberos
Solving environment: failed
CondaHTTPError: HTTP 401 UNAUTHORIZED for url <https://conda.anaconda.org/t/st-6b4748... | 2017-10-04T21:56:15 | |
conda/conda | 6,082 | conda__conda-6082 | [
"6057"
] | 98c3549429009de3c51cffc5e25753dfe83a7417 | 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
@@ -238,7 +238,8 @@ def create_link(src, dst, link_type=LinkType.hardlink, force=False):
return
if not lexists(src):
- raise CondaError("Cannot link a... | CondaError: Cannot link a source that does not exist. C:\Users\...\Anaconda3\Scripts\conda.exe
I get this error when trying to conda install tqdm. Pip install works fine. However, when trying conda install spacy, I still get the same error because the conda installation for spacy attempts to conda install tqdm.
| Do you still get the error after running `conda clean --all --yes`?
If you need additional help, please include more details. At a minimum, `conda info`, the command that gave the error, and the full stack trace. Whatever details are necessary to independently reproduce the issue you're seeing.
Thanks @kalefranz. I h... | 2017-10-05T17:00:40 | |
conda/conda | 6,085 | conda__conda-6085 | [
"6084"
] | 98c3549429009de3c51cffc5e25753dfe83a7417 | 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
@@ -377,9 +377,6 @@ def execute_config(args, parser):
bad = rc_config[key].__class__.__name__
from ..exceptions import CouldntParseError
raise... | setting default_channels from CLI raises NotImplementedError
| 2017-10-05T19:16:16 | ||
conda/conda | 6,128 | conda__conda-6128 | [
"6096"
] | 8d5b26c24128ac88a725cd275250aa379f58eff0 | 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
@@ -54,12 +54,31 @@ def box(self, instance, val):
class TimestampField(NumberField):
- def box(self, instance, val):
- val = super(TimestampField, self).box(insta... | diff --git a/tests/models/test_index_record.py b/tests/models/test_index_record.py
new file mode 100644
--- /dev/null
+++ b/tests/models/test_index_record.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, division, print_function, unicode_literals
+from logging import getLogger
+from... | ValidationError: invalid value for timestamp
MODERATOR EDIT: This issue relates to an error that looks something like
ValidationError: Invalid value 1505856869.685 for timestamp
The issue relates to using conda 4.3.28, and then downgrading (presumably via conda-forge) to a previous version of conda, like 4.3... | @kalefranz, @msarahan, is this something to do with the * 1000 thing? Is there some code that's dividing these numbers back down again? Was such code every released in the wild?
v4.3.28 has this: https://github.com/conda/conda/commit/527c0d3c6d988ae44280b324da58950005f2bbdd
Python2 will:
```
>>> 1505856869685/1000... | 2017-10-09T16:25:58 |
conda/conda | 6,131 | conda__conda-6131 | [
"6096"
] | 8d5b26c24128ac88a725cd275250aa379f58eff0 | 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
@@ -54,12 +54,33 @@ def box(self, instance, val):
class TimestampField(NumberField):
- def box(self, instance, val):
- val = super(TimestampField, self).box(insta... | diff --git a/tests/models/test_index_record.py b/tests/models/test_index_record.py
new file mode 100644
--- /dev/null
+++ b/tests/models/test_index_record.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, division, print_function, unicode_literals
+from logging import getLogger
+
+fr... | ValidationError: invalid value for timestamp
MODERATOR EDIT: This issue relates to an error that looks something like
ValidationError: Invalid value 1505856869.685 for timestamp
The issue relates to using conda 4.3.28, and then downgrading (presumably via conda-forge) to a previous version of conda, like 4.3... | @kalefranz, @msarahan, is this something to do with the * 1000 thing? Is there some code that's dividing these numbers back down again? Was such code every released in the wild?
v4.3.28 has this: https://github.com/conda/conda/commit/527c0d3c6d988ae44280b324da58950005f2bbdd
Python2 will:
```
>>> 1505856869685/1000... | 2017-10-09T18:35:44 |
conda/conda | 6,154 | conda__conda-6154 | [
"6023"
] | 98c3549429009de3c51cffc5e25753dfe83a7417 | diff --git a/conda_env/cli/main_list.py b/conda_env/cli/main_list.py
--- a/conda_env/cli/main_list.py
+++ b/conda_env/cli/main_list.py
@@ -14,7 +14,7 @@
def configure_parser(sub_parsers):
- l = sub_parsers.add_parser(
+ list_parser = sub_parsers.add_parser(
'list',
formatter_class=RawDescri... | 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
@@ -4,6 +4,7 @@
from logging import getLogger
from os import W_OK, access
from os.path import basename, dirname, isdir, isfile, join, lexists
+from uuid import uuid4
from .cre... | Scarpy
Current conda install:
platform : win-64
conda version : 4.3.21
conda is private : False
conda-env version : 4.3.21
conda-build version : not installed
python version : 3.6.1.final.0
requests version : 2.14.2
root environment : C:\Users\d... | The code being executed here is
```python
if lexists(test_file):
rm_rf(test_file)
assert not lexists(test_file), test_file
```
We definitely still have problems with `rm_rf` on Windows, perhaps related to https://github.com/conda/conda/issues/5154.
I'm submitting a PR that might fix future iss... | 2017-10-12T16:20:32 |
conda/conda | 6,205 | conda__conda-6205 | [
"3962"
] | a8f3ce438379eaaba33864c25a2e05e703da3556 | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -18,7 +18,7 @@
import warnings
from requests import ConnectionError, HTTPError
-from requests.exceptions import InvalidSchema, SSLError
+from requests.exceptions import InvalidSchema, ProxyError... | Cannot install packages after fresh install
Hi there,
I keep getting this error message, whenever I try to install any package after a fresh miniconda install.
Any help would be very much appreciated.
Thanks in advance!
--
Current conda install:
platform : linux-64
conda version : ... | Probably an issue with requests, fixed with a requests update.
Reopened this ticket, because it's the first report of several duplicate issues.
From https://github.com/conda/conda/issues/4724#issuecomment-282239443:
> My bad. I'd managed to remove one of the forward slashes of the proxy in the .condarc file. (https:... | 2017-10-20T20:00:10 | |
conda/conda | 6,221 | conda__conda-6221 | [
"6220"
] | ddf0446e73bcfc889f653d5d08b34bacfd9764ac | diff --git a/conda_env/env.py b/conda_env/env.py
--- a/conda_env/env.py
+++ b/conda_env/env.py
@@ -48,9 +48,9 @@ def from_environment(name, prefix, no_builds=False, ignore_channels=False):
pip_pkgs = sorted(installed - conda_pkgs)
if no_builds:
- dependencies = ['='.join(a.quad[0:3]) for a in sorted(... | diff --git a/tests/conda_env/test_cli.py b/tests/conda_env/test_cli.py
--- a/tests/conda_env/test_cli.py
+++ b/tests/conda_env/test_cli.py
@@ -8,6 +8,7 @@
from conda_env.exceptions import SpecNotFound
from conda_env.cli.main import create_parser
+from conda_env.yaml import load as yaml_load
from conda.base.conte... | Add flag to build environment.yml without build strings
https://gitter.im/conda/conda?at=59ef54ebe44c43700a70e9a4
https://twitter.com/drvinceknight/status/922837449092542464?ref_src=twsrc%5Etfw
> Due to hashes of packages being introduced in `envinronment.yml` I'm getting all sorts of issues with building envs from... | Actually, looks like the flag might already be there as `--no-builds`
```
kfranz@0283:~/continuum/conda *4.3.x ❯ /conda/bin/conda env export --help
usage: conda-env export [-h] [-c CHANNEL] [--override-channels]
[-n ENVIRONMENT | -p PATH] [-f FILE] [--no-builds]
[-... | 2017-10-24T17:09:02 |
conda/conda | 6,274 | conda__conda-6274 | [
"6243"
] | 478137a45fcd12c80d93a441ecd4528535967c1a | 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,13 @@ def root_dir(self):
@property
def root_writable(self):
from ..gateways.disk.test import prefix_is_writable
- return prefix_is_writable(self.root_prefix)
+ ... | diff --git a/tests/test_activate.py b/tests/test_activate.py
--- a/tests/test_activate.py
+++ b/tests/test_activate.py
@@ -191,7 +191,7 @@ def test_activate_bad_env_keeps_existing_good_env(shell):
@pytest.mark.installed
def test_activate_deactivate(shell):
- if shell == "bash.exe" and datetime.now() < datetime(2... | test.py error "prefix is not writeable"
While attempting to use "pyinstaller" to create a standalone conda-index executable, the resulting binary failed in “conda/gateways/disk/test.py” prefix_is_writable because that method assumes the prefix is a python root directory, and in the case of the standalone, the “prefix”... | Adding @msarahan since we had an email conversation about this
Hey @tomashek, not opposed to adding `sys.executable` at the moment. It's possible it won't be completely future proof though, and it might be better to understand why conda-build's index needs to call that function. Can you attach the stack trace for the... | 2017-11-07T19:37:26 |
conda/conda | 6,275 | conda__conda-6275 | [
"5680"
] | b934b58893b19c6d3a0b16322d4f7c020f5edcaf | diff --git a/conda_env/cli/main_create.py b/conda_env/cli/main_create.py
--- a/conda_env/cli/main_create.py
+++ b/conda_env/cli/main_create.py
@@ -110,7 +110,7 @@ def execute(args, parser):
sys.stderr.write(textwrap.dedent("""
Unable to install package for {0}.
- Please do... | diff --git a/tests/conda_env/test_env.py b/tests/conda_env/test_env.py
--- a/tests/conda_env/test_env.py
+++ b/tests/conda_env/test_env.py
@@ -90,7 +90,7 @@ def test_other_tips_of_dependencies_are_supported(self):
dependencies=['nltk', {'pip': ['foo', 'bar']}]
)
expected = OrderedDict([
-... | Trivial pip subsection breaks conda env create
I observe that an empty-but-present pip subsection under dependencies breaks `conda env create`. I expect this command to run as if the `- pip:` subsection was not present.
```
$ cat environment.yml
dependencies:
- pip:
$ conda env create -n recreate --file=envi... | Same here, that's because `pip_args` [returns `None`](https://github.com/conda/conda/blob/master/conda_env/pip_util.py#L38) when pip is not installed; While it's actually used find the [pip command and chains it with arguments](https://github.com/conda/conda/blob/master/conda_env/installers/pip.py#L40).
These seem ... | 2017-11-07T21:36:36 |
conda/conda | 6,277 | conda__conda-6277 | [
"6057"
] | d75d6a6a89049fb71d13b8eb0d719c0cf0937f3b | diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -6,11 +6,12 @@
from .base.constants import CONDA_TARBALL_EXTENSION, DEFAULTS_CHANNEL_NAME, MAX_CHANNEL_PRIORITY
from .base.context import context
-from .common.compat import iteritems, iterkeys, itervalues, string_type... | CondaError: Cannot link a source that does not exist. C:\Users\...\Anaconda3\Scripts\conda.exe
I get this error when trying to conda install tqdm. Pip install works fine. However, when trying conda install spacy, I still get the same error because the conda installation for spacy attempts to conda install tqdm.
| Do you still get the error after running `conda clean --all --yes`?
If you need additional help, please include more details. At a minimum, `conda info`, the command that gave the error, and the full stack trace. Whatever details are necessary to independently reproduce the issue you're seeing.
Thanks @kalefranz. I h... | 2017-11-08T02:23:12 | |
conda/conda | 6,295 | conda__conda-6295 | [
"6220",
"6243"
] | 824ffae0ae9344a99343fe7aafbcefa89a74544c | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -11,7 +11,7 @@
from .constants import (APP_NAME, DEFAULTS_CHANNEL_NAME, DEFAULT_CHANNELS, DEFAULT_CHANNEL_ALIAS,
ERROR_UPLOAD_URL, PLATFORM_DIRECTORIES, PathConflict, ROOT_ENV_... | 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
@@ -4,6 +4,7 @@
from logging import getLogger
from os import W_OK, access
from os.path import basename, dirname, isdir, isfile, join
+from uuid import uuid4
from .create impor... | Add flag to build environment.yml without build strings
https://gitter.im/conda/conda?at=59ef54ebe44c43700a70e9a4
https://twitter.com/drvinceknight/status/922837449092542464?ref_src=twsrc%5Etfw
> Due to hashes of packages being introduced in `envinronment.yml` I'm getting all sorts of issues with building envs from... | 2017-11-13T21:43:58 | |
conda/conda | 6,299 | conda__conda-6299 | [
"6012"
] | d5d002acefe580451a6bf5cbf26dbada3ad45c9a | diff --git a/conda_env/cli/main_create.py b/conda_env/cli/main_create.py
--- a/conda_env/cli/main_create.py
+++ b/conda_env/cli/main_create.py
@@ -6,7 +6,7 @@
import textwrap
from conda.cli import common, install as cli_install
-from conda.gateways.disk.delete import rm_rf
+from conda.gateways.disk.delete import rm... | Purging the ".trash" folder.
OS: Windows.
When updating an environment, a snapshot of the environment get stored in the ```[miniconda]\pkgs\.trash```
Is there a way to clean up this trash directory with a ```conda``` command?
| I also have this problem and would be interested in a solution. My reading of the code is that a call to `delete_trash()` needs to be added somewhere, but I'm not sufficiently familiar with the code to know the best way to do this.
Further to this, if you try to manually delete the environment snapshots, you'll get a "... | 2017-11-14T02:43:44 | |
conda/conda | 6,352 | conda__conda-6352 | [
"5827"
] | 58f340d45f87a3bebfcd6f2058e21aabb99f2021 | 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
@@ -122,14 +122,13 @@ def error(self, message):
else:
argument = None
if argument and argument.dest == "cmd":
- m = re.comp... | diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -338,7 +338,8 @@ def test_CommandNotFoundError_simple(self):
conda_exception_handler(_raise_helper, exc)
assert not c.stdout
- assert c.stderr.strip() == "... | No error generated on non-existent sub-command
```
[root@70a337fa2e68 build_scripts]# conda info
active environment : None
user config file : /root/.condarc
populated config files : /opt/miniconda/.condarc
conda version : 4.4.0rc0
conda-build version : 3.0.9
python version :... | We just need to switch conda over to click already. | 2017-11-28T03:25:08 |
conda/conda | 6,363 | conda__conda-6363 | [
"6181"
] | a3254b18f1d7a379620f502ec6dd7e845cb03ae8 | diff --git a/conda/core/solve.py b/conda/core/solve.py
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -1,12 +1,11 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from enum import Enum
from genericpath import exists
from logging import DEBUG, g... | diff --git a/tests/core/test_solve.py b/tests/core/test_solve.py
--- a/tests/core/test_solve.py
+++ b/tests/core/test_solve.py
@@ -467,12 +467,11 @@ def test_update_all_1():
'channel-1::tk-8.5.13-0',
'channel-1::zlib-1.2.7-0',
'channel-1::llvm-3.2-0',
- 'channel-1::pyth... | make sure conda 4.4 has soft-pinning for python
https://github.com/conda/conda/issues/6164#issuecomment-336733311
| 2017-11-29T15:27:57 | |
conda/conda | 6,364 | conda__conda-6364 | [
"5417"
] | aba43f2015c8713a236d858aa91e7b3205d33845 | diff --git a/conda/core/solve.py b/conda/core/solve.py
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -1,15 +1,14 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from enum import Enum
from genericpath import exists
from logging import DEBUG, g... | diff --git a/tests/core/test_solve.py b/tests/core/test_solve.py
--- a/tests/core/test_solve.py
+++ b/tests/core/test_solve.py
@@ -170,49 +170,49 @@ def test_prune_1():
specs_to_remove = MatchSpec("numbapro"),
with get_solver(specs_to_remove=specs_to_remove, prefix_records=final_state_1,
... | Respecting topological sorting for environment removal
Not sure if this is implemented in newer versions of `conda`, but it would be nice if environment removal performed a topological sort and uninstalled packages based on this sorting. Namely only removing packages that are not required for anything else first. For t... | Also ran into a similar issue when doing `conda update --all` recently.
I *think* this should be done in 4.4. I'm adding the milestone so I can confirm later. If it's not done yet, it might get bumped past 4.4.0. Hopefully it's already done.
That's great news! Thanks @kalefranz. 😄 | 2017-11-29T17:33:27 |
conda/conda | 6,367 | conda__conda-6367 | [
"6201"
] | aba43f2015c8713a236d858aa91e7b3205d33845 | diff --git a/conda/cli/main_search.py b/conda/cli/main_search.py
--- a/conda/cli/main_search.py
+++ b/conda/cli/main_search.py
@@ -36,7 +36,7 @@ def execute(args, parser):
channels_urls = tuple(calculate_channel_urls(
channel_urls=context.channels,
prepend=not args.override_channels,
... | Conda 4.4 doesn't support --platform flag correctly?
For example, the portpicker package is not available for Windows. But it still reports it:
```
(base) [nwani@centos6x64 aggregate]$ conda search portpicker --platform win-64
Loading channels: done
Name Version Build Channe... | Equivalent syntax in conda 4.4 is
conda search */win-64::portpicker
conda search portpicker[subdir=win-64]
I'm not seeing what you are I don't think
```
kfranz@0283:~/continuum/conda *4.4.x ❯ python -m conda search portpicker --platform win-64
Loading channels: done
PackagesNotFoundError: The follow... | 2017-11-29T22:36:01 | |
conda/conda | 6,368 | conda__conda-6368 | [
"6045"
] | aba43f2015c8713a236d858aa91e7b3205d33845 | 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
@@ -112,7 +112,6 @@ def _get_action_from_name(self, name):
def error(self, message):
import re
from .find_commands import find_executable
-
exc = sys... | diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -338,7 +338,7 @@ def test_CommandNotFoundError_simple(self):
conda_exception_handler(_raise_helper, exc)
assert not c.stdout
- assert c.stderr.strip() == (... | conda 4.4 + zsh: conda:shift:1: shift count must be <= $#
With conda 4.4.0rc1 and zsh, calling the new conda shell function with no arguments results in
```
$ conda
conda:shift:1: shift count must be <= $#
usage: conda [-h] [-V] command ...
conda: error: argument command: invalid choice: '' (choose from 'clean', '... | Thanks for the report!
Sent from my iPhone
> On Sep 30, 2017, at 12:06 AM, Antony Lee <notifications@github.com> wrote:
>
> With conda 4.4.0rc1 and zsh, calling the new conda shell function with no arguments results in
>
> $ conda
> conda:shift:1: shift count must be <= $#
> usage: conda [-h] [-V] command ...
> con... | 2017-11-29T22:58:35 |
conda/conda | 6,369 | conda__conda-6369 | [
"6366"
] | bf233020b4666cfbcaea6f8a2a4c28647aafce32 | diff --git a/conda/exceptions.py b/conda/exceptions.py
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -6,7 +6,7 @@
from logging import getLogger
import os
import sys
-from traceback import format_exception_only, format_exception
+from traceback import format_exception, format_exception_only
from . import ... | Better error message for when `conda activate` isn't a command
Tell users how to get `conda activate` as a command in 4.4 through a better error message.
| 2017-11-29T23:46:42 | ||
conda/conda | 6,370 | conda__conda-6370 | [
"6194"
] | c06adf205b195329c7c13533cac2fd3e20302145 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -89,6 +89,7 @@ class Context(Configuration):
add_pip_as_python_dependency = PrimitiveParameter(True)
allow_softlinks = PrimitiveParameter(False)
auto_update_conda = PrimitiveParameter(Tru... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -1277,6 +1277,7 @@ def side_effect(self, url, **kwargs):
del result.headers[header]
return result
+ SubdirData._cache_.clear()
... | conda only updates itself in the root environment
I was listening to a presentation about conda a couple of days ago where it was mentioned that conda aggressively auto-updates itself. Aggressive auto-updates can be problematic, because they can result in the quick spread of a buggy release that is no longer able to up... | This problem just reared its head in practice: as of conda 4.3.27, new packages are going into ``https://repo.continuum.io/pkgs/main/``, and so when I tried to install packages in any environment, I was getting out of date packages. After ``conda update conda`` to upgrade 4.3.25, it works fine, but I only knew to do ... | 2017-11-30T00:23:30 |
conda/conda | 6,371 | conda__conda-6371 | [
"5370"
] | 640e48a1da494669aae40458e2d18b15b21e0c99 | diff --git a/conda/core/index.py b/conda/core/index.py
--- a/conda/core/index.py
+++ b/conda/core/index.py
@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from concurrent.futures import as_completed
from itertools import chain
from logg... | conda install --offline still performs online operations
Even `conda` seems to notice that it shouldn't be doing an online operation when the `--offline` flag has been specified:
```bash
$ conda install --offline statsmodels
Fetching package metadata ...........
Solving package specifications: .
Package plan f... | Can you add a `-vv` so we can get the full stack trace?
Oh. Wait. Try 4.3.18.
There were two PRs in 4.3.18 that hopefully killed at least a couple of these code paths.
@ijstokes Can you confirm that you're still seeing this with conda 4.3.18?
Unfortunately the problem is still there:
```bash
$ conda install --off... | 2017-11-30T00:36:31 | |
conda/conda | 6,434 | conda__conda-6434 | [
"6429"
] | c06adf205b195329c7c13533cac2fd3e20302145 | 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
@@ -25,7 +25,7 @@
def execute(args, parser):
- if not (args.all or args.package_names or args.features):
+ if not (args.all or args.package_names):
raise CondaValueError('no... | conda 4.4.0rc2 AttributeError on 'conda remove'
"command": "/home/matt/anaconda3/bin/conda remove --name tensorflow"
```
AttributeError", "exception_type": "<class 'AttributeError'>", "traceback": "Traceback (most recent call last):
File \"/home/matt/anaconda3/lib/python3.6/site-packages/conda/exceptions.py\... | 2017-12-11T18:12:15 | ||
conda/conda | 6,436 | conda__conda-6436 | [
"6431"
] | c06adf205b195329c7c13533cac2fd3e20302145 | 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
@@ -195,33 +195,25 @@ def get_info_dict(system=False):
info_dict['UID'] = os.geteuid()
info_dict['GID'] = os.getegid()
- if system:
- evars = {
- 'CIO_TEST',
- ... | diff --git a/tests/test_info.py b/tests/test_info.py
--- a/tests/test_info.py
+++ b/tests/test_info.py
@@ -31,12 +31,8 @@ def test_info():
conda_info_s_out, conda_info_s_err, rc = run_command(Commands.INFO, '-s')
assert_equals(conda_info_s_err, '')
for name in ['sys.version', 'sys.prefix', 'sys.executabl... | conda 4.4.0rc2 AssertionError on 'conda create'
"command": "/home/travis/miniconda/bin/conda create -y -p /home/travis/build/conda/conda-build/tests/conda_build_bootstrap_test git"
```
Traceback (most recent call last):
File \"/home/travis/miniconda/lib/python3.6/site-packages/conda-4.4.0rc2.post15+0dc8573d-... | This was in Travix CI, and a post 4.4.0rc2 version. | 2017-12-11T18:35:55 |
conda/conda | 6,442 | conda__conda-6442 | [
"6441"
] | 5c0cf2afb1c2d0b1dddd7e396cf13f4bfaecf4d6 | diff --git a/conda/models/match_spec.py b/conda/models/match_spec.py
--- a/conda/models/match_spec.py
+++ b/conda/models/match_spec.py
@@ -349,10 +349,8 @@ def _make(field_name, value):
matcher = value
elif field_name in _implementors:
matcher = _implementors[field_name](v... | conda 4.4.0rc2 NotImplementedError on 'conda list'
"command": "/home/rob/miniconda3/bin/conda list"
```
Traceback (most recent call last):
File \"/home/rob/miniconda3/lib/python3.6/site-packages/conda/exceptions.py\", line 683, in __call__
return func(*args, **kwargs)
File \"/home/rob/miniconda3/lib/... | 2017-12-12T18:06:40 | ||
conda/conda | 6,446 | conda__conda-6446 | [
"6419"
] | 3d8374eba3a0335c3ac466c3000898d057187792 | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -51,7 +51,7 @@ def __init__(self, shell, arguments=None):
self.shift_args = 0
self.unset_var_tmpl = 'unset %s'
- self.set_var_tmpl = 'export %s="%s"'
+ self.set_var_tmp... | diff --git a/tests/test_activate.py b/tests/test_activate.py
--- a/tests/test_activate.py
+++ b/tests/test_activate.py
@@ -152,6 +152,8 @@ def test_build_activate_shlvl_0(self):
activator = Activator('posix')
builder = activator.build_activate(td)
new_path ... | conda 4.4 weird prompt addition in zsh
Before conda 4.4 my prompt with zsh would look like this, when I'm in my conda env `stable`:

After the update to conda 4.4 (using the blog ins... | 2017-12-13T16:31:58 | |
conda/conda | 6,447 | conda__conda-6447 | [
"6445"
] | 63234e0470d793e2e2bcfd958de094bbe9223571 | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -191,14 +191,8 @@ def _yield_commands(self, cmds_dict):
yield self.run_script_tmpl % script
def build_activate(self, env_name_or_prefix):
- test_path = expand(env_name_or_prefix)
- if ... | conda 4.4.0rc: 'Not a conda environment' plus environments that shouldn't be there
I have a python 3.6 root environment with conda 4.4.0rc2 installed in /usr/local/Anaconda/conda_root/3.6. I sourced $CONDA_ROOT/etc/profile.d/conda.sh.
```shell
$ conda --version
conda 4.4.0rc2
$ conda info
active environm... | > `conda info --envs` and `conda env list` see environments outside of the envs directories
This is intentional and as-designed, so long as those paths are indeed conda environments.
Issue 2 needs a solution for sure though. | 2017-12-13T16:44:22 | |
conda/conda | 6,448 | conda__conda-6448 | [
"6283"
] | 63234e0470d793e2e2bcfd958de094bbe9223571 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -575,7 +575,6 @@ def list_parameters(self):
'ignore_pinned',
'max_shlvl',
'migrated_custom_channels',
- 'no_dependencies',
'only_dependenci... | conda update .. --no-deps wants to remove dependencies
Using conda 4.4rc, when trying to update a single package with `--no-deps`, it actually wants to remove a whole lot of (unrelated) packages:
```
joris@joris-XPS-13-9350:~/scipy$ conda update shapely --no-deps
Solving environment: done
## Package Plan ##
... | The original reason I tried `--no-deps` is because without that it actually tried to downgrade numpy and a bunch of depending packages (that might be the actual problem actually):
```
joris@joris-XPS-13-9350:~/scipy$ conda update shapely
Solving environment: done
## Package Plan ##
environment location: /h... | 2017-12-13T17:25:02 | |
conda/conda | 6,467 | conda__conda-6467 | [
"5158",
"6400"
] | 3d8374eba3a0335c3ac466c3000898d057187792 | diff --git a/conda/core/index.py b/conda/core/index.py
--- a/conda/core/index.py
+++ b/conda/core/index.py
@@ -160,6 +160,8 @@ def get_reduced_index(prefix, channels, subdirs, specs):
with backdown_thread_pool() as executor:
channel_urls = all_channel_urls(channels, subdirs=subdirs)
+ check_white... | re-implement --override-channels
Work out a way for `--override-channels` to start working again, without violating the security model.
Will probably need to add an `#!exclude` flag for sequence config parameters as part of this task.
conda search --override-channels not working (4.3.30)?
My understanding of `--ov... | Also `allow_other_channels` per #4026.
Any news on this bug ?
A workaround for this issue is to temporarily add the lines
```
default_channels: []
channels: []
```
to the `.condarc` file. This seems to disable all channels except those specified on the command line.
```
platform : win-64
... | 2017-12-15T16:30:44 | |
conda/conda | 6,470 | conda__conda-6470 | [
"6466"
] | 3d8374eba3a0335c3ac466c3000898d057187792 | diff --git a/conda/egg_info.py b/conda/egg_info.py
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -75,7 +75,7 @@ def get_egg_info(prefix, all_pkgs=False):
"""
installed_pkgs = linked_data(prefix)
sp_dir = get_site_packages_dir(installed_pkgs)
- if sp_dir is None:
+ if sp_dir is None or not isdi... | conda 4.4 rc2: failure in conda list when editable install has been moved
`conda list` for my root environment is working nicely using conda 4.3, but when upgrading with canary to conda 4.4.0 rc2, the `conda list` command fails with the following error:
```
joris@joris-XPS-13-9350:~/scipy$ conda list
# packages in... | . | 2017-12-15T17:49:40 | |
conda/conda | 6,491 | conda__conda-6491 | [
"6350"
] | 334bb2ee17d0410460705b34eae16ec97e5ea8e1 | diff --git a/conda/core/solve.py b/conda/core/solve.py
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -143,20 +143,34 @@ def solve_final_state(self, deps_modifier=NULL, prune=NULL, ignore_pinned=NULL,
# `solution` and `specs_map` are mutated throughout this method
prefix_data = PrefixData(self... | update --all broken in 4.4.0rc
In 4.4.0rc an `update --all` wants to *remove* 90% of my packages. IMO an update should never remove any packages so the current behaviour seems pretty broken to me.
```
λ conda update --all
Solving environment: done
## Package Plan ##
environment location: C:\Miniconda3
... | Can you give me the output of `conda list` for your environment so I can reproduce?
The result of `conda env export` is available at:
https://gist.github.com/dhirschfeld/0d8f57906980e90468f9060932d7962a
NB: internal channels have been removed since they're not reproducible but they may potentially play a part in th... | 2017-12-19T18:10:39 | |
conda/conda | 6,494 | conda__conda-6494 | [
"6057"
] | 334bb2ee17d0410460705b34eae16ec97e5ea8e1 | diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -6,13 +6,14 @@
from .base.constants import DEFAULTS_CHANNEL_NAME, MAX_CHANNEL_PRIORITY
from .base.context import context
-from .common.compat import iteritems, iterkeys, itervalues, odict, string_types, text_type
+from... | CondaError: Cannot link a source that does not exist. C:\Users\...\Anaconda3\Scripts\conda.exe
I get this error when trying to conda install tqdm. Pip install works fine. However, when trying conda install spacy, I still get the same error because the conda installation for spacy attempts to conda install tqdm.
| Do you still get the error after running `conda clean --all --yes`?
If you need additional help, please include more details. At a minimum, `conda info`, the command that gave the error, and the full stack trace. Whatever details are necessary to independently reproduce the issue you're seeing.
Thanks @kalefranz. I h... | 2017-12-19T22:52:38 | |
conda/conda | 6,510 | conda__conda-6510 | [
"6509"
] | c12f2e8432324199728deb2bb2418b6c858766c1 | 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
@@ -17,7 +17,7 @@
from .. import CondaError
from ..base.constants import CONDA_HOMEPAGE_URL
from ..base.context import context
-from ..common.compat import isiterable, iteritems, string_type... | custom_channels incorrect in 'conda config --show'
Especially for anaconda channel, weird replacement happening.
| 2017-12-21T20:22:49 | ||
conda/conda | 6,511 | conda__conda-6511 | [
"6508"
] | eba59e3d6ba486b6e9a39864b1daacbc7f99f719 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -982,7 +982,7 @@ def _first_writable_envs_dir():
return envs_dir
from ..exceptions import NotWritableError
- raise NotWritableError(context.envs_dirs[0])
+ raise NotWritableErr... | PermissionError writing to environments.txt
"command": "conda install jupyter_core --yes"
```
Traceback (most recent call last):
File \"/home/nbcommon/anaconda3_420/lib/python3.5/site-packages/conda/exceptions.py\", line 721, in __call__
return func(*args, **kwargs)
File \"/home/nbcommon/anaconda3_42... | 2017-12-21T20:40:03 | ||
conda/conda | 6,517 | conda__conda-6517 | [
"6516"
] | 09912b87b21b0a66d638e65561ed126677846a91 | diff --git a/conda/core/index.py b/conda/core/index.py
--- a/conda/core/index.py
+++ b/conda/core/index.py
@@ -44,6 +44,8 @@ def check_whitelist(channel_urls):
% (bad_channel.location, bad_channel.canonical_name))
+LAST_CHANNEL_URLS = []
+
@time_recorder("get_index")
def... | 4.4+conda-build not prioritizing local channel correctly
I have a package, bzip2, build number 4, locally. I'm expecting it to be used as a dependency. Conda 4.3.31 finds it ok:
```
conda build libnetcdf-feedstock/
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from inter... | I've identified the issue. Might take some discussion to figure out how to fix it. Here's the issue...
The `install_actions()` function in conda takes a `channel_priority_map` parameter:
https://github.com/conda/conda/blob/4.4.1/conda/plan.py#L515
I guess in conda 4.4 that took on more/different importance.
... | 2017-12-22T00:11:28 | |
conda/conda | 6,524 | conda__conda-6524 | [
"6523"
] | 09912b87b21b0a66d638e65561ed126677846a91 | diff --git a/conda/core/solve.py b/conda/core/solve.py
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -144,7 +144,11 @@ def solve_final_state(self, deps_modifier=NULL, prune=NULL, ignore_pinned=NULL,
prefix_data = PrefixData(self.prefix)
solution = tuple(Dist(d) for d in prefix_data.iter_recor... | diff --git a/tests/core/test_solve.py b/tests/core/test_solve.py
--- a/tests/core/test_solve.py
+++ b/tests/core/test_solve.py
@@ -1058,28 +1058,29 @@ def test_pinned_1():
)
assert tuple(final_state_5) == tuple(solver._index[Dist(d)] for d in order)
- # now update without pinning
- spe... | 'conda update --all' causes "'python' is not recognized as an internal or external command"
repro steps:
1. fresh install of latest version of miniconda
2. `conda update --all` and yes to all questions
3. restart 'Anaconda Prompt'
and you will see
```
'python' is not recognized as an internal or external comman... | And i ran 'conda update --all' again and yes to all questions, shortcut 'Anaconda Prompt' is then removed. I'm totally confused. | 2017-12-22T03:34:49 |
conda/conda | 6,525 | conda__conda-6525 | [
"6522"
] | 09912b87b21b0a66d638e65561ed126677846a91 | diff --git a/conda/core/solve.py b/conda/core/solve.py
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -241,7 +241,7 @@ def solve_final_state(self, deps_modifier=NULL, prune=NULL, ignore_pinned=NULL,
the output of 'conda info' and 'conda list' for the active environment, along
... | TypeError: not all arguments converted during string formatting
"command": "C:\\Users\\court\\Anaconda3\\Scripts\\conda install matplotlib"
"user_agent": "conda/4.4.1 requests/2.18.4 CPython/3.6.3 Windows/10 Windows/10.0.16299"
```
Traceback (most recent call last):
File \"C:\\Users\\court\\Anaconda3\\l... | 2017-12-22T03:34:59 | ||
conda/conda | 6,526 | conda__conda-6526 | [
"6520"
] | 09912b87b21b0a66d638e65561ed126677846a91 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -160,6 +160,7 @@ class Context(Configuration):
migrated_custom_channels = MapParameter(string_types) # TODO: also take a list of strings
override_channels_enabled = PrimitiveParameter(True)
... | --use-local flag not working in 4.4.0
For some time I've been doing this:
```
conda build --old-build-string --python 2.7
conda install taxcalc=0.0.0 --use-local --yes
```
But that `conda install` command now fails under conda 4.4.0 and 4.4.1.
I have been able to work around this problem by doing this:
```
co... | Does this work?
conda install -c local taxcalc=0.0.0
@kalefranz asked:
> Does this work?
>
> `conda install -c local taxcalc=0.0.0`
Thanks for the suggestion. I'm going to try it now.
It's still a bug either way. If that works for you though, it'll at least help narrow down the problem.
After doi... | 2017-12-22T04:03:06 | |
conda/conda | 6,533 | conda__conda-6533 | [
"6530"
] | 6c5d2bab095f9a2a4f846515800dbcf38f2fac39 | diff --git a/conda/common/compat.py b/conda/common/compat.py
--- a/conda/common/compat.py
+++ b/conda/common/compat.py
@@ -47,9 +47,11 @@
if PY3: # pragma: py2 no cover
from io import StringIO
from itertools import zip_longest
+ from json import JSONDecodeError
elif PY2: # pragma: py3 no cover
fro... | Error when updating/installing packages: ValueError: No JSON object could be decoded
I am hitting this JSON-related `ValueError` basically when trying to update or install any package. For a MWE, I can run the following commands:
$conda create -n testenv
$source activate testenv
$conda install python
... | 2017-12-22T15:00:47 | ||
conda/conda | 6,535 | conda__conda-6535 | [
"6536"
] | 6c5d2bab095f9a2a4f846515800dbcf38f2fac39 | diff --git a/conda_env/installers/pip.py b/conda_env/installers/pip.py
--- a/conda_env/installers/pip.py
+++ b/conda_env/installers/pip.py
@@ -37,7 +37,8 @@ def _pip_install_via_requirements(prefix, specs, args, *_, **kwargs):
requirements.write('\n'.join(specs))
requirements.close()
# pip co... | 'conda env export' doesn't include pip-installed packages
New in conda 4.4. Seems to be a problem only if pip is older than version 9.
| 2017-12-22T16:11:10 | ||
conda/conda | 6,540 | conda__conda-6540 | [
"6538"
] | 6c5d2bab095f9a2a4f846515800dbcf38f2fac39 | diff --git a/conda/common/io.py b/conda/common/io.py
--- a/conda/common/io.py
+++ b/conda/common/io.py
@@ -5,6 +5,7 @@
from concurrent.futures import ThreadPoolExecutor
from contextlib import contextmanager
from enum import Enum
+from errno import EPIPE, ESHUTDOWN
from functools import wraps
from itertools import ... | BrokenPipeError
"command": "conda create -p ./untitled -y python=3.6"
"user_agent": "conda/4.4.2 requests/2.18.4 CPython/3.6.3 Linux/4.10.0-28-generic ubuntu/16.04 glibc/2.23"
```
Traceback (most recent call last):
File \"/home/jon/anaconda3/lib/python3.6/site-packages/conda/exceptions.py\", line 722, i... | 2017-12-22T18:08:33 | ||
conda/conda | 6,542 | conda__conda-6542 | [
"6541"
] | 84d8f425252dafadcaeed5a834300e058456881f | diff --git a/conda/core/envs_manager.py b/conda/core/envs_manager.py
--- a/conda/core/envs_manager.py
+++ b/conda/core/envs_manager.py
@@ -7,7 +7,7 @@
from ..base.constants import ROOT_ENV_NAME
from ..base.context import context
-from ..common.compat import on_win
+from ..common.compat import ensure_text_type, on_w... | python 2 can't read unicode in environments.txt
on a conda install operation, during the transaction
```
Traceback (most recent call last):
File "/Users/kfranz/continuum/conda/conda/core/link.py", line 535, in _execute_actions
action.execute()
File "/Users/kfranz/continuum/conda/conda/core/path_actions.p... | Part of my `~/.conda/environments.txt` file that's causing python 2 to choke:
```
/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/envs/shapely=1.6.0
/var/folders/cp/7r2s_s593j7_cpdtxxsmct880000gp/T/26b3 çêôñáß
/var/folders/cp/7r2s_s593j7_cpdtxxsmct880000gp/T/8eba áçêßôñ
/Users/kfranz/m... | 2017-12-22T18:45:25 | |
conda/conda | 6,550 | conda__conda-6550 | [
"6548"
] | 2060458e0c546a3c70fa041e738cb73b41c4b0d3 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -12,17 +12,21 @@
from . import common
from .common import check_non_admin
+from .. import CondaError
from .._vendor.auxlib.ish import dals
from ..base.constants import ROOT_ENV_NAME
from ..base.conte... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -42,7 +42,7 @@
from conda.core.package_cache import PackageCache
from conda.core.repodata import create_cache_dir
from conda.exceptions import CommandArgumentError, DryRunExit, OperationNotAllowed, \
- ... | conda 4.4 has no difference between 'conda install' and 'conda update'
That is, `conda update` installs packages, even if the package isn't already in the environment.
| 2017-12-23T04:11:05 | |
conda/conda | 6,555 | conda__conda-6555 | [
"6554"
] | 2060458e0c546a3c70fa041e738cb73b41c4b0d3 | 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
@@ -304,7 +304,14 @@ def _make_single_record(self, package_filename):
# to do is remove it and try extracting.
rm_rf(extrac... | Package Cache FileNotFoundError
"command": "/home/rodrigo/anaconda3/bin/conda install --yes --json --force-pscheck --prefix /home/rodrigo/anaconda3 glueviz==0.12.0 --dry-run"
"user_agent": "conda/4.4.3 requests/2.18.4 CPython/3.5.4 Linux/4.4.0-104-generic ubuntu/16.04 glibc/2.23"
```
Traceback (most recent... | 2017-12-23T06:28:03 | ||
conda/conda | 6,558 | conda__conda-6558 | [
"6557"
] | 2060458e0c546a3c70fa041e738cb73b41c4b0d3 | diff --git a/conda/egg_info.py b/conda/egg_info.py
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -29,7 +29,7 @@ def get_site_packages_dir(installed_pkgs):
def get_egg_info_files(sp_dir):
- for fn in os.listdir(sp_dir):
+ for fn in (isdir(sp_dir) and os.listdir(sp_dir) or ()):
if fn.endswith('.e... | conda list FileNotFoundError
```
"command": "/Users/hideki/anaconda/bin/conda list"
"user_agent": "conda/4.4.3 requests/2.14.2 CPython/3.5.2 Darwin/16.7.0 OSX/10.12.6"
Traceback (most recent call last):
File \"/Users/hideki/anaconda/lib/python3.5/site-packages/conda/exceptions.py\", line 722, in __call__
r... | 2017-12-23T07:04:44 | ||
conda/conda | 6,560 | conda__conda-6560 | [
"6529"
] | 2060458e0c546a3c70fa041e738cb73b41c4b0d3 | diff --git a/conda/common/serialize.py b/conda/common/serialize.py
--- a/conda/common/serialize.py
+++ b/conda/common/serialize.py
@@ -64,6 +64,16 @@ def yaml_load_safe(string):
return yaml.load(string, Loader=yaml.SafeLoader, version="1.2")
+def yaml_load_standard(string):
+ """Uses the default (unsafe) lo... | Conda 4.4.2 YAML parsing bug
When trying to build my environment with conda 4.4.2, I get the following error. This did not occur with previous versions.
If I force downgrade conda to 4.3.31 before trying to build my environment, it works fine.
```
Traceback (most recent call last):
File "[conda_dir]/l... | I actually have to downgrade to 4.3.31 to get this working again, sorry - 4.4.1 was a typo.
I'm unsure exactly what you mean here by "build my environment". What is the command you're executing when getting the error?
Sorry. I'm running:
```conda env create --force --file <requirements yaml file>```
I see the probl... | 2017-12-23T10:34:05 | |
conda/conda | 6,564 | conda__conda-6564 | [
"6562"
] | 2060458e0c546a3c70fa041e738cb73b41c4b0d3 | 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
@@ -1,12 +1,14 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from errno import EACCES, EPERM
from functools imp... | package cache PermissionsError with repodata_record.json
```
error: PermissionError(13, 'Permission denied')
command: /home/jing/anaconda3/bin/conda upgrade Requests
user_agent: conda/4.4.3 requests/2.18.4 CPython/3.6.1 Linux/4.13.0-21-generic ubuntu/17.10 glibc/2.26
_messageid: -9223372036845975622
_messagetime: ... | ```
error: PermissionError(13, 'Permission denied')
command: /anaconda/bin/conda install cmake
user_agent: conda/4.4.3 requests/2.18.4 CPython/3.6.1 Darwin/17.3.0 OSX/10.13.2
_messageid: -9223372036845975560
_messagetime: 1514034249000 / 2017-12-23 07:04:09
_receipttime: 1514022115225 / 2017-12-23 03:41:55
Tra... | 2017-12-23T21:09:02 | |
conda/conda | 6,565 | conda__conda-6565 | [
"6546"
] | 7616b87ad87b80da16b8263011c9c708be98147c | diff --git a/conda/history.py b/conda/history.py
--- a/conda/history.py
+++ b/conda/history.py
@@ -163,7 +163,7 @@ def get_user_requests(self):
specs = literal_eval(specs)
elif '[' not in specs:
specs = specs.split(',')
- specs = ... | I got: Solving environment: failed
After my Conda environment activated, I issue this command:
`conda update conda`
And I received an error message:
> Solving environment: failed
matches_for_spec:
- defaults::certifi-2017.11.5-py36hb8ac631_0
- defaults::h5py-2.7.1-py36he54a1c3_0
- defaults::hdf... | Thanks for filing this issue. I added that special error message to help us get to the bottom of something confusing we were seeing in automatically-uploaded error reports.
I think I'm getting close to understanding this, but could use one more piece of information...
Do you mind posting here an additional file ... | 2017-12-23T21:28:09 | |
conda/conda | 6,568 | conda__conda-6568 | [
"6546"
] | 5e3915b8d06618206cd29f2654dfc2be698dc332 | diff --git a/conda/history.py b/conda/history.py
--- a/conda/history.py
+++ b/conda/history.py
@@ -163,7 +163,7 @@ def get_user_requests(self):
specs = literal_eval(specs)
elif '[' not in specs:
specs = specs.split(',')
- specs = ... | I got: Solving environment: failed
After my Conda environment activated, I issue this command:
`conda update conda`
And I received an error message:
> Solving environment: failed
matches_for_spec:
- defaults::certifi-2017.11.5-py36hb8ac631_0
- defaults::h5py-2.7.1-py36he54a1c3_0
- defaults::hdf... | Thanks for filing this issue. I added that special error message to help us get to the bottom of something confusing we were seeing in automatically-uploaded error reports.
I think I'm getting close to understanding this, but could use one more piece of information...
Do you mind posting here an additional file ... | 2017-12-24T02:39:13 | |
conda/conda | 6,573 | conda__conda-6573 | [
"6572"
] | fbf3c0dac0667293d8926031119fb0798344d848 | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -4,7 +4,7 @@
import bz2
from collections import defaultdict
from contextlib import closing
-from errno import ENODEV
+from errno import EACCES, ENODEV, EPERM
from genericpath import getmtime, is... | cached repodata.json PermissionsError
```
error: PermissionError(13, 'Permission denied')
command: /Users/apple/.conda/envs/cafe/bin/conda uninstall protobuf
user_agent: conda/4.4.3 requests/2.18.4 CPython/3.6.1 Darwin/16.1.0 OSX/10.12.1
_messageid: -9223372036845375609
_messagetime: 1514148478933 / 2017-12-24 14:... | 2017-12-24T23:17:48 | ||
conda/conda | 6,585 | conda__conda-6585 | [
"6577"
] | fbf3c0dac0667293d8926031119fb0798344d848 | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -426,6 +426,10 @@ def _update_prompt(self, set_vars, conda_prompt_modifier):
current_prompt_modifier = os.environ.get('CONDA_PROMPT_MODIFIER')
if current_prompt_modifier:
ps1 ... | Updated to conda 4.4.4, can't activate any environment
I just updated to 4.4.4, and now activation fails on a bash syntax error at the PS1 configuration, even for a freshly created env:
```bash
conda create -n foo -y -q python
````
then:
```bash
alpamayo[junk]> conda activate foo
bash: syntax error near une... | Can you give me the output of
echo "$PS1"
in a new terminal window?
```
alpamayo[~]> echo "$PS1"
\[\033[0;32m\]$(__git_ps1 '(%s)')\[\033[1;31m\]\[\033[1;34m\]\h[\[\033[1;36m\]\W\[\033[1;34m\]]\[\033[1;32m\]> \[\033[0m\]
```
ps - for now I'm back to being able to work by reverting to 4.3.31, so no biggie ... | 2017-12-27T17:12:27 | |
conda/conda | 6,588 | conda__conda-6588 | [
"6579"
] | fbf3c0dac0667293d8926031119fb0798344d848 | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -266,6 +266,12 @@ def build_activate(self, env_name_or_prefix):
self._update_prompt(set_vars, conda_prompt_modifier)
+ if on_win and self.shell == 'cmd.exe':
+ import ctypes
+ ... | diff --git a/tests/test_activate.py b/tests/test_activate.py
--- a/tests/test_activate.py
+++ b/tests/test_activate.py
@@ -33,6 +33,13 @@
log = getLogger(__name__)
+if on_win:
+ import ctypes
+ PYTHONIOENCODING = ctypes.cdll.kernel32.GetACP()
+else:
+ PYTHONIOENCODING = None
+
+
class ActivatorUnitTests(... | Win 10: Update to conda 4.4.4 breaks python path
I updated to conda 4.4.4 recently, and now when I open a new "Anaconda Prompt" the first thing that is displayed is:
`'python' is not recognized as an internal or external command,
operable program or batch file.`
At this point, I can start Python just fine. However, ... | Do you know what version of conda you had before you updated?
I started with a fresh Anacoda distribution. (Py3.6, Win64) | 2017-12-27T19:43:34 |
conda/conda | 6,589 | conda__conda-6589 | [
"6584"
] | fbf3c0dac0667293d8926031119fb0798344d848 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from errno import ENOENT
from logging import getLogger
import os
from os.p... | os.getcwd() FileNotFoundError
```
error: FileNotFoundError(2, 'No such file or directory')
command: /root/anaconda3/bin/conda shell.posix deactivate
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.3 Linux/4.13.0-kali1-amd64 kali/2017.3 glibc/2.25
_messageid: -9223372036844975611
_messagetime: 1514233339489 / 2... | ```
error: FileNotFoundError(2, 'No such file or directory')
command: /Users/limxing/anaconda3/bin/conda install iris
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.4 Darwin/17.3.0 OSX/10.13.2
_messageid: -9223372036844475580
_messagetime: 1514289512434 / 2017-12-26 05:58:32
Traceback (most recent call las... | 2017-12-27T20:26:53 | |
conda/conda | 6,602 | conda__conda-6602 | [
"6592"
] | fbf3c0dac0667293d8926031119fb0798344d848 | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -187,6 +187,9 @@ class Help(CondaError): # NOQA
self.command = command
def _yield_commands(self, cmds_dict):
+ for script in cmds_dict.get('deactivate_scripts', ()):
+ yield self.run_... | diff --git a/tests/test_activate.py b/tests/test_activate.py
--- a/tests/test_activate.py
+++ b/tests/test_activate.py
@@ -446,9 +446,9 @@ def test_posix_basic(self):
reactivate_data = c.stdout
assert reactivate_data == dals("""
+ . "%(deactivate1)s"
export CONDA_PROM... | deactivate sets `CONDA_PREFIX` to the wrong value.
Deactivating an env. into which the new compilers have been installed leads to:
```
ERROR: This cross-compiler package contains no program /opt/conda/bin/x86_64-conda_cos6-linux-gnu-cc
```
This comes from [here](https://github.com/AnacondaRecipes/aggregate/blob... | > It seems that `CONDA_PREFIX` has been set to the prefix of the new environment instead of that of the old environment.
It's my understanding that `CONDA_PREFIX` has always been the path to the current active prefix. At least back to the #1727 days or so. Then again, I could be completely mis-remembering, and I'v... | 2017-12-28T17:57:46 |
conda/conda | 6,609 | conda__conda-6609 | [
"6607"
] | 03df284ace72bf77601513aaabf91120f5fe9b0c | 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
@@ -6,6 +6,7 @@
from logging import getLogger
import os
from os.path import abspath, expanduser, join
+from subprocess import Popen
import sys
from textwrap import dedent
@@ ... | conda env giving strange non-blocking behavior on Windows
Using conda 4.4.4, this is happening in both the Anaconda prompt and Git Bash. To reproduce, simply run `conda env -h`. The prompt will return and it seems like conda is run in the background, producing output a few seconds later. Strangely enough, this doesn't ... | I noticed that too. Is it new in 4.4, and not that way in 4.3? I guess it's coming from using `os.execv()`, which apparently behaves differently on Windows than I'm used to on unix systems?
To clarify, I noticed it yesterday with `conda build`.
I never noticed this sort of thing with any older versions.
Oh, and I was... | 2017-12-29T14:57:11 | |
conda/conda | 6,615 | conda__conda-6615 | [
"6612"
] | 0f3a83b1fd068c75e530ddece96e98cc5b5e6d8e | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -368,8 +368,20 @@ def build_reactivate(self):
def _get_starting_path_list(self):
path = os.environ['PATH']
if on_win:
- # on Windows, the python interpreter prepends sys.prefix\Library... | diff --git a/tests/cli/test_activate.py b/tests/cli/test_activate.py
--- a/tests/cli/test_activate.py
+++ b/tests/cli/test_activate.py
@@ -246,7 +246,6 @@ def test_activate_bad_env_keeps_existing_good_env(shell):
@pytest.mark.installed
-@pytest.mark.xfail(on_win and datetime.now() < datetime(2018, 11, 21), reason=... | PATH manipulation problems with conda.bat activate on Windows
With conda 4.4.5:
```
C:\Users\builder>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\PuTTY\;C:\... | Is this with 4.4.5 in canary?
Sent from my iPhone
> On Dec 29, 2017, at 8:19 PM, Ray Donnelly <notifications@github.com> wrote:
>
> C:\Users\builder>echo %PATH%
> C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Perfor... | 2017-12-30T23:17:42 |
conda/conda | 6,619 | conda__conda-6619 | [
"6618"
] | 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891 | 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
@@ -11,11 +11,12 @@
from .. import CondaError
from .._vendor.auxlib.entity import EntityEncoder
+from ..base.constants import PathConflict, SafetyChecks
from ..base.context import context,... | RepresenterError('cannot represent an object: prevent',)
```
error: RepresenterError('cannot represent an object: prevent',)
command: C:\tools\Anaconda3\Scripts\conda config --set path_conflict prevent
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.3 Windows/10 Windows/10.0.16299
_messageid: -92233720368432255... | 2018-01-01T00:01:33 | ||
conda/conda | 6,647 | conda__conda-6647 | [
"6643"
] | 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891 | diff --git a/conda/models/version.py b/conda/models/version.py
--- a/conda/models/version.py
+++ b/conda/models/version.py
@@ -463,12 +463,17 @@ def __new__(cls, spec):
self.op = VersionOrder.startswith
self.cmp = VersionOrder(spec.rstrip('*').rstrip('.'))
self.match = self.veval_... | diff --git a/tests/models/test_match_spec.py b/tests/models/test_match_spec.py
--- a/tests/models/test_match_spec.py
+++ b/tests/models/test_match_spec.py
@@ -50,6 +50,7 @@ def test_match_1(self):
('numpy >1.8,<2|==1.7', False),('numpy >1.8,<2|>=1.7.1', True),
('numpy >=1.8|1.7*', True), ('... | version '==' interpreted differently in 4.3 and 4.4
| 2018-01-04T18:03:41 | |
conda/conda | 6,651 | conda__conda-6651 | [
"6650"
] | 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891 | diff --git a/conda/exceptions.py b/conda/exceptions.py
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -13,7 +13,7 @@
from ._vendor.auxlib.ish import dals
from ._vendor.auxlib.type_coercion import boolify
from .base.constants import PathConflict, SafetyChecks
-from .common.compat import ensure_text_type, inpu... | Suppress full stack trace for UnicodeEncodeError and UnicodeDecodeError in python 2
Decline to handle UnicodeEncodeError and UnicodeDecodeError when python2 is the interpreter under which conda is running.
If you encounter this problem, consider downloading Miniconda3 or Anaconda3.
| 2018-01-04T20:21:36 | ||
conda/conda | 6,652 | conda__conda-6652 | [
"6620"
] | 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891 | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -283,7 +283,8 @@ def build_activate(self, env_name_or_prefix):
def build_deactivate(self):
# query environment
old_conda_shlvl = int(os.getenv('CONDA_SHLVL', 0))
- if old_conda_shlvl <= 0:... | KeyError(u'CONDA_PREFIX',)
```
error: KeyError(u'CONDA_PREFIX',)
command: D:\Anaconda2\Scripts\conda shell.cmd.exe deactivate deactivate
user_agent: conda/4.4.4 requests/2.18.4 CPython/2.7.14 Windows/10 Windows/10.0.16299
_messageid: -9223372036842425555
_messagetime: 1514685063692 / 2017-12-30 19:51:03
Traceba... | 2018-01-04T20:35:44 | ||
conda/conda | 6,653 | conda__conda-6653 | [
"6624"
] | 4d963e1da043f3eb8b0430263a6185db134f33df | diff --git a/conda/common/io.py b/conda/common/io.py
--- a/conda/common/io.py
+++ b/conda/common/io.py
@@ -2,7 +2,8 @@
from __future__ import absolute_import, division, print_function, unicode_literals
from collections import defaultdict
-from concurrent.futures import ThreadPoolExecutor
+from concurrent.futures im... | RuntimeError: can't start new thread
```
error: RuntimeError("generator didn't stop after throw()",)
command: /home/mholekev/miniconda3/bin/conda install --yes numpy scipy matplotlib jupyter git pandas
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.3 Linux/2.6.32-696.10.3.el6.x86_64 centos/6.7 glibc/2.12
_mess... | ```
error: RuntimeError("can't start new thread",)
command: /ahg/regevdata/users/subraman/software/miniconda3/bin/conda create -n test
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.3 Linux/2.6.32-696.16.1.el6.x86_64 rhel/6.9 glibc/2.12
_messageid: -9223372036842425559
_messagetime: 1514681157023 / 2017-12-30... | 2018-01-04T21:02:35 | |
conda/conda | 6,655 | conda__conda-6655 | [
"6627"
] | 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891 | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -413,24 +413,30 @@ def _replace_prefix_in_path(self, old_prefix, new_prefix, starting_path_dirs=Non
else:
path_list = list(starting_path_dirs)
if on_win: # pragma: unix no cover
- ... | AttributeError: 'NoneType' object has no attribute 'endswith'
```
error: AttributeError("'NoneType' object has no attribute 'endswith'",)
command: /home/wang/anaconda2/bin/conda shell.posix activate py2
user_agent: conda/4.4.4 requests/2.18.4 CPython/2.7.13 Linux/3.19.0-42-generic ubuntu/14.04 glibc/2.19
_messageid... | 2018-01-04T21:22:38 | ||
conda/conda | 6,656 | conda__conda-6656 | [
"6629"
] | 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -968,6 +968,14 @@ def determine_target_prefix(ctx, args=None):
except AttributeError:
prefix_path = None
+ if prefix_name is not None and not prefix_name.strip(): # pragma: no cover
... | conda update --name AssertionError
```
error: AssertionError()
command: /Users/cpthgli/.anyenv/envs/pyenv/versions/default/bin/conda update --name --all --yes
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.4 Darwin/17.3.0 OSX/10.13.2
_messageid: -9223372036843525540
_messagetime: 1514462637935 / 2017-12-28 0... | 2018-01-04T21:31:32 | ||
conda/conda | 6,657 | conda__conda-6657 | [
"6630"
] | 114e4b3cfb0fae3d566fd08a0c0c1d7e24c19891 | diff --git a/conda/core/repodata.py b/conda/core/repodata.py
--- a/conda/core/repodata.py
+++ b/conda/core/repodata.py
@@ -10,7 +10,6 @@
import json
from logging import DEBUG, getLogger
from mmap import ACCESS_READ, mmap
-from os import makedirs
from os.path import dirname, isdir, join, splitext
import re
from te... | repodata AssertionError
```
error: AssertionError()
command: /opt/intel/intelpython3/bin/conda update --all -y
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.3 Linux/4.9.49-moby debian/9 glibc/2.24
_messageid: -9223372036843625573
_messagetime: 1514424955743 / 2017-12-27 19:35:55
Traceback (most recent cal... | 2018-01-04T21:37:05 | ||
conda/conda | 6,662 | conda__conda-6662 | [
"6661"
] | 5b60e3d0acdbd7900c6965f74ba0620c370adda9 | 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
@@ -11,6 +11,7 @@
from .install import handle_txn
from ..base.context import context
from ..common.compat import iteritems, iterkeys
+from ..core.envs_manager import unregister_env
from ..c... | Conda remove doesn't update environments.txt
conda 4.4.6
I'm using `conda remove -p (envPath) --all -y`. The folder gets deleted but the environments.txt file is not updated.
| 2018-01-05T01:49:39 | ||
conda/conda | 6,668 | conda__conda-6668 | [
"6665"
] | 83ef15f512e483e2186912271d18ce84b3a61932 | diff --git a/conda/models/dist.py b/conda/models/dist.py
--- a/conda/models/dist.py
+++ b/conda/models/dist.py
@@ -147,7 +147,7 @@ def from_string(cls, string, channel_override=NULL):
if channel_override != NULL:
channel = channel_override
- elif channel is None:
+ if channel is No... | Installation of local packages breaks conda 4.4.6
Not sure whether this is a duplicate of https://github.com/conda/conda/issues/6621
Apparently, installing local packages (such as `conda install <path-to-pkg.tar.bz2>`) breaks the conda environment with conda 4.4.6. Consider the following script that
1. installs ... | Thank you for the report! I didn't understand how #6621 was coming about. The extra detail is exactly what I needed. Very much appreciate it.
You're welcome! Thanks a lot for your work here!! | 2018-01-05T20:35:17 | |
conda/conda | 6,669 | conda__conda-6669 | [
"6667",
"6667"
] | 31a52a8a8771aafb0582822dd2e00b3274e1ffba | diff --git a/conda/activate.py b/conda/activate.py
--- a/conda/activate.py
+++ b/conda/activate.py
@@ -57,10 +57,10 @@ def __init__(self, shell, arguments=None):
self.shift_args = 0
self.command_join = '\n'
- self.unset_var_tmpl = 'unset %s'
- self.export_var_tmpl = "ex... | diff --git a/tests/cli/test_activate.py b/tests/cli/test_activate.py
--- a/tests/cli/test_activate.py
+++ b/tests/cli/test_activate.py
@@ -137,12 +137,18 @@ def _format_vars(shell):
{set} CONDARC=
{set} CONDA_PATH_BACKUP=
{set} PATH="{new_path}"
+{set} _CONDA_ROOT="{shellpath}"
"""
if 'bash' in shell:
... | Source activation for anaconda python environments no longer working (Mac)
The source activate command in conda is suddenly no longer working for me. When I type `source activate py3` in my Mac terminal, I get this error `-bash: _conda_activate: command not found`.
I recently created a new conda environment for TabP... | Guessing this is a duplicate of https://github.com/conda/conda/issues/6639?
Maybe not. Could you open a new terminal, and then give me the output of
env | sort
set -x
source activate py3
You'll want to close the terminal down after you do the above. Or
set +x
to get things back to normal.
... | 2018-01-05T20:59:02 |
conda/conda | 6,671 | conda__conda-6671 | [
"6659"
] | 0ea3086ca52deacb09c6e45c79165e32e751be27 | 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,7 +11,7 @@
from ..base.constants import DEFAULTS_CHANNEL_NAME, UNKNOWN_CHANNEL
from ..base.context import context
from ..common.compat import text_type
-from ..core.linked_data import is_link... | Python missing when installing a noarch package from explicit environment file
Hello!
We're running into a really strange issue with `conda 4.4.6` (and previously with `conda 4.4.0`).
We usually provide installation instructions for our software using `conda install --file` which works really well for our users.... | Thanks for the report. I think `@EXPLICIT` files have always been installed in-order. I don't think there's anything different here between 4.3 and 4.4.
I'm guessing it's more likely that conda 4.4 is giving the wrong order for `conda list --explicit --export`. Could you do me a favor and verify the order you wan... | 2018-01-05T22:13:37 | |
conda/conda | 6,694 | conda__conda-6694 | [
"6693"
] | 4d963e1da043f3eb8b0430263a6185db134f33df | diff --git a/conda/core/solve.py b/conda/core/solve.py
--- a/conda/core/solve.py
+++ b/conda/core/solve.py
@@ -380,9 +380,9 @@ def solve_final_state(self, deps_modifier=NULL, prune=NULL, ignore_pinned=NULL,
if ascendant_name not in specs_to_add_names:
update_names.add(ascen... | KeyError with '--update-deps'
```
error: KeyError(True,)
command: /home/jgrnt/miniconda/bin/conda install --update-deps python= numpy nose scipy matplotlib pandas pytest h5py mkl mkl-service
user_agent: conda/4.4.7 requests/2.18.4 CPython/3.6.3 Linux/4.14.4-gentoo gentoo/2.4.1 glibc/2.25
_messageid: -92233720368375... | 2018-01-09T17:28:03 | ||
conda/conda | 6,708 | conda__conda-6708 | [
"6707"
] | 4d963e1da043f3eb8b0430263a6185db134f33df | 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
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
-from errno import EACCES, EPERM
+from errno import EA... | FileNotFoundError when extracting tarball
```
error: FileNotFoundError(2, 'No such file or directory')
command: C:\Users\Anurag\Anaconda3\Scripts\conda install spyder
user_agent: conda/4.4.7 requests/2.13.0 CPython/3.6.2 Windows/10 Windows/10.0.16299
_messageid: -9223372036837325447
_messagetime: 1515540414747 / 2... | ```
error: FileNotFoundError(2, 'No such file or directory')
command: C:\Anaconda3\Scripts\conda install --yes --json --force-pscheck --prefix C:\Anaconda3 jupyterlab==0.30.6 --dry-run
user_agent: conda/4.4.7 requests/2.18.4 CPython/3.6.3 Windows/10 Windows/10.0.16299
_messageid: -9223372036837325446
_messagetime:... | 2018-01-10T19:38:21 | |
conda/conda | 6,709 | conda__conda-6709 | [
"6700"
] | 4d963e1da043f3eb8b0430263a6185db134f33df | diff --git a/conda/exceptions.py b/conda/exceptions.py
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -2,6 +2,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals
from datetime import timedelta
+from errno import ENOSPC
import json
from logging import getLogger
import o... | OSError: [Errno 28] No space left on device
```
error: OSError(28, 'No space left on device')
command: /home/ddbrothe/anaconda3/envs/tensorflow/bin/conda install keras
user_agent: conda/4.4.7 requests/2.14.2 CPython/3.6.1 Linux/4.10.0-35-generic ubuntu/16.04 glibc/2.23
_messageid: -9223372036837225447
_messagetime... | 2018-01-10T19:51:04 | ||
conda/conda | 6,712 | conda__conda-6712 | [
"6711"
] | 67dedcf32aff9fcd96fd227fdd4cb19bfdaba64b | diff --git a/conda/gateways/disk/update.py b/conda/gateways/disk/update.py
--- a/conda/gateways/disk/update.py
+++ b/conda/gateways/disk/update.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from errno import EINVAL, EXDEV
from logging... | os.rename throws exception when renaming directories on lower overlayfs layers
OS: CentOS Linux release 7.2.1511 (Core)
docker version: 1.12.6
docker storage driver: overlayfs
Docker Image has existing conda environment baked into layer
```
During handling of the above exception, another exception occurred... | Can you give me the full stack trace? That just looks like part of it...
> `During handling of the above exception, another exception occurred:`
```
$ /opt/continuum/anaconda/envs/anaconda44_py35/bin/conda install --yes --prefix /opt/continuum/anaconda/envs/anaconda44_py35 --channel anaconda-enterprise anaconda-en... | 2018-01-10T22:02:43 | |
conda/conda | 6,719 | conda__conda-6719 | [
"6718",
"6230"
] | ad07eba8949e998728c8041af4fc76c34f6bb9ee | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -287,7 +287,7 @@ def install(args, parser, command='install'):
spec_regex = r'^(%s)$' % '|'.join(re.escape(s.split()[0]) for s in ospecs)
print('\n# All requested packages already ... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -28,7 +28,7 @@
import pytest
import requests
-from conda import CondaError, CondaMultiError, plan
+from conda import CondaError, CondaMultiError, plan, __version__ as CONDA_VERSION
from conda._vendor.a... | conda install --rev is broken in 4.3
per https://github.com/ContinuumIO/anaconda-issues/issues/7855#issuecomment-357036226
Write downgrade integration tests
In an integration test:
1. Create an environment with the current conda under test, but include an earlier version of conda in that environment. Probably somet... | 2018-01-11T23:28:25 |
Subsets and Splits
Distinct GitHub Repositories
The query lists all unique GitHub repository names, which provides basic filtering and an overview of the dataset but lacks deeper analytical value.
Unique Repositories in Train
Lists unique repository names from the dataset, providing a basic overview of the repositories present.