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 | 620 | conda__conda-620 | [
"599"
] | c453be49e865297bf12858548a6b3e7891a8cb43 | diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -30,6 +30,11 @@ def normalized_version(version):
return version
+class NoPackagesFound(RuntimeError):
+ def __init__(self, msg, pkg):
+ super(NoPackagesFound, self).__init__(msg)
+ self.pkg = ... | diff --git a/tests/test_resolve.py b/tests/test_resolve.py
--- a/tests/test_resolve.py
+++ b/tests/test_resolve.py
@@ -3,13 +3,15 @@
import unittest
from os.path import dirname, join
-from conda.resolve import ver_eval, VersionSpec, MatchSpec, Package, Resolve
+from conda.resolve import ver_eval, VersionSpec, Match... | Don't bail when a dependency can't be found
When a dependency for a package can't be found, conda bails completely, but this can happen e.g., just for some old builds of something. So we should just exclude any package like this from the solver.
| It can also happen if someone has a package on their binstar but not all the dependencies for it.
| 2014-03-24T18:23:13 |
conda/conda | 662 | conda__conda-662 | [
"464"
] | 3d4118668fca738984cce13d9235e0fc11a79df4 | 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
@@ -63,6 +63,7 @@ def execute(args, parser):
from conda.api import get_index
from conda.cli import pscheck
from conda.install import rm_rf, linked
+ from conda import config
... | diff --git a/tests/helpers.py b/tests/helpers.py
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -5,6 +5,8 @@
import sys
import os
+from contextlib import contextmanager
+
def raises(exception, func, string=None):
try:
a = func()
@@ -35,3 +37,31 @@ def run_conda_command(*args):
stdout, stderr =... | Make the conda install table easier to read
The table of what packages will be installed and removed is hard to read. For one thing, it's hard to tell easily what packages are not removed but just upgraded or downgraded. Also, the "link" terminology is confusing.
A suggestion by @jklowden:
```
$ conda update conda ... | 2014-04-11T20:19:51 | |
conda/conda | 667 | conda__conda-667 | [
"666"
] | f2934aea3f32ac94907b742a800d82c1e08757fe | diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -278,12 +278,25 @@ def all_deps(self, root_fn, max_only=False):
def add_dependents(fn1, max_only=False):
for ms in self.ms_depends(fn1):
+ found = False
+ notfound = []... | diff --git a/tests/test_resolve.py b/tests/test_resolve.py
--- a/tests/test_resolve.py
+++ b/tests/test_resolve.py
@@ -696,6 +696,22 @@ def test_nonexistent_deps():
'requires': ['nose 1.2.1', 'python 3.3'],
'version': '1.1',
}
+ index2['anotherpackage-1.0-py33_0.tar.bz2'] = {
+ 'build':... | NoPackagesFound does not work correctly for missing recursive dependencies
| 2014-04-14T22:05:18 | |
conda/conda | 682 | conda__conda-682 | [
"400"
] | 102471a0fe64749a94ea0c1c9ddc45d17fd4f2d4 | diff --git a/conda/connection.py b/conda/connection.py
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -7,106 +7,368 @@
from __future__ import print_function, division, absolute_import
from logging import getLogger
+import re
+import mimetypes
+import os
+import email
+import base64
+import ftplib
+import cg... | TLS does not appear to be verified
As far as I can tell conda is just using urllib2 which doesn't verify SSL at all in Python 2.x and in Python 3.x it doesn't do it by default. This means that even recipes which use a https link without a md5 hash there is a simple MITM code execution attack.
<!---
@huboard:{"order":1... | How can we fix it? Do we need to add several more dependencies to conda?
How can it be enabled in Python 3? And why doesn't it do it by default?
So there are a few options here, the lowest impact but easiest to get wrong is to backport the ssl stuff from Python 3 into Python 2 and include your own root certificates. ... | 2014-04-23T22:43:45 | |
conda/conda | 707 | conda__conda-707 | [
"670"
] | ad6c5ffe86bb2eac4add2c4be7b8987f0f14c453 | diff --git a/conda/lock.py b/conda/lock.py
--- a/conda/lock.py
+++ b/conda/lock.py
@@ -19,7 +19,7 @@
import os
from os.path import join
import glob
-
+from time import sleep
LOCKFN = '.conda_lock'
@@ -36,15 +36,28 @@ def __init__(self, path):
self.remove = True
def __enter__(self):
- file... | Add ability to keep retrying with a lock error
The yum installer (IIRC) has a nice feature that it will keep trying every 10 seconds or so if there is a lock error. This could be useful for conda.
| 2014-05-02T16:20:55 | ||
conda/conda | 739 | conda__conda-739 | [
"731"
] | 27441fe05630c37e7225f275ee041411f995aae5 | diff --git a/conda/config.py b/conda/config.py
--- a/conda/config.py
+++ b/conda/config.py
@@ -244,7 +244,10 @@ def get_allowed_channels():
def get_proxy_servers():
res = rc.get('proxy_servers')
- if res is None or isinstance(res, dict):
+ if res is None:
+ import requests
+ return requests.... | conda does not prompt for proxy username and password
```
[ COMPLETE ] |#################################################| 100%
The batch file cannot be found.
C:\Code>conda update conda
Fetching package metadata: .Error: HTTPError: 407 Client Error: Proxy Authentication Required: http://repo.continuum.io/p... | Do you have proxy settings set in your `.condarc` or using the `HTTP_PROXY` environment variable?
no. I used to have HTTP_PROXY set but it was automatically removed by a company pushed OS update. To avoid reliance on it I enter the proxy id and pw at the prompt.
OK. I guess the new requests code regressed in that it... | 2014-05-23T15:50:51 | |
conda/conda | 804 | conda__conda-804 | [
"802"
] | 037a783f85eb5edaf5ea59bdb5e456bed92587b3 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -143,10 +143,10 @@ def install(args, parser, command='install'):
common.ensure_override_channels_requires_channel(args)
channel_urls = args.channel or ()
+ specs = []
if args.file:
- ... | `conda create --file deps.txt pkg1 pkg2 ... pkgn` doesn't work
```
$ echo "scipy" > deps.txt
$ conda create -n test08 --file deps.txt sympy
Fetching package metadata: ..
Solving package specifications: .
Package plan for installation in environment /home/mateusz/py/envs/test08:
The following packages will be linked:
... | 2014-07-10T14:40:10 | ||
conda/conda | 834 | conda__conda-834 | [
"803",
"803"
] | 997b70c012fc5be64cc9df8cdabfd860a12c8230 | diff --git a/conda/cli/main_run.py b/conda/cli/main_run.py
--- a/conda/cli/main_run.py
+++ b/conda/cli/main_run.py
@@ -7,6 +7,7 @@
from __future__ import print_function, division, absolute_import
import sys
+import logging
from conda.cli import common
@@ -17,6 +18,7 @@ def configure_parser(sub_parsers):
... | conda command-line tool provides a convenience command to run the Python executable from a specified conda environment
I often want to run the Python interpreter from a specific conda environment while knowing only the name of that environment. I know that `conda -e` gives the path to each conda environment, from which... | Maybe the new conda run command could be used to do this.
Maybe the new conda run command could be used to do this.
| 2014-07-28T20:50:17 | |
conda/conda | 909 | conda__conda-909 | [
"907"
] | e082781cad83e0bc6a41a2870b605f4ee08bbd4d | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -155,11 +155,20 @@ def rm_rf(path, max_retries=5):
shutil.rmtree(path)
return
except OSError as e:
- log.debug("Unable to delete %s (%s): retrying after %s "
- ... | Use rmtree workaround for write-protected files on Windows
See https://stackoverflow.com/questions/1889597/deleting-directory-in-python/1889686#1889686. Alternately we can use rd /s.
| 2014-09-11T17:31:02 | ||
conda/conda | 1,138 | conda__conda-1138 | [
"897"
] | 7305bf1990c6f6d47fc7f6f7b3f7844ec1948388 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -191,13 +191,13 @@ def install(args, parser, command='install'):
"prefix %s" % prefix)
for pkg in linked:
name, ver, build = pkg.rsplit('-', 2)
- if name in... | Only try updating outdated packages with update --all
conda update --all tends to fail a lot because it requires that the whole environment become satisfiable, and without downgrading any packages. Perhaps a better solution would be to only try installing those packages that are known to be outdated.
Another idea wou... | 2015-02-09T21:39:08 | ||
conda/conda | 1,231 | conda__conda-1231 | [
"1230"
] | 50000e443ff4d60904faf59c1ea04cf269ec42c3 | 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
@@ -8,6 +8,7 @@
from argparse import RawDescriptionHelpFormatter
import os
import sys
+from collections import defaultdict
from os.path import join, getsize, isdir
from os import lstat, walk... | conda clean -t fails with FileNotFoundError
```
[root@localhost conda-recipes]# conda clean -t
An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub issue tracker at:
https://github.com/conda/conda/issues
Include the output of the command 'conda info' in your report... | 2015-03-30T19:30:39 | ||
conda/conda | 1,318 | conda__conda-1318 | [
"1317"
] | d6704ec38705aa3181aabff5759d0365cd0e59b0 | 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
@@ -190,6 +190,9 @@ def execute(args, parser):
return
+ if not args.json:
+ common.confirm_yn(args)
+
if args.json and not args.quiet:
with json_progress_ba... | conda remove --dry-run actually removes the package
Is there anything set around here:
https://github.com/conda/conda/blob/ded940c3fa845bbb86b3492e4a7c883c1bcec10b/conda/cli/main_remove.py#L196
to actually exit before removing the package if --dry-run is set but --json is not?
I'm just running 3.11.0 and haven't gra... | 2015-05-04T20:08:26 | ||
conda/conda | 1,463 | conda__conda-1463 | [
"1452"
] | 3ea1dc2f9a91b05509b80e6fd8d6ee08299967dd | diff --git a/conda/fetch.py b/conda/fetch.py
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -185,6 +185,10 @@ def handle_proxy_407(url, session):
# We could also use HTTPProxyAuth, but this does not work with https
# proxies (see https://github.com/kennethreitz/requests/issues/2061).
scheme = requests.pack... | https proxy username/password
I have installed anaconda using the command "bash Anaconda-2.3.0-Linux-x86_64.sh" and gave path of bin/conda to .bashrc and default it asks for bin path prepending which I gave, after closing and then running terminal I ran:
conda create -n dato-env python=2.7
which requires https proxy un... | Can you paste the output of `conda info` here?
Sure. Output of conda info:
Current conda install:
```
platform : linux-64
conda version : 3.14.1
```
conda-build version : 1.14.1
python version : 2.7.10.final.0
requests version : 2.7.0
root environment : /home/mayank/anaconda (writabl... | 2015-07-27T18:35:38 | |
conda/conda | 1,496 | conda__conda-1496 | [
"1495"
] | 8d095e771947121c32edef476efc333e2cfeb60b | diff --git a/conda/connection.py b/conda/connection.py
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -19,7 +19,7 @@
import conda
from conda.compat import urlparse, StringIO
-from conda.config import get_proxy_servers
+from conda.config import get_proxy_servers, ssl_verify
import requests
@@ -82,6 +82,... | Set the default CondaSession.verify default from the config setting
Currently, the .condarc config setting must be explicitly used when making a request with a CondaSession object. This means that anyone who wants to use CondaSession must check the .condarc ssl_verify value and appropriately interpret it, etc. (For e... | Sounds good to me.
| 2015-08-05T17:57:52 | |
conda/conda | 1,541 | conda__conda-1541 | [
"1535"
] | a003d2809ec13f826f0692c9515a2f1291fae56f | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -272,6 +272,7 @@ def update_prefix(path, new_prefix, placeholder=prefix_placeholder,
if new_data == data:
return
st = os.lstat(path)
+ os.remove(path) # Remove file before rewriting to avoid destroyin... | `conda.install.update_prefix` is modifying cached pkgs in Windows
Since files are hardlinks, it looks like conda's prefix replacement mechanism is breaking its own files.
File contents inside package:
``` python
x = r'/opt/anaconda1anaconda2anaconda3\Scripts',
```
File contents after installing in 'env1':
``` pytho... | 2015-08-20T12:16:12 | ||
conda/conda | 1,562 | conda__conda-1562 | [
"1561"
] | 113e9451512b87d0bf0ef3ecdd19ca78fb25c047 | diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -309,7 +309,7 @@ def add_dependents(fn1, max_only=False):
if not found:
raise NoPackagesFound("Could not find some dependencies "
- "for %s: %s" % (ms, ', '.jo... | recursion problem or infinite loop in dependency solver
I am executing this command:
``` bash
/opt/wakari/miniconda/bin/conda update --dry-run -c https://conda.anaconda.org/wakari/channel/release:0.8.0 -p /opt/wakari/wakari-server --all
```
And it appears to loop "forever" (well, for a few minutes, at least", stating... | This is with conda 3.16.0:
``` bash
/opt/wakari/miniconda/bin/conda -V
conda 3.16.0
```
I see the problem. It's trying to ignore `wakari-server` but it really should be ignoring `wakari-enterprise-server-conf`.
| 2015-08-31T16:25:35 | |
conda/conda | 1,563 | conda__conda-1563 | [
"1557"
] | 9e9becd30eeb6e56c1601521f5edb7b16a29abd7 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -169,6 +169,8 @@ def install(args, parser, command='install'):
if any(pkg.split('=')[0] == default_pkg for pkg in args.packages):
default_packages.remove(default_pkg)
... | create_default_packages rules out --clone
Hi all,
In case of the .condarc file defining the 'create_default_packages' options, the conda --clone command gives a confusing error messages:
alain@alain-K53E:~$ conda create --name flowersqq --clone snowflakes
Fetching package metadata: ....
Error: did not expect any argum... | 2015-08-31T19:55:34 | ||
conda/conda | 1,613 | conda__conda-1613 | [
"1118"
] | acf392df41d6c4ecf311733b38869d83fa19239f | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -196,12 +196,14 @@ def install(args, parser, command='install'):
common.check_specs(prefix, specs, json=args.json,
create=(command == 'create'))
- # handle tar file... | conda install --no-deps still installing deps when installing tarball
When running the following command:
`conda install --no-deps ./matplotlib-1.4.0-np18py27_0.tar.bz2`
You would assume that no dependencies are installed, but conda seems to install the dependencies anyway.
| fwiw: This seemed to work with conda 3.7.0
That's because conda used to never install the dependencies of a tarball. This feature was added, but the `--no-deps` flag was neglected.
@ilanschnell this is similar to the issue I was describing with `--offline` installations breaking because of the dependency resolution ... | 2015-09-14T17:37:43 | |
conda/conda | 1,618 | conda__conda-1618 | [
"1594"
] | 1b100cde07dac3769e1dbffcb05e11574b9a416b | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -27,19 +27,19 @@
from __future__ import print_function, division, absolute_import
-import time
-import os
-import json
import errno
+import json
+import logging
+import os
+import shlex
import shutil
import stat
-i... | `conda.install.rm_rf` can't delete old environments in Windows + Python 2.7
This issue hit me when trying to use `--force` option in `conda env create` (I added this in #102), and it revealed a possible problem with how conda handles links in Windows + Python 2.7.
# Symptom
Trying to delete an environment (not active)... | A possible solution would to force all conda requirements ( python, pycosat, pyyaml, conda, openssl, requests) to be copied in Windows (never linked).
This might also be enough to remove some code in `install.py` that already has a different behavior when linking python (just need to do the same for the other ones)
I... | 2015-09-15T18:13:42 | |
conda/conda | 1,668 | conda__conda-1668 | [
"1667"
] | c13df56c2a6b4e494bfffbb695df63d34e28ad5f | diff --git a/conda/cli/common.py b/conda/cli/common.py
--- a/conda/cli/common.py
+++ b/conda/cli/common.py
@@ -180,6 +180,16 @@ def add_parser_use_index_cache(p):
help="Use cache of channel index files.",
)
+
+def add_parser_no_use_index_cache(p):
+ p.add_argument(
+ "--no-use-index-cache",
+ ... | conda remove shouldn't fetch the package metadata
It only needs it to print the channel location. It should either get that locally, or at least just use the index cache.
| 2015-10-01T19:07:14 | ||
conda/conda | 1,735 | conda__conda-1735 | [
"1734"
] | 02c652c00ebad8c17747509185d007057d2b0374 | diff --git a/conda/utils.py b/conda/utils.py
--- a/conda/utils.py
+++ b/conda/utils.py
@@ -5,8 +5,10 @@
import hashlib
import collections
from functools import partial
-from os.path import abspath, isdir, join
+from os.path import abspath, isdir
import os
+import tempfile
+
log = logging.getLogger(__name__)
std... | Race condition for root environment detection
Periodically, when two conda processes are running at the same time, it is possible to see a race condition on determining whether the root environment is writable. Notice how the following produces two different configs from the same setup:
```
$ conda info & conda info
... | 2015-10-24T05:46:05 | ||
conda/conda | 1,807 | conda__conda-1807 | [
"1751"
] | f46c73c3cb6353a409449fdba08fdbd0856bdb35 | 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
@@ -151,9 +151,13 @@ def rm_tarballs(args, pkgs_dirs, totalsize, verbose=True):
for pkgs_dir in pkgs_dirs:
for fn in pkgs_dirs[pkgs_dir]:
- if verbose:
- p... | diff --git a/tests/test_install.py b/tests/test_install.py
--- a/tests/test_install.py
+++ b/tests/test_install.py
@@ -8,7 +8,7 @@
from conda import install
-from conda.install import PaddingError, binary_replace, update_prefix
+from conda.install import PaddingError, binary_replace, update_prefix, warn_failed_rem... | conda clean -pt as non-root user with root anaconda install
I have installed root miniconda at /opt/anaconda. When running
```
conda clean -pt
```
as a lesser user than root, I am seeing errors indicating conda is not checking permissions before attempting to delete package dirs:
```
conda clean -pt
Cache location... | Hi @csoja - this issue is blocking some key Build System stability fixes. LMK if this can be prioritized (along with #1752 above)
@stephenakearns and @PeterDSteinberg and @csoja this issue is also now preventing us from moving forward with the anaconda-cluster build scripts.
@csoja - I know you're strapped for resour... | 2015-11-11T20:20:17 |
conda/conda | 1,808 | conda__conda-1808 | [
"1752"
] | f46c73c3cb6353a409449fdba08fdbd0856bdb35 | 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
@@ -151,9 +151,13 @@ def rm_tarballs(args, pkgs_dirs, totalsize, verbose=True):
for pkgs_dir in pkgs_dirs:
for fn in pkgs_dirs[pkgs_dir]:
- if verbose:
- p... | diff --git a/tests/test_install.py b/tests/test_install.py
--- a/tests/test_install.py
+++ b/tests/test_install.py
@@ -8,7 +8,7 @@
from conda import install
-from conda.install import PaddingError, binary_replace, update_prefix
+from conda.install import PaddingError, binary_replace, update_prefix, warn_failed_rem... | conda clean -pt with empty package cache and non-root user
I have a root miniconda install at /opt/anaconda. I ran
```
conda clean -pt
```
successfully as root then immediately tried running the same command as a lesser user. I got this error even though the package cache was empty:
```
Cache location:
There ar... | Appears somewhat related to #1751. Fixing #1751 and #1752 is necessary for the future needs of anaconda-build.
| 2015-11-11T21:17:30 |
conda/conda | 1,944 | conda__conda-1944 | [
"1285"
] | 4db6b4e58c6efa70e461dd68a90d812d4a634619 | 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
@@ -65,6 +65,95 @@ def configure_parser(sub_parsers):
p.set_defaults(func=execute)
+# work-around for python bug on Windows prior to python 3.2
+# https://bugs.python.org/issue10027
+# Ada... | conda clean -p breaks hard linking of new installs
@asmeurer
Following on from conda/conda#68:
On Windows 8 (and probably equally on all other windows versions), `conda clean -p` removes all extracted packaged from the `pkgs` directory even if they are hard linked in some environments.
While all existing environment... | Yep, pretty annoying issue.
> The problem lies in main_clean.py and the fact that on Windows lstat(file).st_nlink always returns 0, even if file is hard linked. (This seems to have been fixed from python 3.2 onwards: https://bugs.python.org/issue10027)
If it's really the case then WinAPI **GetFileInformationByHandle*... | 2016-01-08T15:05:30 | |
conda/conda | 2,108 | conda__conda-2108 | [
"2093"
] | d637298bb13b5434a989174ebe9acea3d7a0e2a0 | diff --git a/conda/connection.py b/conda/connection.py
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -101,7 +101,9 @@ def send(self, request, stream=None, timeout=None, verify=None, cert=None,
import boto
except ImportError:
stderrlog.info('\nError: boto is required for S3 ch... | confusing error message when boto is missing
If one tries to install from an s3 channel (e.g., `conda install foo -c s3://bar/baz/conda`) while in an environment, this message shows up: `Error: boto is required for S3 channels. Please install it with: conda install boto`. Installing `boto` in the environment doesn't ... | 2016-02-19T22:10:29 | ||
conda/conda | 2,226 | conda__conda-2226 | [
"2224"
] | c91a2ecf8ccc7fe4c4545373dc89b0b22fcddba5 | diff --git a/conda/resolve.py b/conda/resolve.py
--- a/conda/resolve.py
+++ b/conda/resolve.py
@@ -1014,8 +1014,13 @@ def clean(sol):
dashlist(', '.join(diff) for diff in diffs),
'\n ... and others' if nsol > 10 else ''))
+ def stripfeat(sol):
+ r... | conda 4.0.2 failure during dependency resolution
This command fails in Linux and OS X
```
conda create -n testconda anaconda accelerate tornado=4.0.2
```
with this traceback:
```
Traceback (most recent call last):
File "/Users/ewelch/miniconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/Users/ewe... | @mcg1969 First time I'm seeing this. Guessing this problem would still exist in the `4.0.x` branch?
@eriknw Thanks for the awesome report and digging in with a workable patch.
Yes, the problem still exists in the `4.0.x` branch.
Thanks Eric! I will look at this in the morning
A quick bifurcation reveals this comm... | 2016-03-10T06:31:15 | |
conda/conda | 2,291 | conda__conda-2291 | [
"2284"
] | c3d54a1bd6a15dcea2ce900b0900c369bb848907 | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -124,10 +124,13 @@ def main():
if rootpath:
path = path.replace(translate_stream(rootpath, win_path_to_cygwin), "")
else:
- path = translate_stream(path... | diff --git a/tests/test_activate.py b/tests/test_activate.py
--- a/tests/test_activate.py
+++ b/tests/test_activate.py
@@ -226,12 +226,12 @@ def _format_vars(shell):
def test_path_translation():
- test_cygwin_path = "/usr/bin:/cygdrive/z/documents (x86)/code/conda/tests/envskhkzts/test1:/cygdrive/z/documents/co... | activate on master is broken in OSX
@msarahan I'm on master, and I get:
```
$ source activate koo
path:usage: conda [-h] [-V] [--debug] command ...
conda: error: argument command: invalid choice: '..changeps1' (choose from 'info', 'help', 'list', 'search', 'create', 'install', 'update', 'upgrade', 'remove', 'uninstall... | > the new activate scripts
The usage of awk and dirname are not new:
https://github.com/conda/conda-env/blame/develop/bin/activate#L32
That's conda-env, of course, but that's where the scripts that are now in conda came from.
Something else is going wrong. It might be a bug in the path translation stuff. It is su... | 2016-03-19T19:56:18 |
conda/conda | 2,355 | conda__conda-2355 | [
"2345"
] | f8cfd1e9998ed2503480d1a26f932f337838731f | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -515,7 +515,12 @@ def try_hard_link(pkgs_dir, prefix, dist):
if not isdir(prefix):
os.makedirs(prefix)
_link(src, dst, LINK_HARD)
- return True
+ # Some file systems (at least B... | BeeGFS hard-links
[BeeGFS](http://www.beegfs.com), a parallel cluster file system, [does not support](https://groups.google.com/forum/#!topic/fhgfs-user/cTJcqGZceVA) `hard-links` between files in differents directories.
Depending on the [configuration](https://groups.google.com/forum/#!topic/fhgfs-user/pvQSo0QWicw), e... | 2016-04-14T06:23:18 | ||
conda/conda | 2,445 | conda__conda-2445 | [
"2444"
] | 33e1e45b8aee9df5377931619deacfb250be3986 | 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
@@ -148,7 +148,7 @@ def execute(args, parser):
import conda.config as config
from conda.resolve import Resolve
from conda.cli.main_init import is_initialized
- from conda.api import g... | diff --git a/tests/test_info.py b/tests/test_info.py
--- a/tests/test_info.py
+++ b/tests/test_info.py
@@ -1,6 +1,8 @@
from __future__ import print_function, absolute_import, division
+import json
from conda import config
+from conda.cli import main_info
from tests.helpers import run_conda_command, assert_in, as... | conda info --json and package lookup
If you set the `--json` flag for `conda info` when searching for packages, you sometimes get nothing:
``` bash
$ conda info numpy=1.11.0=py35_0
Fetching package metadata: ....
numpy 1.11.0 py35_0
-------------------
file name : numpy-1.11.0-py35_0.tar.bz2
name : numpy
ver... | 2016-05-08T06:59:02 | |
conda/conda | 2,472 | conda__conda-2472 | [
"2389"
] | 91847aab60b571a5d89b5e2a582612b3cd383f7e | diff --git a/conda/config.py b/conda/config.py
--- a/conda/config.py
+++ b/conda/config.py
@@ -113,7 +113,6 @@ def get_rc_path():
def load_condarc(path):
if not path or not isfile(path):
- print("no path!")
return {}
with open(path) as f:
return yaml_load(f) or {}
| When no condarc is found "no path!" is printed
Why was https://github.com/conda/conda/blob/master/conda/config.py#L115 added?
Is this a debug statement which never got removed?
| Yes, sorry. I'll fix.
I just ran into this. Aside: is there good guidance for users looking to use conda outside of Anaconda (e.g. with some custom repo of packages but not really using anything in defaults)?
| 2016-05-12T17:25:57 | |
conda/conda | 2,482 | conda__conda-2482 | [
"2449"
] | cf91f160c171832055fe5a9189609c7e8ae090dc | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -147,13 +147,13 @@ def main():
# this should throw an error and exit if the env or path can't be found.
try:
- binpath = binpath_from_arg(sys.argv[2], shelldict=shelldict)... | conda v4.1.0rc1 doesn't link conda or activate into created env
The trace below should demonstrate the problem. As an aside, notice that PS1 is also mixed up: two round brackets and no space after '$' sign.
``` bash
ijstokes@petawawa ~ $ which conda
/Users/ijstokes/anaconda/bin/conda
ijstokes@petawawa ~ $ conda -V
c... | ```
((conda-test)) ls -al $CONDA_ENV_PATH/bin/bin
total 24
drwxr-xr-x 5 kfranz staff 170B May 13 09:52 ./
drwxr-xr-x 32 kfranz staff 1.1K May 13 09:52 ../
lrwxr-xr-x 1 kfranz staff 19B May 13 09:52 activate@ -> /conda/bin/activate
lrwxr-xr-x 1 kfranz staff 16B May 13 09:52 conda@ -> /conda/bin/cond... | 2016-05-13T21:25:31 | |
conda/conda | 2,514 | conda__conda-2514 | [
"2161"
] | c759a16871f6b20df533e850d3d17ee71d412671 | diff --git a/conda/connection.py b/conda/connection.py
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -91,6 +91,8 @@ def __init__(self, *args, **kwargs):
proxies = get_proxy_servers()
if proxies:
self.proxies = proxies
+ self.trust_env = False # disable .netrc file
+ ... | Disable .netrc authentication
Anaconda-Server/support#23
When a user has a `~/.netrc` file present, `requests` will use that file to populate the `Authorization` header (using HTTP Basic auth). When authorization fails, conda falls into an infinite loop retrying.
To fix this problem in `anaconda-client`, I disabled `... | 2016-05-19T07:44:09 | ||
conda/conda | 2,526 | conda__conda-2526 | [
"2525"
] | 995d6e35a01e46a485784e1c26de9f616f397e4b | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -44,12 +44,10 @@
from os.path import (abspath, basename, dirname, isdir, isfile, islink,
join, relpath, normpath)
-from conda.compat import iteritems, iterkeys
-from conda.config import url_channel... | conda.install imports other conda modules
I just noted https://github.com/conda/conda/blob/master/conda/install.py#L47,
however, it has always been a policy that `conda.install` has to be standalone, see:
https://github.com/conda/conda/blob/master/conda/install.py#L22
The problem is that all our installers depend on t... | CC @kalefranz @csoja
Hmm. This is a more vexing challenge.
@mingwandroid, I think some functions of yours are in here, too?
Here's what I'm seeing:
- `iteritems` and `iterkeys` from `conda.compat` are easily removed.
- `url_path` from `conda.utils` can be duplicated.
- `pkgs_dirs`: this is needed by the `package_ca... | 2016-05-20T23:42:21 | |
conda/conda | 2,529 | conda__conda-2529 | [
"2527"
] | ff8d814b6a8b075e8a2c4bab5b23691b21d0e902 | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -85,10 +85,9 @@ def remove_binstar_tokens(url):
# A simpler version of url_channel will do
def url_channel(url):
- return None, 'defaults'
+ return url.rsplit('/', 2)[0] + '/' if url and '/' in ur... | diff --git a/tests/test_install.py b/tests/test_install.py
--- a/tests/test_install.py
+++ b/tests/test_install.py
@@ -448,5 +448,20 @@ def test_misc(self):
self.assertEqual(duplicates_to_remove(li, [d1, d2]), [])
+def test_standalone_import():
+ import sys
+ import conda.install
+ tmp_dir = tempf... | Add test for conda/install.py imports
https://github.com/conda/conda/pull/2526#issuecomment-220751869
Since this type of bug was introduced by at least three people independently, I think it would be good to add a test for this. The test could be something along the lines of:
```
tmp_dir = tempfile.mkdtemp()
shutil.c... | Perhaps it would be sufficient to scan for `(from|import)\s+(conda|[.])`?
| 2016-05-21T21:58:02 |
conda/conda | 2,534 | conda__conda-2534 | [
"2531"
] | 4d7286cddf091c0bcf8bd105ad847dd9f57c1ed7 | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -624,7 +624,8 @@ def add_cached_package(pdir, url, overwrite=False, urlstxt=False):
xdir = None
if not (xpkg or xdir):
return
- url = remove_binstar_tokens(url)
+ if url:
+ url = remove_... | conda search broken for me on master
On master (`4d7286cddf091c0bcf8bd105ad847dd9f57c1ed7`), I now get:
```
$ conda search
...
Traceback (most recent call last):
File "/Users/ilan/python/bin/conda", line 6, in <module>
sys.exit(conda.cli.main())
File "/Users/ilan/conda/conda/cli/main.py", line 120, in main
... | Hmm, I also get this when I do `conda install`. CC @kalefranz
Guessing you'll be fine on py2 if you want to keep testing. Will definitely address it though ASAP. No idea how it happened or why tests passed with it.
> On May 21, 2016, at 11:30 PM, Ilan Schnell notifications@github.com wrote:
>
> Hmm, I also get th... | 2016-05-22T16:58:15 | |
conda/conda | 2,547 | conda__conda-2547 | [
"2546"
] | c79c21f471ad19ec2588176e23b64816d5ff5e02 | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -825,9 +825,11 @@ def load_linked_data(prefix, dist, rec=None):
else:
linked_data(prefix)
url = rec.get('url')
- channel, schannel = url_channel(url)
if 'fn' not in rec:
rec['fn'] = url.... | Another clone bug
```
kfranz@0283:~/continuum/conda *master ❯ conda create --clone root -n rootclone
Source: '/conda'
Destination: '/conda/envs/rootclone'
The following packages cannot be cloned out of the root environment:
- conda-team::conda-4.1.0rc2-py27_0
- conda-build-1.20.1-py27_0
Error: no URL found for p... | 2016-05-24T22:01:51 | ||
conda/conda | 2,604 | conda__conda-2604 | [
"2596"
] | 9721c8eb20421724336602e93fbd67bd2fefa7be | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -689,8 +689,9 @@ def package_cache():
add_cached_package(pdir, url)
except IOError:
pass
- for fn in os.listdir(pdir):
- add_cached_package(pdir, fn)
+ if... | install.package_cache() broken with cache directory does not exist
I just ran into this bug when building a package with `conda-build`. Before building the package, I cleaned out removed the cache directory `pkgs`. The trachback is as follows:
```
Traceback (most recent call last):
File "/home/ilan/minonda/bin/con... | I think the best thing here is to surround 692-693 in a `try/except` block like the previous block of code. I'll do this ASAP
| 2016-06-06T13:55:49 | |
conda/conda | 2,631 | conda__conda-2631 | [
"2626"
] | 38b4966d5c0cf16ebe310ce82ffef63c926f9f3f | diff --git a/conda/misc.py b/conda/misc.py
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -9,7 +9,7 @@
import sys
from collections import defaultdict
from os.path import (abspath, dirname, expanduser, exists,
- isdir, isfile, islink, join, relpath)
+ isdir, isfile, islink, join, r... | diff --git a/tests/test_misc.py b/tests/test_misc.py
--- a/tests/test_misc.py
+++ b/tests/test_misc.py
@@ -15,13 +15,13 @@ def test_cache_fn_url(self):
def test_url_pat_1(self):
m = url_pat.match('http://www.cont.io/pkgs/linux-64/foo.tar.bz2'
'#d6918b03927360aa1e57c0188dcb781b')... | Installing packages from files broken in master
```
((p35)) Z:\msarahan\code\conda>conda install --force z:\msarahan\Downloads\numexpr-2.6.0-np110py35_0.tar.bz2
Could not parse explicit URL: z:\msarahan\Downloads\numexpr-2.6.0-np110py35_0.tar.bz2
((p35)) Z:\msarahan\code\conda>conda install --offline z:\msarahan\Downl... | Looks like this only affects windows. Perhaps the `\`. Will dig further.
https://github.com/conda/conda/blob/master/conda/misc.py#L57
Ok so the regex [here](https://github.com/conda/conda/blob/master/conda/misc.py#L39) needs to be more robust for backslashes I guess?
| 2016-06-09T05:42:02 |
conda/conda | 2,670 | conda__conda-2670 | [
"2669"
] | 53005336f9085426683d27f719d02f20c2a027ed | 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
@@ -218,26 +218,21 @@ def execute_config(args, parser):
else:
rc_path = user_rc_path
- # Create the file if it doesn't exist
- if not os.path.exists(rc_path):
- has... | Having trouble downloading from osx-64 on Travis CI
_From @jakirkham on June 14, 2016 20:46_
Seems we are now having issues downloading on packages on Travis CI. See the snippet below and this [log](https://travis-ci.org/conda-forge/apache-libcloud-feedstock/jobs/137608834#L369-L376). Note none of the packages below a... | _From @jjhelmus on June 14, 2016 20:46_
What happens if you pin conda to version 4.0.8?
_From @jakirkham on June 14, 2016 20:47_
It's a good question. The thing is I can't reproduce this locally (even with `conda` 4.1.0). So, if it is a `conda` bug, it is a pretty special one.
_From @jjhelmus on June 14, 2016 20:50... | 2016-06-14T23:09:46 | |
conda/conda | 2,685 | conda__conda-2685 | [
"2680"
] | dfabcc529bbf2d641c2f866382f70a5ea75b507c | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -134,8 +134,11 @@ def main():
if rootpath:
path = path.replace(shelldict['pathsep'].join(rootpath), "")
+ path = path.lstrip()
# prepend our new entries onto the ... | conda 4.1 breaks fish integrations
The new version does not work with fish at all. While the .fish script is finally there in the bin directory, it does not seem to kick in, since the new activate.py command is messing with it. How is it supposed to work?
This is the error I get:
```
$ conda activate myenv
Traceback ... | I'd actually recommend downgrading to `4.0.8`. But we'll investigate this quickly!
Working on it. This is because we have to explicitly name the shell when calling ..activate and such. Detecting the parent shell proved to be unreliable.
| 2016-06-15T16:50:37 | |
conda/conda | 2,695 | conda__conda-2695 | [
"2677"
] | 065a09022cfa978c075eabe20b73f8df0e71a5df | diff --git a/conda/connection.py b/conda/connection.py
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -90,8 +90,8 @@ def __init__(self, *args, **kwargs):
proxies = get_proxy_servers()
if proxies:
self.proxies = proxies
- self.trust_env = False # disable .netrc file
- ... | conda=4.1 no longer respects HTTP_PROXY
My proxy variables are properly set:
```
$ set https_proxy
HTTPS_PROXY=http://myproxy:8080
```
`conda=4.0.8` successfully picks up my `%HTTPS_PROXY%` and installs `conda=4.1`:
```
$ conda install conda=4.1
Fetching package metadata: ..........
Solving package specifications: ... | Can also confirm this. Unfortunately it's not possible to specify no_proxy in the .condarc, so 4.1 is not working if you have a proxy and internal channels.
Thanks for the report, folks; I'm sorry for the trouble here. I'm unfamiliar with the proxy handling code so we'll have to find someone here better equipped. As f... | 2016-06-15T22:01:51 | |
conda/conda | 2,701 | conda__conda-2701 | [
"2693"
] | 210c4fd70ccc770d9660fbca62de92bad2dfeac8 | diff --git a/conda/api.py b/conda/api.py
--- a/conda/api.py
+++ b/conda/api.py
@@ -35,7 +35,8 @@ def get_index(channel_urls=(), prepend=True, platform=None,
key = prefix + fn
if key in index:
# Copy the link information so the resolver knows this is installed
- ... | Bizarre removal of python
Full report at https://ci.appveyor.com/project/ContinuumAnalytics/conda-build/build/1.0.163#L18
```
Package plan for installation in environment C:\Miniconda3-x64:
The following packages will be downloaded:
package | build
---------------------------|--... | 2016-06-16T01:38:55 | ||
conda/conda | 2,705 | conda__conda-2705 | [
"2703"
] | 210c4fd70ccc770d9660fbca62de92bad2dfeac8 | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -163,7 +163,8 @@ def main():
conda.install.symlink_conda(prefix, root_dir, shell)
except (IOError, OSError) as e:
if e.errno == errno.EPERM or e.errno == errno.EACCES:... | activate symlink error
when using source activate they get this symlink error
> While trying to use the nfs installation with a user account that lacks the write permissions on the installation and the preconfigured environments, I'm getting an error:
>
> Cannot activate environment bash, not have write access to ... | Just noting this wouldn't have been a problem if I'd pushed forward with https://github.com/conda/conda/issues/2502
| 2016-06-16T03:19:30 | |
conda/conda | 2,706 | conda__conda-2706 | [
"2700"
] | 2ddebf31b378a452f14b45696a8070d350809ed1 | 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
@@ -115,8 +115,7 @@ def print_export_header():
def get_packages(installed, regex):
pat = re.compile(regex, re.I) if regex else None
-
- for dist in sorted(installed, key=str.lower):
+ for... | conda list broken in 4.1?
In case it helps I instrumented my `cp1252.py`
``` python
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
try:
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
except Exception as exc:
msg ... | ML thread: https://groups.google.com/a/continuum.io/forum/#!topic/conda/vunpzKLGciI
Reverting to 4.0.8 solved the problem for me.
With a broken conda package in the repo it looks like another good use case for an exclude option as requested in #2410 since trying to update _anything_ will now attempt to update conda t... | 2016-06-16T03:57:16 | |
conda/conda | 2,708 | conda__conda-2708 | [
"2688"
] | 6690517d591a9a3fa6b8d4b2a53b1f1f7e94a039 | diff --git a/conda/config.py b/conda/config.py
--- a/conda/config.py
+++ b/conda/config.py
@@ -297,6 +297,8 @@ def url_channel(url):
return None, '<unknown>'
channel = url.rsplit('/', 2)[0]
schannel = canonical_channel_name(channel)
+ if url.startswith('file://') and schannel != 'local':
+ ... | Conda install from file fails in version 4.1
I've recently installed linux-32 conda on CentOS 6.2. I confirmed this on linux-64 version as well.
If I run: `conda install ./FILE_1.tar.bz2`, I always get the error:
`Fetching package metadata ...Error: Could not find URL: file:///root/dir1/
`
If i downgrade to conda 4.0.... | relates to #2642, but not exactly the same
I'll take this
| 2016-06-16T04:26:42 | |
conda/conda | 2,715 | conda__conda-2715 | [
"2710"
] | 7d64a5c361f290e1c76a37a66cb39bdbd1ffe1f0 | diff --git a/conda/plan.py b/conda/plan.py
--- a/conda/plan.py
+++ b/conda/plan.py
@@ -330,7 +330,7 @@ def ensure_linked_actions(dists, prefix, index=None, force=False,
actions[inst.LINK].append('%s %d %s' % (dist, lt, shortcuts))
except (OSError, IOError):
- actions[inst.LINK].append... | TypeError resulting from conda create
I've just installed anaconda2 on a CentOS 6.8 instance. Now I'm trying to create a new conda environment but am receiving this error:
```
[ebrown@AWS-SYD-AL-T2MIC-SWM-P-ANACONDA01 ~]$ conda create --name testenv python
Fetching package metadata .......
Solving package specificatio... | https://github.com/conda/conda/blob/master/conda/plan.py#L330-L333
Line 333 should mimic the structure of line 330.
ahhh, switching assignment :)
Somebody needs to write a bot for github: feed bot stacktrace, assign bug to last person to touch line that triggered stack trace.
At some point it'll make sense to add [... | 2016-06-16T14:18:30 | |
conda/conda | 2,729 | conda__conda-2729 | [
"2642"
] | 07e517865bbb98e333a0ba0d217fc5f60c444aeb | diff --git a/conda/config.py b/conda/config.py
--- a/conda/config.py
+++ b/conda/config.py
@@ -195,7 +195,9 @@ def get_rc_urls():
return rc['channels']
def is_url(url):
- return url and urlparse.urlparse(url).scheme != ""
+ if url:
+ p = urlparse.urlparse(url)
+ return p.netloc != "" or p.sc... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -5,7 +5,7 @@
from glob import glob
import json
from logging import getLogger, Handler
-from os.path import exists, isdir, isfile, join, relpath
+from os.path import exists, isdir, isfile, join, relpath, ... | tarball install windows
@msarahan @mingwandroid What _should_ the `file://` url format be on Windows?
```
________________________ IntegrationTests.test_python3 ________________________
Traceback (most recent call last):
File "C:\projects\conda\tests\test_create.py", line 146, in test_python3
run_command(Comman... | Maybe this might be useful.
https://blogs.msdn.microsoft.com/ie/2006/12/06/file-uris-in-windows/
Python's (3.4+) pathlib module might give a hint
```
In [1]: import pathlib
In [2]: pathlib.Path(r"C:\projects\conda").as_uri()
Out[2]: 'file:///C:/projects/conda'
```
I'm unable to reproduce this, however maybe the co... | 2016-06-16T20:23:12 |
conda/conda | 2,734 | conda__conda-2734 | [
"2732"
] | 3c6a9b5827f255735993c433488429e5781d4658 | 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
@@ -13,7 +13,7 @@
from ..compat import string_types
from ..config import (rc_bool_keys, rc_string_keys, rc_list_keys, sys_rc_path,
user_rc_path, rc_other)
-from ..utils... | diff --git a/tests/test_config.py b/tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -12,7 +12,7 @@
import pytest
import conda.config as config
-from conda.utils import get_yaml
+from conda.utils import get_yaml, yaml_bool
from tests.helpers import run_conda_command
@@ -441,20 +441... | conda config --set show_channel_urls yes doesn't work anymore
This is happening since the latest conda update:
``` bat
λ conda config --set show_channel_urls yes
Error: Key: show_channel_urls; yes is not a YAML boolean.
```
It happens with both conda 4.1.1 (local windows py 3.5) and 4.1.0 (appveyor, https://ci.appvey... | This one is CC @mcg1969
I didn't mess with the section of code. I don't mind fixing it, don't get me wrong, but I am guessing that this is a difference between our old YAML library and our new one
Try using true/false instead of yes/no... @msarahan?
Ahhhh, interesting. I thought I had tested for that. But we can ... | 2016-06-16T23:29:56 |
conda/conda | 2,736 | conda__conda-2736 | [
"2725",
"2677"
] | 111d718b4433f49c083cf901a019c03a180cc54d | diff --git a/conda/connection.py b/conda/connection.py
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -90,8 +90,6 @@ def __init__(self, *args, **kwargs):
proxies = get_proxy_servers()
if proxies:
self.proxies = proxies
- self.auth = NullAuth() # disable .netrc file. for re... | Basic access authentification channels broken in 4.1.0
Previously it was possible to have a channel like:
https://user:password@myserver.com
or even have the user and password saved in `.netrc`. conda 4.1.0 and up ignore the credentials and give a 401 error (causing everything to break for users).
```
$ conda instal... | See this PR that is in 4.1.1.
https://github.com/conda/conda/pull/2695
We disabled the requests library's use of .netrc. You can set `proxy_servers` in .condarc if you want.
Besides reverting back to sucking up .netrc by default, how can we make things work best with your setup?
> On Jun 16, 2016, at 2:41 PM, Zaha... | 2016-06-17T01:18:05 | |
conda/conda | 2,772 | conda__conda-2772 | [
"2771",
"2771"
] | c6fe8c805dc2148eac52aa32591d0fd5a38a91be | diff --git a/conda/plan.py b/conda/plan.py
--- a/conda/plan.py
+++ b/conda/plan.py
@@ -442,6 +442,7 @@ def install_actions(prefix, index, specs, force=False, only_names=None, always_c
if auto_update_conda and is_root_prefix(prefix):
specs.append('conda')
+ specs.append('conda-env')
if pinn... | conda update conda doesn't get latest conda-env
It's annoying we even have this problem, but...
```
root@default:~ # conda update conda
Fetching package metadata: ......
.Solving package specifications: .........
Package plan for installation in environment /usr/local:
The following packages will be downloaded:
... | 2016-06-20T03:26:06 | ||
conda/conda | 2,806 | conda__conda-2806 | [
"2765"
] | a10456ed13e37a498ae3db4a03b90988e79ff143 | diff --git a/conda/cli/activate.py b/conda/cli/activate.py
--- a/conda/cli/activate.py
+++ b/conda/cli/activate.py
@@ -119,14 +119,11 @@ def main():
shelldict = shells[shell]
if sys.argv[1] == '..activate':
path = get_path(shelldict)
- if len(sys.argv) == 3 or sys.argv[3].lower() == root_env_n... | source activate without arguments breaks source activate/deactivate commands
Running `source activate` without any further arguments on Linux with the latest release makes it so that further activate/deactivate commands do not work. For example:
```
ihenriksen@ubuntu:~$ source activate
prepending /home/ihenriksen/mini... | Pretty sure it is getting an empty string, then considering that a valid env, somehow. ugh. Thanks for reporting.
| 2016-06-22T14:10:00 | |
conda/conda | 2,821 | conda__conda-2821 | [
"2807"
] | dcc70e413ee3e0875ce5889c57206a13747bf990 | diff --git a/conda/fetch.py b/conda/fetch.py
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -69,18 +69,9 @@ def func(*args, **kwargs):
return res
return func
+
@dotlog_on_return("fetching repodata:")
def fetch_repodata(url, cache_dir=None, use_cache=False, session=None):
- if not ssl_verify:
... | Consider allowing for conda compression that uses deflate rather than bzip2
| related #2794
FYI @msarahan
| 2016-06-22T23:50:46 | |
conda/conda | 2,862 | conda__conda-2862 | [
"2845"
] | b332659482ea5e3b3596dbe89f338f9a7e750d30 | diff --git a/conda/fetch.py b/conda/fetch.py
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -98,7 +98,7 @@ def fetch_repodata(url, cache_dir=None, use_cache=False, session=None):
if "_mod" in cache:
headers["If-Modified-Since"] = cache["_mod"]
- if 'repo.continuum.io' in url:
+ if 'repo.continuum.io... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -260,8 +260,8 @@ def test_tarball_install_and_bad_metadata(self):
os.makedirs(subchan)
tar_new_path = join(subchan, flask_fname)
copyfile(tar_old_path, tar... | file:// URLs don't work anymore with conda 4.1.3
Conda 4.1.3 does not work anymore with **file://** URLs:
```
(E:\Anaconda3) C:\Windows\system32>conda update --override-channels --channel file:///A:/pkgs/free --all
Fetching package metadata ....Error: Could not find URL: file:///A:/pkgs/free/win-64/
```
But `A:\pkgs\... | @mcg1969 I think I was going to write an integration test for this but obviously let it slip.
ARGH! No, actually, we have integration tests for file URLs and for file-based channels. This is madness! :-( @ciupicri, I apologize.
Hold on! @ciupicri, can you please create an _uncompressed_ `repodata.json` in that channe... | 2016-06-24T22:48:06 |
conda/conda | 2,873 | conda__conda-2873 | [
"2754"
] | 895d23dd3c5154b149bdc5f57b1c1e33b3afdd71 | diff --git a/conda/egg_info.py b/conda/egg_info.py
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -29,14 +29,15 @@ def get_site_packages_dir(installed_pkgs):
def get_egg_info_files(sp_dir):
for fn in os.listdir(sp_dir):
- if not fn.endswith(('.egg', '.egg-info')):
+ if not fn.endswith(('.egg',... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -230,11 +230,21 @@ def test_create_install_update_remove(self):
@pytest.mark.timeout(300)
def test_list_with_pip_egg(self):
with make_temp_env("python=3 pip") as prefix:
- chec... | conda list misses pip-installed wheels
As of conda 4.1, `conda list` no longer captures python packages that were pip-installed and were installed from wheels.
https://www.python.org/dev/peps/pep-0427/#id14
CC @ilanschnell
| This is actually a real issue now because the large majority of packages on PyPI are distributed as sdists, and now on install, pip force-compiles sdists to wheels, then installs those wheels.
How about we use something like this:
```
import pkgutil
packages = [p[1] for p in pkgutil.iter_modules()]
```
The problem i... | 2016-06-26T19:18:01 |
conda/conda | 2,875 | conda__conda-2875 | [
"2841"
] | 8d744a0fab207153da762d615a7e71342fe9a20f | 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
@@ -257,13 +257,19 @@ def execute_config(args, parser):
if isinstance(rc_config[key], (bool, string_types)):
print("--set", key, rc_config[key])
- els... | diff --git a/tests/test_config.py b/tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -240,8 +240,8 @@ def test_config_command_get():
--set always_yes True
--set changeps1 False
--set channel_alias http://alpha.conda.anaconda.org
---add channels 'defaults'
---add channels 'test'
+--add ch... | Would be nice if conda config --get channels listed the channels in priority order
As far as I can tell it currently lists them in reverse order.
| Good idea!
Wow, I was about to change this, but the code has a note
```
# Note, since conda config --add prepends, these are printed in
# the reverse order so that entering them in this order will
# recreate the same file
```
It's a good point. And as implemented was intended to be a feature. I don't think this is... | 2016-06-26T21:50:18 |
conda/conda | 2,896 | conda__conda-2896 | [
"2891"
] | b1c962d3f282ff93b08bbc831f1edae33a9f653a | diff --git a/conda/config.py b/conda/config.py
--- a/conda/config.py
+++ b/conda/config.py
@@ -194,7 +194,7 @@ def get_default_urls(merged=False):
return defaults_
def get_rc_urls():
- if rc.get('channels') is None:
+ if rc is None or rc.get('channels') is None:
return []
if 'system' in rc['... | conda throws error if allow_other_channels setting is used
The feature to lock down what channels your users are allowed to use stopped working
http://conda.pydata.org/docs/install/central.html#allow-other-channels-allow-other-channels
Reproduced this error in Windows 10 and OS X 10.11.5, if you use this setting in th... | downgraded conda to 4.0.9 and the issue went away.
This occurs because when `allow_other_channels` is `False`, the call to `get_allowed_channels()` in `config.py` is trying to call `get_rc_urls()` before the local `~/.condarc` has been loaded.
This can be fixed by moving the line `allowed_channels = get_allowed_chann... | 2016-06-28T14:54:15 | |
conda/conda | 2,908 | conda__conda-2908 | [
"2886"
] | 767c0a9c06e8d37b06ad2a5afce8a25af1eac795 | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -41,7 +41,6 @@
import tarfile
import tempfile
import time
-import tempfile
import traceback
from os.path import (abspath, basename, dirname, isdir, isfile, islink,
join, normpath)
diff --git a/co... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -260,11 +260,32 @@ def test_tarball_install_and_bad_metadata(self):
assert not package_is_installed(prefix, 'flask-0.10.1')
assert_package_is_installed(prefix, 'python')
- ... | conda install from tarball error?
Running into this issue when trying to install directly from a tarball.
```
Traceback (most recent call last):
File "/usr/local/bin/conda2", line 6, in <module>
sys.exit(main())
An unexpected error has occurred, please consider sending the
following traceback to the conda GitHub... | `conda info`?
This is in a docker image.
```
$ conda info
Current conda install:
platform : linux-64
conda version : 4.1.4
conda-env version : 2.5.1
conda-build version : 1.20.0
python version : 2.7.11.final.0
requests version : 2.9.2
root environment : /opt/conda2 (writa... | 2016-06-29T04:29:30 |
conda/conda | 2,915 | conda__conda-2915 | [
"2681"
] | deaccea600d7b80cbcc939f018a5fdfe2a066967 | diff --git a/conda/egg_info.py b/conda/egg_info.py
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -15,6 +15,7 @@
from .misc import rel_path
+
def get_site_packages_dir(installed_pkgs):
for info in itervalues(installed_pkgs):
if info['name'] == 'python':
diff --git a/conda/exceptions.py b/conda/e... | diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -18,7 +18,3 @@ def test_creates_message_with_instruction_name(self):
e = exceptions.InvalidInstruction(random_instruction)
expected = "No handler for instruction: %s" % ran... | [Regression] Conda create environment fails on lock if root environment is not under user control
This issue is introduced in Conda 4.1.0 (Conda 4.0.8 works fine).
```
$ conda create -n root2 python=2 ... | It seems that I cannot even do `source activate ...` as a regular user now. It just hangs. Here is what I get when I interrupt it with `^C`:
```
$ source activate root2
^CTraceback (most recent call last):
File "/usr/local/miniconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/usr/local/miniconda/li... | 2016-06-29T17:16:25 |
conda/conda | 3,041 | conda__conda-3041 | [
"3036"
] | 0b4b690e6a3e1b5562307b4bda29f2f7cdbb4632 | 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
@@ -151,21 +151,19 @@ def configure_parser(sub_parsers):
choices=BoolOrListKey()
)
action.add_argument(
- "--add",
+ "--append", "--add",
nargs=2,
... | diff --git a/tests/test_config.py b/tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -303,19 +303,19 @@ def test_config_command_basics():
assert stdout == stderr == ''
assert _read_test_condarc(rc) == """\
channels:
- - test
- defaults
+ - test
"""
with make_te... | conda config needs --prepend; change behavior of --add to --append
referencing https://github.com/conda/conda/issues/2841
- conda config needs `--prepend`
- change behavior of `--add` to `--append`
- un-reverse order of `conda config --get channels`
| 2016-07-11T22:03:41 | |
conda/conda | 3,080 | conda__conda-3080 | [
"3060",
"3060"
] | 13302ffd9d51807f34c3bf2fad22cb37356d2449 | diff --git a/conda/misc.py b/conda/misc.py
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -46,7 +46,7 @@ def explicit(specs, prefix, verbose=False, force_extract=True, index_args=None,
index_args = index_args or {}
index = index or {}
verifies = []
- channels = {}
+ channels = set()
for spec in sp... | conda create causes: AttributeError: 'dict' object has no attribute 'add'
Trying to clone the root environment with:
```
conda create --clone root --copy -n myenv2
```
Gives:
```
Traceback (most recent call last):
File "/opt/miniconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/opt/miniconda/lib/... | Same problem on Windows. Also encountered https://github.com/conda/conda/issues/3009
On Mac, it also has this bug. In the source code, channels is initialised as {}, and dict has no add() function. I change it to channels = () at line 51, and every thing is fine.
Thanks for pointing out the bug
@kalefranz , this is... | 2016-07-15T03:12:13 | |
conda/conda | 3,143 | conda__conda-3143 | [
"3073"
] | c5fa7f9f4482b99e5c4f0f3d6d2e9cee9afb578a | diff --git a/conda/connection.py b/conda/connection.py
--- a/conda/connection.py
+++ b/conda/connection.py
@@ -6,6 +6,10 @@
from __future__ import print_function, division, absolute_import
+from base64 import b64decode
+
+import ftplib
+
import cgi
import email
import mimetypes
@@ -16,10 +20,12 @@
from io impo... | put ftp:// back into 4.2
| 2016-07-25T16:54:06 | ||
conda/conda | 3,144 | conda__conda-3144 | [
"3079"
] | c5fa7f9f4482b99e5c4f0f3d6d2e9cee9afb578a | diff --git a/conda/_vendor/auxlib/packaging.py b/conda/_vendor/auxlib/packaging.py
--- a/conda/_vendor/auxlib/packaging.py
+++ b/conda/_vendor/auxlib/packaging.py
@@ -69,11 +69,14 @@
import sys
from collections import namedtuple
from logging import getLogger
-from os import getenv, remove
+from os import getenv, rem... | setuptools hard build dependency
Here: https://github.com/conda/conda/blob/master/setup.py#L8
@kalefranz I thought we had agreed that setuptools is not going to be a hard build dependency anymore.
| If you don't want to hard code all the packages (because you're vendoring so many things now), you can use this code:
```
import os
from fnmatch import fnmatchcase
from distutils.util import convert_path
def find_packages(where='.', exclude=()):
out = []
stack=[(convert_path(where), '')]
while stack:
... | 2016-07-25T16:58:34 | |
conda/conda | 3,210 | conda__conda-3210 | [
"2837",
"2837"
] | 21c26e487dee9567467c18761fc7bffa511a97bd | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -613,7 +613,7 @@ def symlink_conda_hlp(prefix, root_dir, where, symlink_fn):
symlink_fn(root_file, prefix_file)
except (IOError, OSError) as e:
if (os.path.lexists(prefix_file) and
- ... | Activate issue with parallel activations - "File exists" in symlinked path
I'm working in a cluster environment where I am trying to activate a conda environment in multiple parallel processes. After recently upgrading to the latest release (4.1.2), I've been receiving a "File exists" error in some of those processes, ... | @tomfleming We've had some fixes since `4.1.2` that might have tangentially touched on this, and may have ended up helping. Can you see if you still have the problem as of `4.1.5`?
I downgraded to `4.0.0` and it appears to have resolved this issue.
I'd recommend dropping back not to 4.0.0, but rather 4.0.10.
This h... | 2016-08-02T18:38:52 | |
conda/conda | 3,228 | conda__conda-3228 | [
"3226"
] | 3b60a03ff8a2a839968a6ab299377129c8e15574 | diff --git a/conda/base/constants.py b/conda/base/constants.py
--- a/conda/base/constants.py
+++ b/conda/base/constants.py
@@ -62,9 +62,9 @@ def from_sys(cls):
'$CONDA_ROOT/condarc',
'$CONDA_ROOT/.condarc',
'$CONDA_ROOT/condarc.d/',
- '$HOME/.conda/condarc',
- '$HOME/.conda/condarc.d/',
- '$HOME... | `conda update --all` wants to downgrade from conda-canary (and then things go haywire)
I just did the following to try out conda-canary:
```
>conda config --add channels conda-canary
>conda update conda
...
The following packages will be UPDATED:
conda: 4.1.9-py35_0 --> 4.2.1-py35_0 conda-canary
Proceed ([y]/n)?... | Well that's frustrating. Thanks for the report. Let me try to reproduce on windows right now. In the meantime, can you give the me contents of your condarc file?
Ok, I wasn't able to reproduce yet. My own output from windows below.
You basically have a broken conda right now, correct? The easiest way to recover ... | 2016-08-04T03:41:28 | |
conda/conda | 3,257 | conda__conda-3257 | [
"3256"
] | 83f397d3d596dedc93e0160104dad46c6bfdb7ef | diff --git a/conda/utils.py b/conda/utils.py
--- a/conda/utils.py
+++ b/conda/utils.py
@@ -313,6 +313,12 @@ def human_bytes(n):
"sh.exe": dict(
msys2_shell_base, exe="sh.exe",
),
+ "zsh.exe": dict(
+ msys2_shell_base, exe="zsh.exe",
+ ),
+ "zsh": dict(
+ ... | Zsh.exe not supported on MSYS2
The following error is reported in a MSYS2 zsh shell:
```
➜ dotfiles git:(master) ✗ source activate py35_32
Traceback (most recent call last):
File "C:\Miniconda3\Scripts\conda-script.py", line 5, in <module>
sys.exit(main())
File "C:\Miniconda3\lib\site-packages\conda\cli\main.... | 2016-08-09T15:16:41 | ||
conda/conda | 3,258 | conda__conda-3258 | [
"3253"
] | 83f397d3d596dedc93e0160104dad46c6bfdb7ef | diff --git a/conda_env/specs/requirements.py b/conda_env/specs/requirements.py
--- a/conda_env/specs/requirements.py
+++ b/conda_env/specs/requirements.py
@@ -37,6 +37,9 @@ def environment(self):
dependencies = []
with open(self.filename) as reqfile:
for line in reqfile:
+ ... | conda canary - unable to create environment yml file
I just did
`
(anabase) (psreldev) psel701: /reg/g/psdm/sw/conda/logs $ conda env export > ../manage/config/environment-anabase-1.0.0.yml`
anabase is the environment, I also add the account, psreldev, that I'm logged into, and got this output
```
n unexpected error ... | Perhaps related to above, after I create the environment file with the non-canaray conda, i.e,
```
anabase) (psreldev) psdev105: /reg/g/psdm/sw/conda $ conda info
Current conda install:
platform : linux-64
conda version : 4.1.11
conda-env version : 2.5.2
conda-build version : 1.21.9
... | 2016-08-09T15:51:07 | |
conda/conda | 3,259 | conda__conda-3259 | [
"3253"
] | 83f397d3d596dedc93e0160104dad46c6bfdb7ef | diff --git a/conda_env/cli/main_export.py b/conda_env/cli/main_export.py
--- a/conda_env/cli/main_export.py
+++ b/conda_env/cli/main_export.py
@@ -90,7 +90,7 @@ def execute(args, parser):
name = args.name
prefix = get_prefix(args)
env = from_environment(name, prefix, no_builds=args.no_builds,
- ... | conda canary - unable to create environment yml file
I just did
`
(anabase) (psreldev) psel701: /reg/g/psdm/sw/conda/logs $ conda env export > ../manage/config/environment-anabase-1.0.0.yml`
anabase is the environment, I also add the account, psreldev, that I'm logged into, and got this output
```
n unexpected error ... | Perhaps related to above, after I create the environment file with the non-canaray conda, i.e,
```
anabase) (psreldev) psdev105: /reg/g/psdm/sw/conda $ conda info
Current conda install:
platform : linux-64
conda version : 4.1.11
conda-env version : 2.5.2
conda-build version : 1.21.9
... | 2016-08-09T15:53:54 | |
conda/conda | 3,326 | conda__conda-3326 | [
"3307",
"3307"
] | 550d679e447b02781caeb348aa89370a62ffa400 | diff --git a/conda/lock.py b/conda/lock.py
--- a/conda/lock.py
+++ b/conda/lock.py
@@ -45,8 +45,11 @@ def touch(file_name, times=None):
Examples:
touch("hello_world.py")
"""
- with open(file_name, 'a'):
- os.utime(file_name, times)
+ try:
+ with open(file_name, 'a'):
+ ... | diff --git a/tests/test_lock.py b/tests/test_lock.py
--- a/tests/test_lock.py
+++ b/tests/test_lock.py
@@ -1,9 +1,12 @@
import pytest
-from os.path import basename, join
-from conda.lock import FileLock, LOCKSTR, LOCK_EXTENSION, LockError
-from conda.install import on_win
+from os.path import basename, join, exists, i... | [Regression] Conda create environment fails on lock if root environment is not under user control
This is "funny", but it seems that Conda managed to break this thing the second time in a month... #2681 was the previous one.
This time, I get the following error:
```
$ conda create -n _root --yes --use-index-cache pyt... | @frol, First, **thanks for using canary**!! Do you know if a previous run of conda crashed, exited prematurely, or you sent a signal (i.e. ctrl-c) for it to exit early? Something made that lock file stick around...
```
conda clean --yes --lock
```
should take care of it for you. If it doesn't, that's definitely a ... | 2016-08-20T01:22:54 |
conda/conda | 3,335 | conda__conda-3335 | [
"3332"
] | 20e6122508e98f63b2cde8d03c58599d66f3f111 | diff --git a/conda/fetch.py b/conda/fetch.py
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -351,7 +351,6 @@ def fetch_pkg(info, dst_dir=None, session=None):
def download(url, dst_path, session=None, md5=None, urlstxt=False, retries=None):
- assert "::" not in str(url), url
assert "::" not in str(dst_path), ... | URLs with :: are OK and should not raise assertion errors
For conda-build's perl skeleton generator, we can end up with URLs like:
http://api.metacpan.org/v0/module/Test::More
Unfortunately, conda prevents us from actually using those URLs:
```
File "/Users/msarahan/miniconda2/lib/python2.7/site-packages/conda/fet... | I believe I add this assertion, and I think it is fine to revert back or change it in a new PR.
| 2016-08-23T13:38:33 | |
conda/conda | 3,390 | conda__conda-3390 | [
"3282"
] | 35c14b82aa582f17f37042ae15bcac9d9c0761df | diff --git a/conda/common/configuration.py b/conda/common/configuration.py
--- a/conda/common/configuration.py
+++ b/conda/common/configuration.py
@@ -188,7 +188,7 @@ def __repr__(self):
return text_type(vars(self))
@abstractmethod
- def value(self, parameter_type):
+ def value(self, parameter_obj... | diff --git a/tests/common/test_configuration.py b/tests/common/test_configuration.py
--- a/tests/common/test_configuration.py
+++ b/tests/common/test_configuration.py
@@ -128,7 +128,7 @@
}
-class TestConfiguration(Configuration):
+class SampleConfiguration(Configuration):
always_yes = PrimitiveParameter(False... | CONDA_CHANNELS environment variable doesn't work
fixed with #3390
| 2016-09-06T21:54:02 | |
conda/conda | 3,395 | conda__conda-3395 | [
"3203"
] | 9c1750349b4c1d66a9caf95d21a9edf90e1eb9cf | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -20,10 +20,10 @@
log = getLogger(__name__)
-
-default_python = '%d.%d' % sys.version_info[:2]
-
-# ----- operating system and architecture -----
+try:
+ import cio_test # NOQA
+except ImportErr... | Conda 4.2 branch doesn't support CIO_TEST.
In config.py in `conda 4.1.x` I see:
```
def get_channel_urls(platform=None):
if os.getenv('CIO_TEST'):
import cio_test
base_urls = cio_test.base_urls
```
cio_test is not imported anywhere in 4.2.
| I need to discuss with Ilan. Didn't get a chance today.
No problem, I've been using `4.1.x` when I need to build those packages anyway.
| 2016-09-07T15:08:31 | |
conda/conda | 3,412 | conda__conda-3412 | [
"3409",
"3409"
] | 2dd399d86344c8cb8a2fae41f991f8585e73ec9f | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -15,7 +15,7 @@
from difflib import get_close_matches
from os.path import abspath, basename, exists, isdir, join
-from .. import CondaError, text_type
+from .. import text_type
from .._vendor.auxlib.ish... | unsatisfiability crashes conda canary 4.2.5, rather than giving error output
I have a python 3 environment, with the lastest conda in conda-canary, that is
```
Current conda install:
platform : linux-64
conda version : 4.2.5
conda is private : False
conda-env version : 2.6.0
... | 2016-09-13T00:09:16 | ||
conda/conda | 3,413 | conda__conda-3413 | [
"3408",
"3408"
] | 2dd399d86344c8cb8a2fae41f991f8585e73ec9f | diff --git a/conda/common/disk.py b/conda/common/disk.py
--- a/conda/common/disk.py
+++ b/conda/common/disk.py
@@ -192,7 +192,7 @@ def rm_rf(path, max_retries=5, trash=True):
move_result = move_path_to_trash(path)
if move_result:
return True
- ... | unexpected file locking warnings and errors - nuissance messages
I am getting errors and warnings related to locking when I activate an environment as a user. The only other activity that is going on is that the account used to manage the central install is running conda build to build a package - but it is doing so fr... | 2016-09-13T00:24:38 | ||
conda/conda | 3,416 | conda__conda-3416 | [
"3407",
"3407"
] | f1a591d5a5afd707dc38386d7504ebcf974f22c0 | diff --git a/conda/exceptions.py b/conda/exceptions.py
--- a/conda/exceptions.py
+++ b/conda/exceptions.py
@@ -128,8 +128,9 @@ def __init__(self, *args, **kwargs):
class PaddingError(CondaError):
- def __init__(self, *args):
- msg = 'Padding error: %s' % ' '.join(text_type(arg) for arg in self.args)
+ ... | diff --git a/tests/test_install.py b/tests/test_install.py
--- a/tests/test_install.py
+++ b/tests/test_install.py
@@ -18,7 +18,8 @@
from conda.fetch import download
from conda.install import (FileMode, PaddingError, binary_replace, dist2dirname, dist2filename,
dist2name, dist2pair, dist2q... | conda build - exception - padding error
I just updated to the lastest conda-build in defaults, and latest conda conda-env in conda canary, when I run conda build I am getting a 'package error'. Here is my conda environemnt:
```
platform : linux-64
conda version : 4.2.5
conda is private : False
co... | @davidslac Thanks so much for all of these bug reports. Will investigate and fix them all.
You're welcome!
From: Kale Franz <notifications@github.com<mailto:notifications@github.com>>
Reply-To: conda/conda <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Monday, September 12, 2016 at 8:28 AM
To: conda/c... | 2016-09-13T10:29:01 |
conda/conda | 3,454 | conda__conda-3454 | [
"3453"
] | 5980241daa95ec60af005ad1764bbadfa1d244a3 | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -63,7 +63,7 @@ def check_prefix(prefix, json=False):
if name == ROOT_ENV_NAME:
error = "'%s' is a reserved environment name" % name
if exists(prefix):
- if isdir(prefix) and not os... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -19,6 +19,7 @@
from conda.cli.main_update import configure_parser as update_configure_parser
from conda.common.io import captured, disable_logger, stderr_log_level
from conda.common.url import path_to_ur... | Conda Fails with create_default_packages
When using `create_default_packages`, `conda create...` fails.
## Sample condarc:
```
channels:
- defaults
create_default_packages:
- python
- pip
```
## Command
`conda create -n test_conda_update python=2 numpy`
## Error
```
Traceback (most recent call last):
... | 2016-09-16T18:43:46 | |
conda/conda | 3,521 | conda__conda-3521 | [
"3467",
"3467"
] | 8fa70193de809a03208a1f807e701ee29ddac145 | diff --git a/conda/common/configuration.py b/conda/common/configuration.py
--- a/conda/common/configuration.py
+++ b/conda/common/configuration.py
@@ -637,9 +637,11 @@ def __init__(self, element_type, default=None, aliases=(), validation=None):
def collect_errors(self, instance, value, source="<<merged>>"):
... | diff --git a/tests/common/test_configuration.py b/tests/common/test_configuration.py
--- a/tests/common/test_configuration.py
+++ b/tests/common/test_configuration.py
@@ -5,7 +5,7 @@
from conda.common.compat import odict, string_types
from conda.common.configuration import (Configuration, MapParameter, ParameterFlag,... | Unable to conda update --all
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
```
https://github.com/conda/conda/issues
```
Current conda install:
```
platform : win-64
conda version : 4.2.6
conda is private : False
conda-... | 2016-09-26T20:38:04 | |
conda/conda | 3,524 | conda__conda-3524 | [
"3492"
] | 4f96dbd1d29ad9b9476be67217f63edd066b26b0 | diff --git a/conda/base/constants.py b/conda/base/constants.py
--- a/conda/base/constants.py
+++ b/conda/base/constants.py
@@ -99,6 +99,9 @@ class _Null(object):
def __nonzero__(self):
return False
+ def __bool__(self):
+ return False
+
NULL = _Null()
UTF8 = 'UTF-8'
| diff --git a/tests/base/test_constants.py b/tests/base/test_constants.py
new file mode 100644
--- /dev/null
+++ b/tests/base/test_constants.py
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, division, print_function, unicode_literals
+
+from conda.base.constants import NULL
+from logg... | Progress bar broken

```
C:\Users\Korijn\dev\myproject>conda info
Current conda install:
platform : win-64
conda version : 4.2.7
conda is private : False
conda-env versio... | I am also having this problem, although only with `conda env` commands (e.g. `conda env create` or `conda env update`). `conda install` works fine.
``` bash
$ conda info
Current conda install:
platform : linux-64
conda version : 4.2.7
conda is private : False
conda-env version : ... | 2016-09-26T22:02:12 |
conda/conda | 3,537 | conda__conda-3537 | [
"3536",
"3536"
] | 4f96dbd1d29ad9b9476be67217f63edd066b26b0 | diff --git a/conda_env/cli/main.py b/conda_env/cli/main.py
--- a/conda_env/cli/main.py
+++ b/conda_env/cli/main.py
@@ -1,4 +1,7 @@
from __future__ import print_function, division, absolute_import
+
+from logging import getLogger, CRITICAL
+
import os
import sys
@@ -66,6 +69,14 @@ def main():
parser = create_p... | Conda prints stuff in stdout even with --json flag on
Conda commands with the `--json` should not print to the console anything unless it is proper json, otherwise assumptions made by parsing clients (Like the Navigator import functionality) break.
Something like
`conda env create -n qatest -f environment.yaml --json... | 2016-09-27T18:39:23 | ||
conda/conda | 3,538 | conda__conda-3538 | [
"3525",
"3525"
] | 4f96dbd1d29ad9b9476be67217f63edd066b26b0 | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -1046,7 +1046,8 @@ def messages(prefix):
path = join(prefix, '.messages.txt')
try:
with open(path) as fi:
- sys.stdout.write(fi.read())
+ fh = sys.stderr if context.json else sys.st... | Invalid JSON output
When installing `Jupyter` I sometimes see the following error:
```
post-link :: /etc/machine-id not found ..
bus post-link :: .. using /proc/sys/kernel/random/boot_id
```
When installing with the `--json` flag the error output causes the json to be invalid. Example:
```
root@head:~# conda create... | Which jupyter package and recipe? Need to see the post-link scripts...
> jupyter 4.2.0 py27_0 defaults
@mingwandroid mentioned that this was a warning, which seems fine as long as the output can be valid JSON
I don't see a jupyter 4.2.0 at http://repo.continuum.io/pkgs/free/linux-64/
Can you give me the link to t... | 2016-09-27T18:40:12 | |
conda/conda | 3,625 | conda__conda-3625 | [
"3600"
] | 63c67adc0fd9cd187bec79abdd5ca23f8ff73297 | diff --git a/conda/common/disk.py b/conda/common/disk.py
--- a/conda/common/disk.py
+++ b/conda/common/disk.py
@@ -6,7 +6,7 @@
from itertools import chain
from logging import getLogger
from os import W_OK, access, chmod, getpid, listdir, lstat, makedirs, rename, unlink, walk
-from os.path import abspath, basename, d... | diff --git a/tests/common/test_disk.py b/tests/common/test_disk.py
new file mode 100644
--- /dev/null
+++ b/tests/common/test_disk.py
@@ -0,0 +1,58 @@
+import unittest
+import pytest
+from os.path import join, abspath
+import os
+
+from conda.utils import on_win
+from conda.compat import text_type
+from conda.common.di... | conda update icu (54.1-0 --> 56.1-4 conda-forge)
In a new installation, it appears that going from icu 54 to 56 will fail unless the following is done (at least on linux):
bash Anaconda2-4.2.0-Linux-x86_64.sh
conda remove icu
rm -r $HOME/anaconda2/lib/icu
conda install -c conda-forge icu=56.1
In other words, using th... | @rickedanielson could you share the output from `conda info` and the full stack trace for the case when you get the error?
```
> conda info
Current conda install:
platform : linux-64
conda version : 4.2.9
conda is private : False
conda-env version : 4.2.9
conda-build version ... | 2016-10-13T23:53:09 |
conda/conda | 3,633 | conda__conda-3633 | [
"3533"
] | 2d850dc7ce6ded5c7573ce470dca81517a6f9b94 | diff --git a/conda/common/configuration.py b/conda/common/configuration.py
--- a/conda/common/configuration.py
+++ b/conda/common/configuration.py
@@ -23,7 +23,7 @@
from itertools import chain
from logging import getLogger
from os import environ, stat
-from os.path import join
+from os.path import join, basename
fr... | BUG: CONDARC env var broken in latest conda
After upgrading to conda version 4.2.7 the CONDARC env var no longer supports filenames of any format. It appears to only support filenames that end with .yml or .condarc.
This is a functionality regression bug. Can this be fixed immediately!?
**conda info**
Current conda ... | Added to my list to talk through with @mcg1969 tomorrow.
| 2016-10-14T16:07:18 | |
conda/conda | 3,654 | conda__conda-3654 | [
"3651"
] | 08fcffebd379914df4e3ba781d100d48cde11650 | diff --git a/conda/exports.py b/conda/exports.py
new file mode 100644
--- /dev/null
+++ b/conda/exports.py
@@ -0,0 +1,96 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, division, print_function, unicode_literals
+
+from functools import partial
+from warnings import warn
+
+from conda import compat... | diff --git a/tests/test_exports.py b/tests/test_exports.py
new file mode 100644
--- /dev/null
+++ b/tests/test_exports.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, division, print_function, unicode_literals
+
+
+def test_exports():
+ import conda.exports
+ assert conda.expo... | Removal of handle_proxy_407 breaks conda-build
Elevating as issue from https://github.com/conda/conda/commit/b993816b39a48d807e7a9659246266f6035c3dcd#commitcomment-19452072 so that it does not get lost.
Removal of handle_proxy_407 breaks conda-build (it is used in pypi skeleton code for some reason.) Is there an alter... | 2016-10-17T17:47:56 | |
conda/conda | 3,656 | conda__conda-3656 | [
"3655",
"3655"
] | 08fcffebd379914df4e3ba781d100d48cde11650 | diff --git a/conda/models/channel.py b/conda/models/channel.py
--- a/conda/models/channel.py
+++ b/conda/models/channel.py
@@ -5,7 +5,7 @@
from logging import getLogger
from requests.packages.urllib3.util import Url
-from ..base.constants import DEFAULT_CHANNELS_UNIX, DEFAULT_CHANNELS_WIN
+from ..base.constants imp... | error while searching for `notebook`
I recently installed `ipykernel`, after which, commands
`ipython notebook` produced "ImportError: No module named 'notebook'", and
`jupyter notebook` produced "jupyter: 'notebook' is not a Jupyter command".
So, I ran `conda search notebook` and got the following message:
> Current ... | 2016-10-17T20:41:12 | ||
conda/conda | 3,683 | conda__conda-3683 | [
"3646",
"3646"
] | 94e75d401e415e17d20a0b789a03f1f0bc85b7dc | diff --git a/conda/install.py b/conda/install.py
--- a/conda/install.py
+++ b/conda/install.py
@@ -281,7 +281,7 @@ def replace(match):
def replace_long_shebang(mode, data):
- if mode is FileMode.text:
+ if mode == FileMode.text:
shebang_match = SHEBANG_REGEX.match(data)
if shebang_match:
... | Installing ompython-2.0.7
Current conda install:
```
platform : osx-64
conda version : 4.2.7
conda is private : False
conda-env version : 4.2.7
conda-build version : not installed
python version : 2.7.12.final.0
requests version : 2.11.1
root environment : /Library/Frameworks/Python.fr... | Same here when trying to go through 30-minute tutorial:
```
Current conda install:
platform : linux-64
conda version : 4.2.9
conda is private : False
conda-env version : 4.2.9
conda-build version : not installed
python version : 2.7.12.final.0
requests versio... | 2016-10-20T20:14:18 | |
conda/conda | 3,684 | conda__conda-3684 | [
"3517",
"3517"
] | 94e75d401e415e17d20a0b789a03f1f0bc85b7dc | diff --git a/conda/cli/install.py b/conda/cli/install.py
--- a/conda/cli/install.py
+++ b/conda/cli/install.py
@@ -142,7 +142,7 @@ def install(args, parser, command='install'):
isinstall = bool(command == 'install')
if newenv:
common.ensure_name_or_prefix(args, command)
- prefix = context.prefix i... | diff --git a/tests/test_create.py b/tests/test_create.py
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -20,6 +20,7 @@
from conda.cli.main_remove import configure_parser as remove_configure_parser
from conda.cli.main_search import configure_parser as search_configure_parser
from conda.cli.main_update impor... | --mkdir no longer works
After upgrading to `conda=4.2`:
```
C:\> conda install --mkdir -n name python=3.5
CondaEnvironmentNotFoundError: Could not find environment: name .
You can list all discoverable environments with `conda info --envs`.
```
--mkdir no longer works
After upgrading to `conda=4.2`:
```
C:\> conda i... | 2016-10-20T20:34:10 | |
conda/conda | 3,685 | conda__conda-3685 | [
"3469",
"3469"
] | 94e75d401e415e17d20a0b789a03f1f0bc85b7dc | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -104,6 +104,9 @@ class Context(Configuration):
binstar_upload = PrimitiveParameter(None, aliases=('anaconda_upload',),
parameter_type=(bool, NoneType))
+ ... | diff --git a/tests/base/test_context.py b/tests/base/test_context.py
--- a/tests/base/test_context.py
+++ b/tests/base/test_context.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+import os
+
import pytest
from conda._vendor.auxlib.ish... | Conda 4.2.x attempts to create lock files in readonly file-based channels and does not respect CONDA_ENVS_PATH
I am getting warnings and eventually an error after upgrading from 4.1.11 to 4.2.7 relating to lock files and packages attempting to write to shared read-only directories in our continuous build.
I modified `... | Re: lock files, ran into the same problem today -- conda tries to create lock files for readonly file-based channels which yields a ton of warnings:
``` sh
$ conda create -p ./foobar python=3.5
WARNING conda.lock:touch(53): Failed to create lock, do not run conda in parallel processes [errno 13]
WARNING conda.lock:tou... | 2016-10-20T20:55:54 |
conda/conda | 3,686 | conda__conda-3686 | [
"3560"
] | 94e75d401e415e17d20a0b789a03f1f0bc85b7dc | diff --git a/conda/cli/main_info.py b/conda/cli/main_info.py
--- a/conda/cli/main_info.py
+++ b/conda/cli/main_info.py
@@ -11,6 +11,7 @@
import re
import sys
from collections import OrderedDict
+from conda.common.url import mask_anaconda_token
from os import listdir
from os.path import exists, expanduser, join
@... | conda info exposing tokens
Hi, the conda info command is exposing tokens again. Por ejemplo:
```
Current conda install:
platform : win-64
conda version : 4.2.9
conda is private : False
conda-env version : 4.2.9
conda-build version : 2.0.2
python version : 2.7.12.fina... | Definitely a bug. Thanks for the report.
| 2016-10-20T21:23:45 | |
conda/conda | 3,698 | conda__conda-3698 | [
"3664"
] | a5d9c1739f7743a0dc795250beb6ad9b26a786d2 | diff --git a/conda/common/disk.py b/conda/common/disk.py
--- a/conda/common/disk.py
+++ b/conda/common/disk.py
@@ -20,6 +20,8 @@
log = getLogger(__name__)
+MAX_TRIES = 7
+
def try_write(dir_path, heavy=False):
"""Test write access to a directory.
@@ -50,20 +52,21 @@ def try_write(dir_path, heavy=False):
... | conda appears to be stuck during update/install: Access Denied Error on Windows
Hi,
At work we have on occasion noticed that some of our build workers were taking unusually long during some `conda update` and `conda install` operations.
After enabling debugging with `-vv` and `-debug`, we identified that Conda was ha... | First, thanks for the awesome, detailed report. I wish every issue filed was this descriptive :)
As you can tell from our code, we've been battling permissions issues like this on windows for a while now.
Question 1: What are the details of your file system/mount for your `W:\` drive? Local? Network? NTFS? Other?
... | 2016-10-22T20:17:25 | |
conda/conda | 3,740 | conda__conda-3740 | [
"3738",
"3738"
] | c82d2b307f00db63fb344b1e9089352b1fc452f3 | diff --git a/conda_env/yaml.py b/conda_env/yaml.py
--- a/conda_env/yaml.py
+++ b/conda_env/yaml.py
@@ -5,7 +5,9 @@
"""
from __future__ import absolute_import, print_function
from collections import OrderedDict
-import yaml
+
+from conda.common.yaml import get_yaml
+yaml = get_yaml()
def represent_ordereddict(du... | conda env create giving ImportError for yaml package
`conda env create` suddenly started giving `"ImportError: No module named 'yaml'"` with latest miniconda on my TravisCI builbs: https://travis-ci.org/leouieda/website/builds/170917743
I changed nothing significant in my code. Tried rebuilding previous passing builds... | Wow. Thanks for the report. I thought we had patched conda_env to use `ruamel_yaml`. I guess not.
If you want to fix your build until we get this patched, you can add `conda install pyyaml`.
Wow. Thanks for the report. I thought we had patched conda_env to use `ruamel_yaml`. I guess not.
If you want to fix you... | 2016-10-27T00:06:46 | |
conda/conda | 3,747 | conda__conda-3747 | [
"3732",
"3732"
] | 2604c2bd504996d1acf627ae9dcc1158a1d73fa5 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -243,7 +243,6 @@ def local_build_root_channel(self):
location, name = url_parts.path.rsplit('/', 1)
if not location:
location = '/'
- assert name == 'conda-bld'
... | diff --git a/tests/base/test_context.py b/tests/base/test_context.py
--- a/tests/base/test_context.py
+++ b/tests/base/test_context.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
+from os.path import basename, dirname
+
import os
imp... | Document that $CONDA_BLD_PATH must end with "/conda-bld" (and stop breaking stuff with minor releases)
On September 30, @kalefranz inserted a new assertion (`name == 'conda-bld'`) into `context.py` ([see here](https://github.com/conda/conda/blame/master/conda/base/context.py#L299)) causing `conda info` to fail when `CO... | Noting the origin is related to https://github.com/conda/conda/issues/3717, and specifically https://github.com/conda/conda/issues/3717#issuecomment-255830103 and subsequent discussion.
I also thought I posted one reply to this already. I guess the comment didn't stick.
This is definitely a bug. Any assertion error... | 2016-10-27T18:45:20 |
conda/conda | 3,748 | conda__conda-3748 | [
"3717",
"3717"
] | 2604c2bd504996d1acf627ae9dcc1158a1d73fa5 | diff --git a/conda/models/channel.py b/conda/models/channel.py
--- a/conda/models/channel.py
+++ b/conda/models/channel.py
@@ -73,9 +73,14 @@ def _get_channel_for_name_helper(name):
def _read_channel_configuration(scheme, host, port, path):
# return location, name, scheme, auth, token
- test_url = Url(host=h... | 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
@@ -5,6 +5,7 @@
from conda.base.context import context, reset_context
from conda.common.compat import odict
from conda.common.configuration import YamlRawParameter
+from cond... | regression bug: https://github.com/conda/conda/issues/3235 appears to have resurrected itself in another place
The bug was that conda handled the channel "http://conda-01" incorrectly. Here's the stack trace in conda 4.2.11:
```
Traceback (most recent call last):
File "C:\Miniconda3\lib\site-packages\conda\e... | Adding some print statements gives the following specific variable values from split_conda_url_easy_parts in the innermost calls:
```
url=http://conda-01/win-64/qt5-5.6.1.1-msvc2015rel_2.tar.bz2
host=conda-01
port=None
path=None
query=None
scheme=http
```
Yeah I know where the bug is. 4.2.11 introduced the requireme... | 2016-10-27T19:38:37 |
conda/conda | 3,811 | conda__conda-3811 | [
"3807"
] | d5af6bb5798b69beb27bb670d01fb5621bae0e4d | 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
@@ -13,6 +13,7 @@
from .common import (Completer, add_parser_json, stdout_json_success)
from .. import CondaError
from .._vendor.auxlib.compat import isiterable
+from .._vendor.auxlib.entity... | conda config --show --json fails with TypeError is not JSON serializable.
```
$conda config --show --json
{
"error": "Traceback (most recent call last):\n File \"C:\\Anaconda\\lib\\site-packages\\conda\\exceptions.py\", line 479, in conda_exception_handler\n return_value = func(*args, **kwargs)\n File \"C:\\A... | 2016-11-04T19:30:17 | ||
conda/conda | 3,813 | conda__conda-3813 | [
"3801"
] | d5af6bb5798b69beb27bb670d01fb5621bae0e4d | diff --git a/conda/misc.py b/conda/misc.py
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -77,17 +77,17 @@ def explicit(specs, prefix, verbose=False, force_extract=True, index_args=None,
# is_local: if the tarball is stored locally (file://)
# is_cache: if the tarball is sitting in our cache
is_l... | local install create file: folder
Hi,
A folder named `file:` is always created if I installed conda package locally.
`conda install /local/path/bz2`
related to: https://github.com/conda/conda/issues/3770
```bash
$ conda info
Current conda install:
platform : linux-64
conda versi... | 2016-11-04T23:30:56 | ||
conda/conda | 3,832 | conda__conda-3832 | [
"3830"
] | 1fcd3e169389e8add2f7e4d0fda0aa984c816c24 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -79,6 +79,8 @@ class Context(Configuration):
_channel_alias = PrimitiveParameter(DEFAULT_CHANNEL_ALIAS,
aliases=('channel_alias',),
... | Make http timeouts configurable
http://docs.python-requests.org/en/master/user/advanced/#timeouts
Also set defaults to 2x current defaults.
CC @quasiben
| 2016-11-08T03:08:28 | ||
conda/conda | 3,931 | conda__conda-3931 | [
"3910"
] | 5621882c6fd06ee263738c8981e419df772150b4 | diff --git a/conda/common/url.py b/conda/common/url.py
--- a/conda/common/url.py
+++ b/conda/common/url.py
@@ -68,6 +68,8 @@ def url_to_s3_info(url):
def is_url(url):
+ if not url:
+ return False
try:
p = urlparse(url)
return p.netloc is not None or p.scheme == "file"
| Regression: cannot install from explicit conda package filenames
This command used to work, but now it gives the following error/traceback:
Example: `conda install bzip2-1.0.6-vc14_3.tar.bz2 --dry-run`
```
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub i... | Definitely looks like a bug. And I'm really confused why regression tests didn't already catch this.
What happens if you actually install the file and don't use `--dry-run`?
```
conda install bzip2-1.0.6-vc14_3.tar.bz2
```
Same thing?
It happens the same thing, with the same traceback. I've tried a lot of other di... | 2016-11-22T06:05:22 | |
conda/conda | 3,969 | conda__conda-3969 | [
"4378"
] | ca57ef2a1ac70355d1aeb58ddc2da78f655c4fbc | diff --git a/conda/egg_info.py b/conda/egg_info.py
--- a/conda/egg_info.py
+++ b/conda/egg_info.py
@@ -30,6 +30,10 @@ def get_site_packages_dir(installed_pkgs):
def get_egg_info_files(sp_dir):
for fn in os.listdir(sp_dir):
+ if fn.endswith('.egg-link'):
+ with open(join(sp_dir, fn), 'r') as re... | diff --git a/tests/conda_env/installers/test_pip.py b/tests/conda_env/installers/test_pip.py
--- a/tests/conda_env/installers/test_pip.py
+++ b/tests/conda_env/installers/test_pip.py
@@ -4,21 +4,40 @@
except ImportError:
import mock
+import os
from conda_env.installers import pip
from conda.exceptions import ... | Invalid requirement while trying to use pip options
Hi!
I have in my pip section inside envrionment.yaml file this line
```- rep --install-option='--no-deps'```
while I am trying to update my environment I am getting this error
```Invalid requirement: 'rep --install-option='--no-deps''```
if I do pip -r re... | 2016-11-30T07:37:55 | |
conda/conda | 4,100 | conda__conda-4100 | [
"4097",
"4097"
] | cdd0d5ab8ec583768875aab047de65040bead9cf | diff --git a/conda/base/constants.py b/conda/base/constants.py
--- a/conda/base/constants.py
+++ b/conda/base/constants.py
@@ -12,7 +12,10 @@
from os.path import join
on_win = bool(sys.platform == "win32")
-PREFIX_PLACEHOLDER = '/opt/anaconda1anaconda2anaconda3'
+PREFIX_PLACEHOLDER = ('/opt/anaconda1anaconda2'
+ ... | diff --git a/tests/core/test_portability.py b/tests/core/test_portability.py
--- a/tests/core/test_portability.py
+++ b/tests/core/test_portability.py
@@ -51,11 +51,11 @@ def test_shebang_regex_matches(self):
def test_replace_long_shebang(self):
content_line = b"content line " * 5
- # # simple sh... | On Windows, conda 4.0.5-py35_0 cannot be updated to 4.3.0-py35_1
On a fresh install of the latest Miniconda on Windows, the following fails:
`conda update -c conda-canary --all`
Giving:
```
Fetching package metadata: ......
Solving package specifications: .........
Package plan for installation in environ... | 2016-12-19T01:03:44 | |
conda/conda | 4,175 | conda__conda-4175 | [
"4152",
"4152"
] | d01341e40f358753db6ce549977835ab84cfd454 | diff --git a/conda_env/env.py b/conda_env/env.py
--- a/conda_env/env.py
+++ b/conda_env/env.py
@@ -36,10 +36,9 @@ def from_environment(name, prefix, no_builds=False, ignore_channels=False):
name: The name of environment
prefix: The path of prefix
no_builds: Whether has build requirement
- ... | conda env export failure
Under conda 4.3.1, `conda env export` returns the backtrace:
```Python
Traceback (most recent call last):
File "/home/alan/anaconda/lib/python3.5/site-packages/conda/exceptions.py", line 515, in conda_exception_handler
return_value = func(*args, **kwargs)
File "/h... | 2017-01-04T16:42:50 | ||
conda/conda | 4,241 | conda__conda-4241 | [
"4235"
] | 329161ebd54d23d64ba7d156697d2b254da0c28b | diff --git a/conda/misc.py b/conda/misc.py
--- a/conda/misc.py
+++ b/conda/misc.py
@@ -224,9 +224,10 @@ def clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None):
if filter:
if not quiet:
- print('The following packages cannot be cloned out of the root environment:')
+ ... | non json output on root clone
I understand that cloning root env is probably a not very good idea... but even then with the json flag, we get this non json output
```
$ conda create -n rootclone --clone root --json`
The following packages cannot be cloned out of the root environment:
- conda-build-2.0.2-py35_0
... | 2017-01-09T18:37:31 | ||
conda/conda | 4,311 | conda__conda-4311 | [
"4299"
] | 6b683eee6e5db831327d317b2ab766548c26d9ea | diff --git a/conda/gateways/download.py b/conda/gateways/download.py
--- a/conda/gateways/download.py
+++ b/conda/gateways/download.py
@@ -95,9 +95,10 @@ def download(url, target_full_path, md5sum):
Content-Length: %(content_length)d
downloaded bytes: %(downloaded_bytes)d
... | Conda 4.3.4 seems to be broken
```
bag@bag ~ % conda --version
conda 4.3.4
bag@bag ~ % conda install -y --file https://raw.githubusercontent.com/bioconda/bioconda-utils/master/bioconda_utils/bioconda_utils-requirements.txt
CondaError: Downloaded bytes did not match Content-Length
url: https://raw.gith... | Seems like https://github.com/conda/conda/commit/24ad4709#diff-e524c3264718c66b34ea0dadbfc2559fR88 introduced the bug.
The request header sent by `requests.session` in this case has:
```bash
'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*'
```
AFAIK, the `Content-Length` header holds the raw length of the HT... | 2017-01-16T04:26:26 |
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.