repo stringclasses 32
values | instance_id stringlengths 13 37 | base_commit stringlengths 40 40 | patch stringlengths 1 1.89M | test_patch stringclasses 1
value | problem_statement stringlengths 304 69k | hints_text stringlengths 0 246k | created_at stringlengths 20 20 | version stringclasses 1
value | FAIL_TO_PASS stringclasses 1
value | PASS_TO_PASS stringclasses 1
value | environment_setup_commit stringclasses 1
value | traceback stringlengths 64 23.4k | __index_level_0__ int64 29 19k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
celery/celery | celery__celery-3392 | 5031d6f27862001d3e3bc5a2dacf1185c933f2c9 | diff --git a/celery/utils/serialization.py b/celery/utils/serialization.py
--- a/celery/utils/serialization.py
+++ b/celery/utils/serialization.py
@@ -24,7 +24,7 @@
except ImportError:
import pickle # noqa
-PY3 = sys.version_info[0] >= 3
+PY33 = sys.version_info >= (3, 3)
__all__ = [
'UnpickleableExcep... | test_retry_kwargs_can_be_empty fails on pypy3
From https://travis-ci.org/celery/celery/jobs/151613800:
```
======================================================================
ERROR: test_retry_kwargs_can_be_empty (celery.tests.tasks.test_tasks.test_task_retries)
-----------------------------------------------------... | It looks like the culprit is https://github.com/celery/celery/commit/32b52ca875509b84d786e33ce2d39f62ab7ea050. Since `raise Exception from None` is new in Python 3.3 and PyPy 3 supports Python 3.2, I think the `if PY3` clause needs to be updated to `if PY33`.
| 2016-08-14T04:03:33Z | [] | [] |
Traceback (most recent call last):
File "/home/travis/build/celery/celery/celery/tests/tasks/test_tasks.py", line 178, in test_retry_kwargs_can_be_empty
self.retry_task_mockapply.retry(args=[4, 4], kwargs=None)
File "/home/travis/build/celery/celery/celery/app/task.py", line 611, in retry
raise_with_contex... | 2,749 | |||
celery/celery | celery__celery-3616 | 0dbc83a4cf22ff6c38a4da2ef18781905af66c92 | diff --git a/celery/app/registry.py b/celery/app/registry.py
--- a/celery/app/registry.py
+++ b/celery/app/registry.py
@@ -4,7 +4,7 @@
import inspect
from importlib import import_module
from celery._state import get_current_app
-from celery.exceptions import NotRegistered
+from celery.exceptions import NotRegistered... | Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | 2016-11-22T20:38:13Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in on_chord_part_return
callback.delay([unpack(tup, decode) for tup in resl])
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in <listcomp>
callback.del... | 2,750 | ||||
celery/celery | celery__celery-3671 | 56ff9caaf39151c7a9a930fc2bf245e2def141a8 | diff --git a/examples/next-steps/proj/tasks.py b/examples/next-steps/proj/tasks.py
--- a/examples/next-steps/proj/tasks.py
+++ b/examples/next-steps/proj/tasks.py
@@ -1,5 +1,5 @@
from __future__ import absolute_import, unicode_literals
-from . import app
+from .celery import app
@app.task
| Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | 2016-12-09T12:05:55Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in on_chord_part_return
callback.delay([unpack(tup, decode) for tup in resl])
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in <listcomp>
callback.del... | 2,752 | ||||
celery/celery | celery__celery-3721 | 98222863674c7be625d9091d0301fd02a1244b07 | diff --git a/celery/beat.py b/celery/beat.py
--- a/celery/beat.py
+++ b/celery/beat.py
@@ -232,10 +232,21 @@ def adjust(self, n, drift=-0.010):
def is_due(self, entry):
return entry.is_due()
+ def _when(self, entry, next_time_to_run, mktime=time.mktime):
+ adjust = self.adjust
+
+ retur... | Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | 2016-12-23T22:27:36Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in on_chord_part_return
callback.delay([unpack(tup, decode) for tup in resl])
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in <listcomp>
callback.del... | 2,756 | ||||
celery/celery | celery__celery-3752 | c1fa9af097971256f44c3e4b7d77810166a20693 | diff --git a/celery/worker/loops.py b/celery/worker/loops.py
--- a/celery/worker/loops.py
+++ b/celery/worker/loops.py
@@ -44,10 +44,10 @@ def asynloop(obj, connection, consumer, blueprint, hub, qos,
_enable_amqheartbeats(hub.timer, connection, rate=hbrate)
consumer.on_message = on_task_received
- consum... | Celery Worker crashing after first task with TypeError: 'NoneType' object is not callable
## Checklist
- [X] I have included the output of ``celery -A proj report`` in the issue.
(if you are not able to do this, then at least specify the Celery
version affected).
```
software -> celery:4.0.0 (latent... | The error is repeating in the log because the Celery worker daemon is crashing, so systemd restarts it.
@ask, `self._quick_put` is somehow not defined. Should billiard check for a `None` value before calling, catch the exception, or should `self._quick_put` never be `None`?
When I change [billiard/pool.py#L1483](https:... | 2017-01-09T20:16:29Z | [] | [] |
Traceback (most recent call last):
File "./venv/lib/python3.4/site-packages/celery/worker/worker.py", line 203, in start
self.blueprint.start(self)
File "./venv/lib/python3.4/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "./venv/lib/python3.4/site-packages/celery/boo... | 2,760 | |||
celery/celery | celery__celery-3790 | c5793740685fa1376b2d06f3678c872ca175ed6f | diff --git a/celery/app/amqp.py b/celery/app/amqp.py
--- a/celery/app/amqp.py
+++ b/celery/app/amqp.py
@@ -331,7 +331,9 @@ def as_task_v2(self, task_id, name, args=None, kwargs=None,
now + timedelta(seconds=expires), tz=timezone,
)
eta = eta and eta.isoformat()
- expires = ... | Retrying tasks with an expiry fails with "'str' object has no attribute 'isoformat'"
## Summary
Celery fails to retry tasks with `expires` set. The problem is that celery passes a ISO8601-formatted string to `celery.app.amqp.as_task_v2()` instead of a datetime.
## Steps to reproduce
1. Create a fresh virtualenv an... | 2017-01-25T02:43:49Z | [] | [] |
Traceback (most recent call last):
File "/home/bremac/src/celery_test/venv/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/bremac/src/celery_test/venv/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__
... | 2,762 | ||||
celery/celery | celery__celery-3867 | 4d63867c8281e94c74dcdf84fe2a441eaed6671b | diff --git a/celery/app/amqp.py b/celery/app/amqp.py
--- a/celery/app/amqp.py
+++ b/celery/app/amqp.py
@@ -21,7 +21,7 @@
from celery.utils.nodenames import anon_nodename
from celery.utils.saferepr import saferepr
from celery.utils.text import indent as textindent
-from celery.utils.time import maybe_make_aware, to_u... | default_retry_delay does not work when enable_utc is False
## Checklist
- [x] I have included the output of ``celery -A proj report`` in the issue.
(if you are not able to do this, then at least specify the Celery
version affected).
```
software -> celery:4.0.2 (latentcall) kombu:4.0.2 py:3.4.0
... | Did you try configuring a timezone: http://docs.celeryproject.org/en/latest/getting-started/next-steps.html#timezone ?
@georgepsarakis Yes, configuring a timezone when enable_utc is False works, but the retry delays are not respected. This issue is newly introduced in Celery 4+
I cannot reproduce it with Celery 4.0.2 e... | 2017-02-27T13:42:34Z | [] | [] |
Traceback (most recent call last):
File "/auto/firex-ott/moe_4.0.2/lib/python3.4/site-packages/celery/app/trace.py", line 367, in trace_task
R = retval = fun(*args, **kwargs)
File "/auto/firex-ott/moe_4.0.2/lib/python3.4/site-packages/celery/app/trace.py", line 622, in __protected_call__
return self.ru... | 2,766 | |||
celery/celery | celery__celery-3903 | 144f88b4e1be21780e737d4be5a734b19f1cf511 | diff --git a/celery/backends/base.py b/celery/backends/base.py
--- a/celery/backends/base.py
+++ b/celery/backends/base.py
@@ -29,7 +29,7 @@
from celery.exceptions import (
ChordError, TimeoutError, TaskRevokedError, ImproperlyConfigured,
)
-from celery.five import items
+from celery.five import items, string
f... | UnicodeDecodeError when storing exception result in backend
## Output of ``celery -A proj report``
```
-------------- celery@kubuntu-work v4.0.2 (latentcall)
---- **** -----
--- * *** * -- Linux-3.19.0-15-generic-x86_64-with-Ubuntu-15.04-vivid 2017-02-22 09:58:51
-- * - **** ---
- ** ---------- [config]
-... | 2017-03-11T15:44:12Z | [] | [] |
Traceback (most recent call last):
File "/home/yangfei/work/code/pyvenv/venv/local/lib/python2.7/site-packages/celery/app/trace.py", line 381, in trace_task
I, R, state, retval = on_error(task_request, exc, uuid)
File "/home/yangfei/work/code/pyvenv/venv/local/lib/python2.7/site-packages/celery/app/trace.py... | 2,768 | ||||
celery/celery | celery__celery-3997 | 8c8354f77eb5f1639bd4c314131ab123c1e5ad53 | diff --git a/celery/app/defaults.py b/celery/app/defaults.py
--- a/celery/app/defaults.py
+++ b/celery/app/defaults.py
@@ -285,7 +285,7 @@ def __repr__(self):
'WARNING', old={'celery_redirect_stdouts_level'},
),
send_task_events=Option(
- False, type='bool', old={'celeryd_send_... | Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | 2017-04-25T13:21:05Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in on_chord_part_return
callback.delay([unpack(tup, decode) for tup in resl])
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in <listcomp>
callback.del... | 2,771 | ||||
celery/celery | celery__celery-423 | 523598f39fcd546359a5176ed462858d47ff8297 | diff --git a/celery/backends/base.py b/celery/backends/base.py
--- a/celery/backends/base.py
+++ b/celery/backends/base.py
@@ -1,5 +1,6 @@
"""celery.backends.base"""
import time
+import sys
from datetime import timedelta
@@ -8,8 +9,9 @@
from celery.utils import timeutils
from celery.utils.serialization import ... | Json task result serializer + Exception = Fail
When a task raises an exception, celeryd gets an exception in kombu:
```
[2011-06-28 18:34:31,540: ERROR/MainProcess] Task tasks.error[5c493298-b7e9-4535-a697-e271298b8b18] raised exception: TypeError('Exception() is not JSON serializable',)
Traceback (most recent call la... | 2011-06-29T14:53:04Z | [] | [] |
Traceback (most recent call last):
File "<virtualenv>/lib/python2.7/site-packages/celery/worker/job.py", line 109, in execute_safe
return self.execute(*args, **kwargs)
File "<virtualenv>/lib/python2.7/site-packages/celery/worker/job.py", line 127, in execute
return super(WorkerTaskTrace, self).execute()
... | 2,777 | ||||
celery/celery | celery__celery-4278 | 06c6cfefb5948286e5c634cfc5b575dafe9dc98d | diff --git a/celery/canvas.py b/celery/canvas.py
--- a/celery/canvas.py
+++ b/celery/canvas.py
@@ -1174,8 +1174,9 @@ class chord(Signature):
@classmethod
def from_dict(cls, d, app=None):
- args, d['kwargs'] = cls._unpack_args(**d['kwargs'])
- return _upgrade(d, cls(*args, app=app, **d))
+ ... | Chaining chords causes TypeError: 'NoneType' object is not iterable,
```chord_unlock``` task fails after retry with ```TypeError: 'NoneType' object is not iterable``` Exception.
Am I doing something wrong?
## Checklist
- [x] I have included the output of ``celery -A proj report`` in the issue.
(if you ... | I've made some investigation and found that it incorrectly reconstructs `celery.chord` task in the `body`.
Initial record
{
"task": "celery.chord",
"args": [],
"kwargs": {
"kwargs": {
"kwargs": {}
},
"he... | 2017-09-22T15:02:38Z | [] | [] |
Traceback (most recent call last):
File "/home/rbn/.virtualenvs/celery-4.1/local/lib/python2.7/site-packages/celery-4.1.0-py2.7.egg/celery/app/trace.py", line 374, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/rbn/.virtualenvs/celery-4.1/local/lib/python2.7/site-packages/celery-4.1.0-py2.7.egg... | 2,781 | |||
celery/celery | celery__celery-4357 | d08b1057234bb7774623108fa343af7a1c658e7a | diff --git a/celery/worker/consumer.py b/celery/worker/consumer.py
--- a/celery/worker/consumer.py
+++ b/celery/worker/consumer.py
@@ -450,10 +450,10 @@ def create_task_handler(self):
def on_task_received(body, message):
headers = message.headers
try:
- type_, is_proto2... | Task loss on retry when using a hybrid/staged Celery 3->4 deployment
If you have a Celery 3.1.25 deployment involving many workers, and you want to upgrade to Celery 4, you may wish to do "canary" testing of a limited subset of workers to validate that the upgrade won't introduce any problems, prior to upgrading your e... | 2017-11-01T04:46:21Z | [] | [] |
Traceback (most recent call last):
File "/Users/rkm/zapier/celery/celery3-venv/lib/python2.7/site-packages/celery/worker/__init__.py", line 206, in start
self.blueprint.start(self)
File "/Users/rkm/zapier/celery/celery3-venv/lib/python2.7/site-packages/celery/bootsteps.py", line 123, in start
step.star... | 2,784 | ||||
celery/celery | celery__celery-4399 | e14ecd9a3a7f77bdf53b9e763a1acd47d566223c | diff --git a/celery/contrib/sphinx.py b/celery/contrib/sphinx.py
--- a/celery/contrib/sphinx.py
+++ b/celery/contrib/sphinx.py
@@ -29,11 +29,13 @@
Use ``.. autotask::`` to manually document a task.
"""
from __future__ import absolute_import, unicode_literals
-from inspect import formatargspec
from sphinx.domains.py... | Build task documentation with sphinx fails (error while formatting arguments)
## Checklist
this has been tested with both version 4.0.2 and master (8c8354f)
## Steps to reproduce
```bash
$ git clone https://github.com/inveniosoftware/invenio-indexer.git
$ cd invenio-indexer/
$ pip install -e .[all]
$ sphin... | It looks like the problem is [format_args()](https://github.com/celery/celery/blob/3.1/celery/contrib/sphinx.py#L54) with python 2.
The [getfullargspec(()](https://github.com/celery/vine/blob/master/vine/five.py#L349) looks not really equivalent to the python 3 version.
This is an example of [task (with at least an a... | 2017-11-20T13:30:09Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in on_chord_part_return
callback.delay([unpack(tup, decode) for tup in resl])
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in <listcomp>
callback.del... | 2,786 | |||
celery/celery | celery__celery-4617 | 80ffa61fd83fed228a127086a2c13b4bc61fd1d8 | diff --git a/celery/canvas.py b/celery/canvas.py
--- a/celery/canvas.py
+++ b/celery/canvas.py
@@ -24,7 +24,7 @@
from celery._state import current_app
from celery.five import python_2_unicode_compatible
from celery.local import try_import
-from celery.result import GroupResult
+from celery.result import GroupResult,... | Eager Application Synchronous Subtask Guard Blocks Canvas
## Checklist
- [x] I have included the output of ``celery -A proj report`` in the issue.
(if you are not able to do this, then at least specify the Celery
version affected).
- [x] I have verified that the issue exists against the `master` bran... | 2018-03-22T17:14:08Z | [] | [] |
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/npilon/Documents/celery/celery/result.py", line 949, in get
raise self.result
RuntimeError: Never call result.get() within a task!
| 2,801 | ||||
celery/celery | celery__celery-4779 | 38673412f3ea2781cb96166255fedfeddecb66d8 | diff --git a/celery/app/base.py b/celery/app/base.py
--- a/celery/app/base.py
+++ b/celery/app/base.py
@@ -170,7 +170,7 @@ class Celery(object):
fixups (List[str]): List of fix-up plug-ins (e.g., see
:mod:`celery.fixups.django`).
config_source (Union[str, type]): Take configuration from a... | Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | @ask I think this is quite a big problem (with a trivial fix).
It requires attention though as it is bringging a new behaviour (but previous behaviour is not well documented, and, in my opinion, the new behaviour was the one expected)
This change in behaviour is what kept my team from upgrading to celery 4. Indeed, ... | 2018-05-29T13:12:44Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in on_chord_part_return
callback.delay([unpack(tup, decode) for tup in resl])
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in <listcomp>
callback.del... | 2,809 | |||
celery/celery | celery__celery-4870 | aa12474a5fcfb4ff3a155ccb8ac6d3f1b019a301 | diff --git a/celery/backends/couchbase.py b/celery/backends/couchbase.py
--- a/celery/backends/couchbase.py
+++ b/celery/backends/couchbase.py
@@ -19,6 +19,7 @@
from couchbase import Couchbase
from couchbase.connection import Connection
from couchbase.exceptions import NotFoundError
+ from couchbase i... | Unable to save pickled objects with couchbase as result backend
Hi it seems like when I attempt to process groups of chords, the couchbase result backend is consistently failing to unlock the chord when reading from the db:
`celery.chord_unlock[e3139ae5-a67d-4f0c-8c54-73b1e19433d2] retry: Retry in 1s: ValueFormatErr... | Some more info after digging into the library a little bit: The exception message that occurs (for some reason it's not written out to console) looks like this:
`<Couldn't decode as UTF-8, Results=1, inner_cause='utf8' codec can't decode byte 0x80 in position 1: invalid start byte, C Source=(src/convert.c,65)>`
Any... | 2018-06-30T21:43:51Z | [] | [] |
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/celery/app/trace.py", line 374, in trace_task
R = retval = fun(*args, **kwargs)
File "/Library/Python/2.7/site-packages/celery/app/trace.py", line 629, in __protected_call__
return self.run(*args, **kwargs)
File "/Library/Pyt... | 2,812 | |||
celery/celery | celery__celery-4908 | 97fd3acac6515a9b783c73d9ab5575644a79449c | diff --git a/celery/worker/request.py b/celery/worker/request.py
--- a/celery/worker/request.py
+++ b/celery/worker/request.py
@@ -116,8 +116,9 @@ def __init__(self, message, on_ack=noop,
self.parent_id = headers.get('parent_id')
if 'shadow' in headers:
self.name = headers['shadow'] or se... | Request.time_limits is None
I am getting an error in the stack trace below. It looks like this line is referencing the wrong field name: https://github.com/celery/celery/blob/master/celery/worker/request.py#L520. I don't think time_limits exists for this Request. The only place in celery codebase that I see using `crea... | This is indeed a bug and your fix should be correct.
I'm trying to figure out how to write a test for this case so it won't regress.
While the fix may be correct, the real issue is that someone is passing a `timelimt` header which is equal to `None` somewhere.
A fix should be made in the `Request` class constructor. | 2018-07-17T10:41:49Z | [] | [] |
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/celery/worker/worker.py", line 205, in start
self.blueprint.start(self)
File "/usr/lib/python2.7/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "/usr/lib/python2.7/site-packages/celery/bootsteps... | 2,815 | |||
celery/celery | celery__celery-5297 | c1d0bfea9ad98477cbc1def99157fe5109555500 | diff --git a/celery/canvas.py b/celery/canvas.py
--- a/celery/canvas.py
+++ b/celery/canvas.py
@@ -1045,7 +1045,13 @@ def link(self, sig):
return self.tasks[0].link(sig)
def link_error(self, sig):
- sig = sig.clone().set(immutable=True)
+ try:
+ sig = sig.clone().set(immutable=T... | Complex canvas might raise AttributeError: 'dict' object has no attribute 'clone'
WARNING: I'm still trying to collect all the necessary details and, if possible, provide a reproducible example. For the time, the error is happening constantly in one server, but doesn't happen in another one with the same source code.... | This went away after updating the redis server. The server showing the error was using redis 3. After upgrading to redis 4 the issue went away.
I could reproduce the error in my box using redis 3.
@thedrow Should we reopen this, or let just this issue as a historical note. I don't really know how many people wit... | 2019-01-21T20:32:04Z | [] | [] |
Traceback (most recent call last):
File "eggs/celery-4.2.1-py2.7.egg/celery/app/trace.py", line 439, in trace_task
parent_id=uuid, root_id=root_id,
File "eggs/celery-4.2.1-py2.7.egg/celery/canvas.py", line 1232, in apply_async
return self.run(tasks, body, args, task_id=task_id, **options)
File "eggs... | 2,826 | |||
celery/celery | celery__celery-5345 | 76d10453ab9267c45b12d7c60b5ee0e4113b4369 | diff --git a/celery/backends/redis.py b/celery/backends/redis.py
--- a/celery/backends/redis.py
+++ b/celery/backends/redis.py
@@ -2,6 +2,8 @@
"""Redis result store backend."""
from __future__ import absolute_import, unicode_literals
+import time
+
from functools import partial
from ssl import CERT_NONE, CERT_OPT... | ResultConsumer greenlet race condition
When I tried to get result from task inside greenlet, I've got an exception:
```
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/... | Bypass:
```python
# Manually initialize consumer
celery_app.backend.result_consumer.start("")
def fetch(uuid):
res = AsyncResult(uuid, app=celery_app).get()
print res
```
can you send a patch with test to fix the issue? | 2019-02-17T10:47:59Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/celery/backends/async.py", line 83, in run
self.result_consumer.drain_events(timeout=1)
Fil... | 2,828 | |||
celery/celery | celery__celery-5423 | 52d63439fd9de6ee613de844306345c0584dff62 | diff --git a/celery/app/task.py b/celery/app/task.py
--- a/celery/app/task.py
+++ b/celery/app/task.py
@@ -2,6 +2,7 @@
"""Task implementation: request context and the task base class."""
from __future__ import absolute_import, unicode_literals
+import signal
import sys
from billiard.einfo import ExceptionInfo
@... | SIGTERM does not do a warm shutdown.
According to the documentation here: http://celery.readthedocs.org/en/latest/userguide/workers.html#process-signals
I should be able to send a SIGTERM to my running worker process and have it finish the task it is currently working on before it shuts down. However when I call sigt... | Closing this, as we don't have the resources to complete this task.
May be fixed in master, let's see if comes back after 4.0 release.
@ask any suggestions on where to start with trying to fix this? I'm happy to try to dig into it if you can provide me a starting point.
I'm not sure, are you running on Heroku perha... | 2019-04-02T05:26:54Z | [] | [] |
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/billiard/pool.py", line 1171, in mark_as_worker_lost
human_status(exitcode)),
WorkerLostError: Worker exited prematurely: signal 15 (SIGTERM).
| 2,835 | |||
celery/celery | celery__celery-5499 | a7f92282d6fa64b03df8d87517f37e3fe3023d93 | diff --git a/celery/concurrency/asynpool.py b/celery/concurrency/asynpool.py
--- a/celery/concurrency/asynpool.py
+++ b/celery/concurrency/asynpool.py
@@ -482,8 +482,16 @@ def register_with_event_loop(self, hub):
[self._track_child_process(w, hub) for w in self._pool]
# Handle_result_event is called w... | Connection to broker lost. Trying to re-establish the connection: OSError: [Errno 9] Bad file descriptor
## Checklist
- [ ] I have included the output of ``celery -A proj report`` in the issue.
(if you are not able to do this, then at least specify the Celery
version affected).
- [x] I have verified ... | 2019-05-03T04:02:52Z | [] | [] |
Traceback (most recent call last):
File "/home/user/.envs/user/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 320, in start
blueprint.start(self)
File "/home/user/.envs/user/lib/python3.6/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "/home/use... | 2,838 | ||||
celery/celery | celery__celery-5587 | b3904189bc1290bce1f52318d5cd934dfe74ccf4 | diff --git a/celery/result.py b/celery/result.py
--- a/celery/result.py
+++ b/celery/result.py
@@ -205,7 +205,7 @@ def get(self, timeout=None, propagate=True, interval=0.5,
assert_will_not_block()
_on_interval = promise()
if follow_parents and propagate and self.parent:
- on_in... | Group of Chains Exception/Error Propagation
## Checklist
- I'm running Celery 4.0.2
## Steps to reproduce
tasks.py
```
@shared_task
def add(x,y):
return x+y
@shared_task
def raising_exception():
raise RuntimeError("BLAH")
```
test.py
```
from celery import chord, group
from my_app.tasks impo... | I would just like to throw my hat into the ring here because I'm encountering the same issue. So long as there are no errors, everything works as expected, but with errors, indefinite hang.
I'm experiencing this on Celery 4.2.1 w/ Redis as a broker.
Does anyone have a workaround for this? Without this, there is no... | 2019-06-13T12:33:27Z | [] | [] |
Traceback (most recent call last):
File "test.py", line 15, in <module>
raise ex
celery.backends.base.RuntimeError: BLAH
| 2,842 | |||
celery/celery | celery__celery-5638 | 8e016e667ae16958043b096e5cb89ac0f7dd7989 | diff --git a/celery/backends/asynchronous.py b/celery/backends/asynchronous.py
--- a/celery/backends/asynchronous.py
+++ b/celery/backends/asynchronous.py
@@ -134,7 +134,9 @@ def iter_native(self, result, no_ack=True, **kwargs):
# into these buckets.
bucket = deque()
for node in results:
- ... | Nested group(chain(group)) fails
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have read the relevant section in the
... | This can be reproduced on master and I used RabbitMQ as broker.
Because nested `group(signature, chain(group))` get results like `GroupResult(AsyncResult, GroupResult)`, but the GroupResult do not have attribute `_cache`.
The problem is, you can not simplely change the statetment to `if hasattr(node, '_cache') and no... | 2019-07-09T01:54:28Z | [] | [] |
Traceback (most recent call last):
File "/my_app.py", line 111, in add_to_queue
result = async_result.get()
File "/root/.cache/pypoetry/virtualenvs/my_app/lib/python3.7/site-packages/celery/result.py", line 697, in get
on_interval=on_interval,
File "/root/.cache/pypoetry/virtualenvs/my_app/lib/pytho... | 2,845 | |||
celery/celery | celery__celery-5686 | 9a6c2923e859b6993227605610255bd632c1ae68 | diff --git a/celery/__init__.py b/celery/__init__.py
--- a/celery/__init__.py
+++ b/celery/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Distributed Task Queue."""
# :copyright: (c) 2016-20206 Asif Saif Uddin, celery core and individual
# contributors, All rights reserved.
@@ -8,8 +7,6 @@
... | Is MongoDB suported as result backend?
The [documentation](https://docs.celeryproject.org/en/stable/userguide/configuration.html#task-result-backend-settings) about result backend settings does not shows MongoDB as a suported option.
The options available are:
* rpc
* database (SQLAlchemy)
* redis
* cache
* cas... |
plz proceed with the PR
| 2019-08-21T06:11:18Z | [] | [] |
Traceback (most recent call last):
File "/var/www/misc/ve-2006011156/bin/celery", line 8, in <module>
sys.exit(main())
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/__main__.py", line 16, in main
_main()
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/... | 2,852 | |||
celery/celery | celery__celery-5718 | f154d31308893980941874238da857d68708e11f | diff --git a/celery/__main__.py b/celery/__main__.py
--- a/celery/__main__.py
+++ b/celery/__main__.py
@@ -2,17 +2,17 @@
import sys
-from . import maybe_patch_concurrency
+# from . import maybe_patch_concurrency
__all__ = ('main',)
def main():
"""Entrypoint to the ``celery`` umbrella command."""
- ... | Is MongoDB suported as result backend?
The [documentation](https://docs.celeryproject.org/en/stable/userguide/configuration.html#task-result-backend-settings) about result backend settings does not shows MongoDB as a suported option.
The options available are:
* rpc
* database (SQLAlchemy)
* redis
* cache
* cas... |
plz proceed with the PR
| 2019-09-08T14:00:17Z | [] | [] |
Traceback (most recent call last):
File "/var/www/misc/ve-2006011156/bin/celery", line 8, in <module>
sys.exit(main())
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/__main__.py", line 16, in main
_main()
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/... | 2,854 | |||
celery/celery | celery__celery-5737 | 08bec60513c6414bd097b1ad5e8101e26dd6224b | diff --git a/celery/result.py b/celery/result.py
--- a/celery/result.py
+++ b/celery/result.py
@@ -769,6 +769,7 @@ def join(self, timeout=None, propagate=True, interval=0.5,
value = result.get(
timeout=remaining, propagate=propagate,
interval=interval, no_ack=no_ack, on_in... | disable_sync_subtasks setting not being respected while using ResultSet
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I ... | 2019-09-17T14:16:39Z | [] | [] |
Traceback (most recent call last):
File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py", line 648, in __protec... | 2,856 | ||||
celery/celery | celery__celery-5954 | 38936c6072997d74d0cb9b515500fef0708f94a4 | diff --git a/celery/__init__.py b/celery/__init__.py
--- a/celery/__init__.py
+++ b/celery/__init__.py
@@ -1,4 +1,6 @@
"""Distributed Task Queue."""
+# :copyright: (c) 2016-20206 Asif Saif Uddin, celery core and individual
+# contributors, All rights reserved.
# :copyright: (c) 2015-2016 Ask Solem. A... | Missing dependency on future in 4.4.4
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verified that the issue exists... |
plz proceed with the PR
if it is django-celery package only then that doesn't support celery 4.x
| 2020-02-04T11:35:20Z | [] | [] |
Traceback (most recent call last):
File "/var/www/misc/ve-2006011156/bin/celery", line 8, in <module>
sys.exit(main())
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/__main__.py", line 16, in main
_main()
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/... | 2,872 | |||
celery/celery | celery__celery-6059 | dd28a0fdf620f6ba177264cdb786068cfa5db4f3 | diff --git a/celery/canvas.py b/celery/canvas.py
--- a/celery/canvas.py
+++ b/celery/canvas.py
@@ -408,8 +408,12 @@ def __or__(self, other):
other = maybe_unroll_group(other)
if isinstance(self, _chain):
# chain | group() -> chain
+ tasks = self.unchain_tasks()
... | maximum recursion depth exceeded for a canvas in Celery 4.4.0 (cliffs)
<!--
-->
# Checklist
<!--
-->
- [x] I have verified that the issue exists against the `master` branch of Celery.
- [ ] This has already been asked to the [discussion group](https://groups.google.com/forum/#!forum/celery-users) first. (No opt... | I just ran the test case and indeed I see the same error.
It seems like the error occurs when you apply the task. If you don't everything proceeds correctly.
The problem is in line 881.
https://github.com/celery/celery/blob/01dd66ceb5b9167074c2f291b165055e7377641b/celery/canvas.py#L876-L882
reduce is called on a pa... | 2020-04-26T09:40:58Z | [] | [] |
Traceback (most recent call last):
File "test.py", line 30, in <module>
chain([chain(s2)]).apply_async() # issue
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 642, in apply_async
dict(self.options, **options) if options else self.options))
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 66... | 2,877 | |||
celery/celery | celery__celery-6138 | 52aef4bf7041ef4b8e42a95e17d87b0a828f97bf | diff --git a/celery/app/base.py b/celery/app/base.py
--- a/celery/app/base.py
+++ b/celery/app/base.py
@@ -23,7 +23,7 @@
_register_app, _set_current_app, _task_stack,
connect_on_app_finalize, get_current_app,
get_current_worker_task, se... | Retry args change BUG
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verified that the issue exists against the `mas... | I tried to fix that by myself but code part is pretty weird...a function get called and never return jumping in another code part.
task.py
```
if is_eager:
# if task was executed eagerly using apply(),
# then the retry must also be executed eagerly.
S.apply().get() # T... | 2020-06-01T19:48:30Z | [] | [] |
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.7/site-packages/celery/app/trace.py", line 650, in __protected_call__
return self.run(*args, **k... | 2,880 | |||
celery/celery | celery__celery-6264 | 6f514ce7b2f0ce586e183e5dfa59032da03c97dc | diff --git a/celery/__init__.py b/celery/__init__.py
--- a/celery/__init__.py
+++ b/celery/__init__.py
@@ -113,15 +113,16 @@ def _patch_eventlet():
def _patch_gevent():
- import gevent
- from gevent import monkey, signal as gevent_signal
+ import gevent.monkey
+ import gevent.signal
- monkey.patch... | Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | @ask I think this is quite a big problem (with a trivial fix).
It requires attention though as it is bringging a new behaviour (but previous behaviour is not well documented, and, in my opinion, the new behaviour was the one expected)
This change in behaviour is what kept my team from upgrading to celery 4. Indeed, ... | 2020-07-30T11:18:44Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in on_chord_part_return
callback.delay([unpack(tup, decode) for tup in resl])
File "/usr/local/lib/python3.4/dist-packages/celery/backends/redis.py", line 290, in <listcomp>
callback.del... | 2,888 | |||
celery/celery | celery__celery-6298 | ea37db1410c83271e06d78a564983cba3732a1b1 | diff --git a/celery/backends/database/session.py b/celery/backends/database/session.py
--- a/celery/backends/database/session.py
+++ b/celery/backends/database/session.py
@@ -1,14 +1,21 @@
"""SQLAlchemy session."""
+import time
+
from kombu.utils.compat import register_after_fork
from sqlalchemy import create_engine... | Database backend race condition during table creation
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verified that t... | you are welcome to contribute a fix for this | 2020-08-12T13:26:03Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/redacted.py", line 168, in _redacted
result = async_result.get()
File "/usr/local/lib/python3.7/site-packages/celery/result.py", line 226, in get
self.maybe_throw(callback=callback)
File "/usr/local/lib/python3.7/site-pa... | 2,891 | |||
celery/celery | celery__celery-6713 | 81df81acf8605ba3802810c7901be7d905c5200b | diff --git a/celery/app/amqp.py b/celery/app/amqp.py
--- a/celery/app/amqp.py
+++ b/celery/app/amqp.py
@@ -284,7 +284,7 @@ def as_task_v2(self, task_id, name, args=None, kwargs=None,
time_limit=None, soft_time_limit=None,
create_sent_event=False, root_id=None, parent_id=None,
... | `task.apply_async(ignore_result=True)` does not ignore result
## Checklist
- [x] I have included the output of `celery -A proj report` in the issue.
- [x] I have included all related issues and possible duplicate issues in this issue.
- [x] I have included the contents of `pip freeze` in the issue.
- [ ] I have v... | Thanks for the detailed bug report.
I'll look into it.
what about this promble, i prepare working on it
I haven't had the time to deal with this yet.
If you have a solution, PRs are welcome.
@thedrow I've got the same problem (again with chords) and moreover can't even `forget()` the result. Please let me know if y... | 2021-04-06T13:47:06Z | [] | [] |
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/src/bug/main.py", line 39, in <module>
main()
File "/src/bug/main.py", line 3... | 2,926 | |||
celery/celery | celery__celery-6741 | 25f6c139e11edd32f5c36542c737ee7c7de2e9cc | diff --git a/celery/bin/amqp.py b/celery/bin/amqp.py
--- a/celery/bin/amqp.py
+++ b/celery/bin/amqp.py
@@ -25,6 +25,10 @@ def __init__(self, cli_context):
self.connection = self.cli_context.app.connection()
self.channel = None
self.reconnect()
+
+ @property
+ def app(self):
+ ... | celery amqp repl broken in celery 5.0.3+
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verified that the issue exis... | Hey @parthjoshi2007 :wave:,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our [Open Collective](https://opencollective.com/celery) and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consi... | 2021-04-24T08:59:32Z | [] | [] |
Traceback (most recent call last):
File "/home/privatecircle/.virtualenvs/mca_document_manager/bin/celery", line 8, in <module>
sys.exit(main())
File "/home/privatecircle/.virtualenvs/mca_document_manager/lib/python3.6/site-packages/celery/__main__.py", line 15, in main
sys.exit(_main())
File "/home... | 2,928 | |||
celery/celery | celery__celery-6774 | 97457bc66116889c796d37965075474424bff3f7 | diff --git a/celery/events/snapshot.py b/celery/events/snapshot.py
--- a/celery/events/snapshot.py
+++ b/celery/events/snapshot.py
@@ -84,7 +84,8 @@ def __exit__(self, *exc_info):
def evcam(camera, freq=1.0, maxrate=None, loglevel=0,
- logfile=None, pidfile=None, timer=None, app=None):
+ logfile=... | Events command always fails when camera is specified
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verified that th... | Hey @alexpearce :wave:,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our [Open Collective](https://opencollective.com/celery) and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider ... | 2021-05-19T13:46:01Z | [] | [] |
Traceback (most recent call last):
File "/Users/user/Desktop/tmp/venv/bin/celery", line 8, in <module>
sys.exit(main())
File "/Users/user/Desktop/tmp/venv/lib/python3.9/site-packages/celery/__main__.py", line 15, in main
sys.exit(_main())
File "/Users/user/Desktop/tmp/venv/lib/python3.9/site-package... | 2,936 | |||
celery/celery | celery__celery-6899 | 9e435228cb106588f408ae71b9d703ff81a80531 | diff --git a/celery/backends/base.py b/celery/backends/base.py
--- a/celery/backends/base.py
+++ b/celery/backends/base.py
@@ -185,29 +185,35 @@ def mark_as_failure(self, task_id, exc,
except (AttributeError, TypeError):
chain_data = tuple()
for chain_elem in chain_data:
- ... | Error handler on a task chain not called (Celery 5.1.x with amqp broker and rpc backend)
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].... | Hey @ppiatko :wave:,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our [Open Collective](https://opencollective.com/celery) and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider spo... | 2021-08-05T23:44:55Z | [] | [] |
Traceback (most recent call last):
File "/****/share/virtualenvs/celery5-reply-to-reL48Jin/lib/python3.8/site-packages/billiard/pool.py", line 1796, in safe_apply_callback
fun(*args, **kwargs)
File "/****/share/virtualenvs/celery5-reply-to-reL48Jin/lib/python3.8/site-packages/celery/worker/request.py", line... | 2,948 | |||
celery/celery | celery__celery-6917 | ad994719bafe6747af6cf8251efb0925284a9260 | diff --git a/celery/concurrency/eventlet.py b/celery/concurrency/eventlet.py
--- a/celery/concurrency/eventlet.py
+++ b/celery/concurrency/eventlet.py
@@ -2,6 +2,7 @@
import sys
from time import monotonic
+from greenlet import GreenletExit
from kombu.asynchronous import timer as _timer
from celery import signal... | I can‘t stop a task by its task_id
[2018-12-02 23:53:58,955: INFO/MainProcess] Received task: tasks.add[bb1fe102-c1f9-4361-9370-1129900c0d52]
[2018-12-02 23:54:02,479: INFO/MainProcess] Terminating bb1fe102-c1f9-4361-9370-1129900c0d52 (Signals.SIGTERM)
[2018-12-02 23:54:02,490: ERROR/MainProcess] pidbox command error... | Even though I use different concurrency (prefork, using Redis as broker), I've seen the same problem - sometimes worker can't kill some tasks...
I used the `signal='SIGKILL'` param and got `Task handler raised error: Terminated(9,)`.
Does that mean the task termination succeed?
```python
celery_app.control.revo... | 2021-08-17T19:39:10Z | [] | [] |
Traceback (most recent call last):
File "d:\envs\aidcs\lib\site-packages\kombu\pidbox.py", line 101, in dispatch
reply = handle(method, arguments)
File "d:\envs\aidcs\lib\site-packages\kombu\pidbox.py", line 122, in handle_cast
return self.handle(method, arguments)
File "d:\envs\aidcs\lib\site-packa... | 2,949 | |||
celery/celery | celery__celery-7544 | b0d6a3bc33c14b82451ffd6ebef2f9b403156ec4 | diff --git a/celery/bin/worker.py b/celery/bin/worker.py
--- a/celery/bin/worker.py
+++ b/celery/bin/worker.py
@@ -351,7 +351,7 @@ def worker(ctx, hostname=None, pool_cls=None, app=None, uid=None, gid=None,
quiet=ctx.obj.quiet,
**kwargs)
worker.start()
- return worker.exitcode
... | Celery worker dies, but has an exit code of 0
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [ ] I have verified that the issue... | Hey @palfrey :wave:,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our [Open Collective](https://opencollective.com/celery) and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider spo... | 2022-06-01T10:48:40Z | [] | [] |
Traceback (most recent call last):
File "/Users/tomparker-shemilt/.virtualenvs/case-cards/lib/python3.9/site-packages/celery/worker/worker.py", line 203, in start
self.blueprint.start(self)
File "/Users/tomparker-shemilt/.virtualenvs/case-cards/lib/python3.9/site-packages/celery/bootsteps.py", line 116, in ... | 2,960 | |||
celery/celery | celery__celery-7555 | 0a783edd229783d834caa2a9dd8c79647a391cbd | diff --git a/celery/app/task.py b/celery/app/task.py
--- a/celery/app/task.py
+++ b/celery/app/task.py
@@ -96,6 +96,18 @@ class Context:
def __init__(self, *args, **kwargs):
self.update(*args, **kwargs)
+ if self.headers is None:
+ self.headers = self._get_custom_headers(*args, **kwarg... | Custom header lost after using autoretry
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
bug reports which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] I have verified that the issue exis... | Hey @Leem0sh :wave:,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our [Open Collective](https://opencollective.com/celery) and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider spo... | 2022-06-09T05:33:48Z | [] | [] |
Traceback (most recent call last):
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\trace.py", line 451, in trace_task
R = retval = fun(*args, **kwargs)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\trace.py", line 734, in __protected_call__
retu... | 2,962 | |||
celery/celery | celery__celery-7951 | dd811b37717635b5f7151a7adf9f5bf12e1bc0c6 | diff --git a/celery/app/defaults.py b/celery/app/defaults.py
--- a/celery/app/defaults.py
+++ b/celery/app/defaults.py
@@ -89,6 +89,7 @@ def __repr__(self):
connection_retry=Option(True, type='bool'),
connection_retry_on_startup=Option(None, type='bool'),
connection_max_retries=Option(100, ty... | Regard backend redis's switching to replica as recoverable error
<!--
Please fill this template entirely and do not erase parts of it.
We reserve the right to close without a response
enhancement requests which are incomplete.
-->
# Checklist
<!--
To check an item on the list replace [ ] with [x].
-->
- [x] ... | Hey @nkns165 :wave:,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our [Open Collective](https://opencollective.com/celery) and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider spo... | 2022-12-09T16:00:52Z | [] | [] |
Traceback (most recent call last):
File "/var/www/venv/lib/python3.7/site-packages/celery/worker/worker.py", line 203, in start
self.blueprint.start(self)
File "/var/www/venv/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
step.start(parent)
File "/var/www/venv/lib/python3.7/sit... | 2,971 | |||
conan-io/conan | conan-io__conan-10975 | 342ca05ebc5c7887069d2c8dbbc48766ddddce42 | diff --git a/conans/cli/commands/create.py b/conans/cli/commands/create.py
--- a/conans/cli/commands/create.py
+++ b/conans/cli/commands/create.py
@@ -1,3 +1,4 @@
+import argparse
import os
import shutil
@@ -36,6 +37,10 @@ def create(conan_api, parser, *args):
path = _get_conanfile_path(args.path, cwd, py=True... | [bug] Conan lockfile fails with conan-new example
Related to https://github.com/conan-io/conan/issues/10916 (but this is failing only if the `test_package/` folder is there)
### Steps to reproduce
```
$ conan new cmake_lib -d name=hello -d version=0.1
$ conan lock create . --profile:host default --profile:build... | 2022-04-05T13:35:52Z | [] | [] |
Traceback (most recent call last):
File "/Users/franchuti/develop/conan/conans/cli/cli.py", line 163, in run
command.run(self._conan_api, self._commands[command_argument].parser, args[0][1:])
File "/Users/franchuti/develop/conan/conans/cli/command.py", line 157, in run
info = self._method(conan_api, pa... | 3,006 | ||||
conan-io/conan | conan-io__conan-11223 | 229a7c9bfea8d454770e7253bd72b1804bb43b46 | diff --git a/conans/util/windows.py b/conans/util/windows.py
--- a/conans/util/windows.py
+++ b/conans/util/windows.py
@@ -89,7 +89,7 @@ def path_shortener(path, short_paths):
domainname = "%s\%s" % (userdomain, username) if userdomain else username
cmd = r'cacls %s /E /G "%s":F' % (short_home, domain... | [bug] crash on Windows when trying to obtain USERNAME from environment
<!--
Please don't forget to update the issue title.
Include all applicable information to help us reproduce your problem.
To help us debug your issue please explain:
-->
### Environment Details (include every applicable attribute)
... | 2022-05-11T08:32:19Z | [] | [] |
Traceback (most recent call last):
File "C:\Users\********\AppData\Roaming\Python\Python310\site-packages\conans\client\command.py", line 2238, in run
method(args[0][1:])
File "C:\Users\********\AppData\Roaming\Python\Python310\site-packages\conans\client\command.py", line 382, in create
info = self._c... | 3,011 | ||||
conan-io/conan | conan-io__conan-12220 | 972add0c744d9317a530edbe700586fd356c8245 | diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py
--- a/conan/api/subapi/install.py
+++ b/conan/api/subapi/install.py
@@ -108,6 +108,8 @@ def full_deploy(conanfile, output_folder):
conanfile.output.info(f"Conan built-in full deployer to {output_folder}")
for dep in conanfile.dependencie... | [bug][2.0] full_deploy of Skip'd requirements
- [X] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md).
When deploying an application (gnuradio) to a target folder, transitive dependencies not required at runtime break my installs due to the dep.package_folder=... | From inspection, here's my zlib requirement for example:
`zlib/1.2.12, Traits: build=False, headers=False, libs=False, run=False, visible=True`
which matches the funcitonality in requires.py
```
@property
def skip(self):
return not (self.headers or self.libs or self.run or self.build)
```
I'... | 2022-09-29T19:26:29Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/conan/cli/cli.py", line 170, in run
command.run(self._conan_api, self._commands[command_argument].parser, args[0][1:])
File "/usr/local/lib/python3.8/dist-packages/conan/cli/command.py", line 176, in run
info = self._method... | 3,031 | |||
conan-io/conan | conan-io__conan-13326 | 00700331f59e1e01b53315fec786e7f78d7bced2 | diff --git a/conan/tools/build/cppstd.py b/conan/tools/build/cppstd.py
--- a/conan/tools/build/cppstd.py
+++ b/conan/tools/build/cppstd.py
@@ -112,7 +112,9 @@ def supported_cppstd(conanfile, compiler=None, compiler_version=None):
"gcc": _gcc_supported_cppstd,
"msvc": _msvc_supported_cppstd,
... | [bug] qcc cannot calculate dep graph because it fails to produce a list of compatible cppstd per compiler verison
### Environment details
* Operating System+version: Ubuntu 20.04
* Compiler+version: qcc 8.3.0
* Conan version: 2.0.1
* Python version: 3.8.10
### Steps to reproduce
### command
conan build -... | I have a fix for this and would like to help | 2023-03-04T18:14:02Z | [] | [] |
Traceback (most recent call last):
File "/home/tbitz/.local/lib/python3.8/site-packages/conan/cli/cli.py", line 268, in main
cli.run(args)
File "/home/tbitz/.local/lib/python3.8/site-packages/conan/cli/cli.py", line 167, in run
command.run(self._conan_api, self._commands[command_argument].parser, args[... | 3,049 | |||
conan-io/conan | conan-io__conan-225 | 90bca2d82b07c9764814c0f3dc5fb23ae77e94d1 | diff --git a/conans/client/loader.py b/conans/client/loader.py
--- a/conans/client/loader.py
+++ b/conans/client/loader.py
@@ -131,7 +131,7 @@ class ConanFileTextLoader(object):
def __init__(self, input_text):
# Prefer composition over inheritance, the __getattr__ was breaking things
self._config... | Comments are parsed in [imports] section of conanfile.txt
I have the following in my `conanfile.txt` (with the comments as they are in the [docs](http://docs.conan.io/en/latest/manage_deps/conanfile_txt.html#imports)):
```
[imports]
bin, *.dll -> ./build/bin # Copies all dll files from the package "bin" folder to my p... | Yes, this is a bug, please avoid the comments till we fix it, shouldn't be difficult (maybe you want to try? :) :)
Thanks for reporting
| 2016-04-03T20:18:17Z | [] | [] |
Traceback (most recent call last):
File "<string>", line 10, in <module>
File "<string>", line 6, in run
File "C:\Users\lasot\workspace\dev-tools\installer\pyinstaller\conan\build\conan\out00-PYZ.pyz\conans.client.command", line 615, in main
File "C:\Users\lasot\workspace\dev-tools\installer\pyinstaller\conan\... | 3,091 | |||
conan-io/conan | conan-io__conan-226 | 90bca2d82b07c9764814c0f3dc5fb23ae77e94d1 | diff --git a/conans/client/proxy.py b/conans/client/proxy.py
--- a/conans/client/proxy.py
+++ b/conans/client/proxy.py
@@ -269,6 +269,8 @@ def _retrieve_remote_package(self, package_reference, output, remote=None):
self._remote_manager.get_package(package_reference, remote)
output.success('Pac... | Uncontrolled error in connection error
Conan shows traces if a connection error happen during the version check:
`conan install
curl/7.47.1@lasote/stable: Not found, looking in remotes...
libcurl/7.47.1@lasote/stable: Trying with 'conan.io'...
Downloading conanmanifest.txt
[============================================... | 2016-04-03T21:52:29Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/Cellar/conan/0.8.0/libexec/bin/conan", line 9, in <module>
load_entry_point('conan==0.8.0', 'console_scripts', 'conan')()
File "/usr/local/Cellar/conan/0.8.0/libexec/lib/python2.7/site-packages/conans/conan.py", line 6, in run
main(sys.argv[1:])
File "/... | 3,092 | ||||
conan-io/conan | conan-io__conan-2592 | 1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257 | diff --git a/conans/client/cmd/search.py b/conans/client/cmd/search.py
--- a/conans/client/cmd/search.py
+++ b/conans/client/cmd/search.py
@@ -41,7 +41,7 @@ def search_packages(self, reference=None, remote=None, query=None, outdated=Fals
packages properties: "arch=x86 AND os=Windows"... | conan search gives AttributeError: 'UserIO' object has no attribute 'warn'
Version: 1.1.1
OS: Linux Ubuntu 14.04
conda: v4.2.7
Repro steps:
* `conda create -n conan python=2.7`
* `source activate conan`
* `pip install conan`
* `conan search zlib/1.2.11@conan/stable -r=conan-center`
Gives the following pyth... | I just tried using `virtualenv` (v1.11.4) too, same issue.
```
$ conan search zlib/1.2.11@conan/stable -r=conan-center
Traceback (most recent call last):
File "/tmp/conan-ve/local/lib/python2.7/site-packages/conans/client/command.py", line 1131, in run
method(args[0][1:])
File "/tmp/conan-ve/local/lib/p... | 2018-03-11T21:15:45Z | [] | [] |
Traceback (most recent call last):
File "/home/mgodbolt/apps/miniconda/envs/conan/lib/python2.7/site-packages/conans/client/command.py", line 1131, in run
method(args[0][1:])
File "/home/mgodbolt/apps/miniconda/envs/conan/lib/python2.7/site-packages/conans/client/command.py", line 814, in search
outdat... | 3,137 | |||
conan-io/conan | conan-io__conan-2762 | ac25c8994878706bac23efd009ae74bc294c1add | diff --git a/conans/util/windows.py b/conans/util/windows.py
--- a/conans/util/windows.py
+++ b/conans/util/windows.py
@@ -54,9 +54,11 @@ def path_shortener(path, short_paths):
# Workaround for short_home living in NTFS file systems. Give full control permission to current user to avoid
# access problems in c... | KeyError USERDOMAIN on `conan install`
We have at least two machines for which `conan install` errors out with the message:
```
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\conans\client\command.py", line 1187, in run
method(args[0][1:])
File "C:\Python27\lib\site-packages\conan... | Yes, this is a bug, will be fixed in next release.
Thanks for telling! | 2018-04-16T10:23:04Z | [] | [] |
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\conans\client\command.py", line 1187, in run
method(args[0][1:])
File "C:\Python27\lib\site-packages\conans\client\command.py", line 304, in install
install_folder=args.install_folder)
File "C:\Python27\lib\site-packages\conans\c... | 3,165 | |||
conan-io/conan | conan-io__conan-2824 | 8c8fdc3adef7a50fca6779cc00bf1f33f59e07eb | diff --git a/conans/model/values.py b/conans/model/values.py
--- a/conans/model/values.py
+++ b/conans/model/values.py
@@ -63,7 +63,7 @@ def loads(cls, text):
for line in text.splitlines():
if not line.strip():
continue
- name, value = line.split("=")
+ name,... | Conan displays ValueError: too many values to unpack
To help us debug your issue please explain:
- [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).
- [x] I've specified the Conan version, operating system version and any tool that can be relev... | Hi @T1T4N!
yes, seems this error comes from the parsing of the setting value with the ``=`` symbol.
Could you please indicate the command line you used when you came across this issue? just a normal ``conan create``?
I dont think it is related but make sure you have that ``compiler.version`` in your *settings.... | 2018-04-27T16:37:01Z | [] | [] |
Traceback (most recent call last):
File "/Users/user/venv/lib/python3.6/site-packages/conans/client/remote_manager.py", line 252, in _call_remote
return getattr(self._auth_manager, method)(*argc, **argv)
File "/Users/user/venv/lib/python3.6/site-packages/conans/client/rest/auth_manager.py", line 32, in wrap... | 3,180 | |||
conan-io/conan | conan-io__conan-2908 | 89eb275b9696b308aaaa1fbfaa0f8cdab284a764 | diff --git a/conans/client/tools/win.py b/conans/client/tools/win.py
--- a/conans/client/tools/win.py
+++ b/conans/client/tools/win.py
@@ -300,12 +300,18 @@ def vcvars_dict(settings, arch=None, compiler_version=None, force=False, filter_
new_env = {}
start_reached = False
for line in ret.splitlines():
+ ... | ValueError exception in client/tools/win.py **bug**
Upgrading to conan 1.3.3 broke my build slave with the following stack trace:
Traceback (most recent call last):
File "build.py", line 30, in <module>
builder.run()
File "E:\Program Files\Python36\lib\site-packages\cpt\packager.py", line 328, in run
... | Hi @foobar222
I see you are using conan package tools right? Could you indicate the version you are using?
Version of conan_package_tools:
E:\src\build>pip show conan_package_tools
Name: conan-package-tools
Version: 0.17.1
Summary: Packaging tools for Conan C/C++ package manager
Home-page: https://github.com... | 2018-05-18T09:51:39Z | [] | [] |
Traceback (most recent call last):
File "build.py", line 30, in <module>
builder.run()
File "E:\Program Files\Python36\lib\site-packages\cpt\packager.py", line 328, in run
self.run_builds(base_profile_name=base_profile_name)
File "E:\Program Files\Python36\lib\site-packages\cpt\packager.py", line 40... | 3,202 | |||
conan-io/conan | conan-io__conan-2963 | eb7b8e98eed362c0658b1e0d9a30f44c29f67565 | diff --git a/conans/client/file_copier.py b/conans/client/file_copier.py
--- a/conans/client/file_copier.py
+++ b/conans/client/file_copier.py
@@ -3,7 +3,7 @@
import shutil
from collections import defaultdict
-from conans import tools
+from conans.util.files import mkdir
def report_copied_files(copied, output)... | Error with v1.4
Hello,
I have the following Conan recipe
```
# cat conanfile.txt
[requires]
bitprim-node-cint/0.10.0@bitprim/testing
[generators]
cmake
[options]
bitprim-node-cint:shared=True
bitprim-node-cint:currency=BCH
[imports]
bin, *.dll -> .
lib, *.so -> .
lib, *.dylib -> .
```
... | Totally seems a bug, will try to fix asap and release in 1.4.1. Thanks for reporting! | 2018-05-30T21:30:06Z | [] | [] |
Traceback (most recent call last):
File "/home/fernando/.local/lib/python2.7/site-packages/conans/client/command.py", line 1182, in run
method(args[0][1:])
File "/home/fernando/.local/lib/python2.7/site-packages/conans/client/command.py", line 325, in install
install_folder=args.install_folder)
File... | 3,213 | |||
conan-io/conan | conan-io__conan-3010 | d9f36e5d34f22a7cdba5aba9f0ad90c86f71d760 | diff --git a/conans/client/source.py b/conans/client/source.py
--- a/conans/client/source.py
+++ b/conans/client/source.py
@@ -14,8 +14,11 @@
def get_scm(conanfile, src_folder):
data = getattr(conanfile, "scm", None)
- if data is not None:
+ if data is not None and isinstance(data, dict):
return ... | conan 1.4.x fails when "scm" attribute in recipe is not a dict
Hi @lasote and @memsharded ,
at first of all thanks for implementing the first version of scm feature. Sadly I was unable to review it completely before the 1.4.0 release.
The current implementation fails (without changing our recipes) because we also... | Wow. hard issue. I'm wondering, what to do if someone had the `scm` attribute and it was a `dict`?
I think in that case it will break (because missing/wrong fields) but his complaining would be as legit as yours. And ignoring possible errors when you really don't know if the user wanted to use the `scm` feature or not... | 2018-06-07T09:41:09Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/conan-1.4.2-py2.7.egg/conans/client/command.py", line 1182, in run
method(args[0][1:])
File "/usr/local/lib/python2.7/dist-packages/conan-1.4.2-py2.7.egg/conans/client/command.py", line 246, in create
test_build_folder=args... | 3,225 | |||
conan-io/conan | conan-io__conan-3239 | 6846c8e2c13b8c54e7917eb9a000eab43db3c5f8 | diff --git a/conans/client/command.py b/conans/client/command.py
--- a/conans/client/command.py
+++ b/conans/client/command.py
@@ -359,6 +359,8 @@ def config(self, *args):
install_subparser.add_argument("--verify-ssl", nargs="?", default="True",
help='Verify SSL connec... | [TFS-Git repo] can't install config
When specifying a git repo hosted on TFS 2017, the "conan config install" fails withouth trying to do a "git clone".
It does work when pointing to a github repo
Git repos URL on TFS don't end by ".git"
Conan version : 1.4.5
OS : Ubuntu 16.04 (xenial)
```/home/jfrog/.local/... | Quick question. Even if the URL provided by TFS, what happens if you add ".git" to the end of that http URL? And if you add "/.git" to the end of the URL? Could you please paste here the errors that happen?
Thanks!
so what seems to be happening is that in configuration_install we have:
if item.endswith(".git... | 2018-07-18T21:26:20Z | [] | [] |
Traceback (most recent call last):
File "/home/jfrog/.local/lib/python3.5/site-packages/conans/client/command.py", line 1182, in run
method(args[0][1:])
File "/home/jfrog/.local/lib/python3.5/site-packages/conans/client/command.py", line 377, in config
return self._conan.config_install(args.item, verif... | 3,268 | |||
conan-io/conan | conan-io__conan-3410 | 82631b05304f07dddfbd9f2cb0721e10fcd43d17 | diff --git a/conans/model/ref.py b/conans/model/ref.py
--- a/conans/model/ref.py
+++ b/conans/model/ref.py
@@ -1,44 +1,56 @@
from collections import namedtuple
import re
+from six import string_types
from conans.errors import ConanException, InvalidNameException
from conans.model.version import Version
class C... | Criptic exception if float used for version in conanfile.py
Using Conan `1.5.2`, with the following `conanfile.py`:
```
from conans import ConanFile
class FooConan(ConanFile):
name = "foo"
version = 1.0
```
When running `conan create . foo/bar` it fails with the following criptic exception:
```
T... | Well, from the trace:
```
reference = ConanFileReference(name, version, user, channel)
ConanName.validate_name(version, True)
if ConanName._validation_pattern.match(name) is None:
TypeError: expected string or bytes-like object
```
I would say that is relatively helpful trace to deduce what could be happenin... | 2018-08-28T09:26:43Z | [] | [] |
Traceback (most recent call last):
File "c:\program files\python36\lib\site-packages\conans\client\command.py", line 1219, in run
method(args[0][1:])
File "c:\program files\python36\lib\site-packages\conans\client\command.py", line 246, in create
test_build_folder=args.test_build_folder)
File "c:\pr... | 3,293 | |||
conan-io/conan | conan-io__conan-3439 | e20b1d69492fffe5f1a7db8f27d8565cf0d49469 | diff --git a/conans/client/graph/graph_manager.py b/conans/client/graph/graph_manager.py
--- a/conans/client/graph/graph_manager.py
+++ b/conans/client/graph/graph_manager.py
@@ -73,6 +73,21 @@ def load_consumer_conanfile(self, conanfile_path, info_folder, output,
return conanfile
+ def load_simple_grap... | conan export-pkg touches remotes in 1.7.0
1.6.0 doesn't appear to have this behavior, but if you call "conan export-pkg" with a build_requires and a package override? it appears that conan will make a connection to available remotes. Here's the TB where I added an assert in _call_remote()
This "broke" us because th... | Yes, we need to check it. Where are you defining the build_requires, in the recipe itself? And you ran first the ``conan install`` and the build_requires was installed locally? Please give a bit more of details, so we can investigate. If a bug, we will try to release a fix asap, in 1.7.1
Yeah, conan install was run, pa... | 2018-08-30T09:03:20Z | [] | [] |
Traceback (most recent call last):
File "/home/brian/.local/lib/python2.7/site-packages/conans/client/command.py", line 1251, in run
method(args[0][1:])
File "/home/brian/.local/lib/python2.7/site-packages/conans/client/command.py", line 694, in export_pkg
channel=channel)
File "/home/brian/.local/l... | 3,298 | |||
conan-io/conan | conan-io__conan-3687 | e3856031adbd0341302fd476fb5d70c355c60ce6 | diff --git a/.ci/jenkins/runner.py b/.ci/jenkins/runner.py
--- a/.ci/jenkins/runner.py
+++ b/.ci/jenkins/runner.py
@@ -9,19 +9,23 @@
"Darwin": macpylocation}[platform.system()]
-def run_tests(module_path, pyver, source_folder, tmp_folder,
- exluded_tags, num_cores=3, verbosity=None):
+d... | Allow specifying default options as a dictionary
To help us debug your issue please explain:
- [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).
- [x] I've specified the Conan version, operating system version and any tool that can be relevant.... | Well, you can actually define default options as a list, tuple or multiline string:
Have a look here: https://github.com/conan-io/conan/blob/777f846df4cabe366ddcb88e39f6c7cd8970d7e1/conans/model/conan_file.py#L22
I think it was done that way to avoid the possibility of declaring more than one value as default and... | 2018-10-08T19:31:40Z | [] | [] |
Traceback (most recent call last):
File "c:\program files\python36\lib\site-packages\conans\client\command.py", line 1219, in run
method(args[0][1:])
File "c:\program files\python36\lib\site-packages\conans\client\command.py", line 246, in create
test_build_folder=args.test_build_folder)
File "c:\pr... | 3,336 | |||
conan-io/conan | conan-io__conan-3876 | 2a9f3d734d7a4607d1db2ff8130425d3220e0e31 | diff --git a/conans/client/graph/python_requires.py b/conans/client/graph/python_requires.py
--- a/conans/client/graph/python_requires.py
+++ b/conans/client/graph/python_requires.py
@@ -1,11 +1,9 @@
-import imp
-import sys
-import os
+from collections import namedtuple
-from conans.model.ref import ConanFileReferenc... | [python_requires] imports inside python_required modules
Title: [python_requires] imports inside python_required modules
- [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).
- [x] I've specified the Conan version, operating system version and an... | 2018-10-29T17:12:14Z | [] | [] |
Traceback (most recent call last):
File "Python3/lib/site-packages/conans/client/loader.py", line 235, in _parse_file
loaded = imp.load_source(filename, conan_file_path)
File "Python3/lib/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 684, in _load
... | 3,366 | ||||
conan-io/conan | conan-io__conan-3941 | a4bbe1c2d37bfcfc60b26c1562ab3bc292afd984 | diff --git a/conans/__init__.py b/conans/__init__.py
--- a/conans/__init__.py
+++ b/conans/__init__.py
@@ -18,5 +18,5 @@
REVISIONS = "revisions" # Only when enabled in config, not by default look at server_launcher.py
SERVER_CAPABILITIES = [COMPLEX_SEARCH_CAPABILITY, ] # Still without v2 because it is changing
-_... | tool.vcvars_dict failed if filter_known_paths=True
[Failed this](https://github.com/conan-io/conan/blob/1.9.1/conans/client/tools/win.py#L460)
OS Windows 7, Conan version 1.9.1, Python 2.7.15
(also class 'list' don`t have method 'split' on Python 3)
My code (in conanfile.py):
def get_build_environment(sel... | Thanks, I'm on it, we will try to release the `1.9.2` with this bug fixed next week probably. | 2018-11-15T13:40:26Z | [] | [] |
Traceback (most recent call last):
File "D:\.conan\data\boost\1.68.0\odant\tt\export\conanfile.py", line 171, in get_build_environment
env = tools.vcvars_dict(self.settings, filter_known_paths=True, force=True)
File "D:\Python27\lib\site-packages\conans\client\tools\win.py", line 460, in vcvars_dict
pa... | 3,371 | |||
conan-io/conan | conan-io__conan-3954 | a4bbe1c2d37bfcfc60b26c1562ab3bc292afd984 | diff --git a/conans/client/tools/scm.py b/conans/client/tools/scm.py
--- a/conans/client/tools/scm.py
+++ b/conans/client/tools/scm.py
@@ -169,7 +169,7 @@ def _check_git_repo(self):
class SVN(SCMBase):
cmd_command = "svn"
file_protocol = 'file:///' if platform.system() == "Windows" else 'file://'
- API_CH... | [SCM] [SVN] Parse SVN info independent of SVN client version
- [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).
- [x] I've specified the Conan version, operating system version and any tool that can be relevant.
- [x] I've explained the steps to... | See #3737. I assumed this was fixed in 1.9.0
Edit: Just seen your SVN version. Much newer then mine :smile: Maybe the version logic is not quite right in the fix?
Hello @keithrob91,
thanks for your answer. You said
> maybe the version logic is not quite right in the fix?
Is saw in your code that you use the ... | 2018-11-19T10:03:21Z | [] | [] |
Traceback (most recent call last):
File "/home/blade4/jenkins/CWS/Tools/Python3/lib/python3.6/site-packages/conans/client/command.py", line 1428, in run
method(args[0][1:])
File "/home/blade4/jenkins/CWS/Tools/Python3/lib/python3.6/site-packages/conans/client/command.py", line 299, in create
test_build... | 3,372 | |||
conan-io/conan | conan-io__conan-4207 | db11550dd02323812a11e03798047415b0dea987 | diff --git a/conans/client/cmd/export.py b/conans/client/cmd/export.py
--- a/conans/client/cmd/export.py
+++ b/conans/client/cmd/export.py
@@ -82,7 +82,7 @@ def _capture_export_scm_data(conanfile, conanfile_dir, destination_folder, outpu
save(scm_src_file, src_path.replace("\\", "/"))
if scm_data.url ==... | scm "url" = "auto" vs GitLab CI runner
My CI scripts simultaneously build Windows and Linux binaries on an internal GitLab server using Gitlab runners. Both Windows and Linux runner uses docker if that matters. And most the time one of them fails to upload a package to an internal Artifactory CE repo:
```
Remote ma... | My initial analysis was totally wrong. Here is an updated one. I have a recipe with
```python
class BuildConan(ConanFile):
scm = {
"type": "git",
"url": "auto",
"revision": "auto",
"submodule": "recursive"
}
```
that I build with GitLab CI. `"url": "auto"` is supposed ... | 2018-12-28T12:27:00Z | [] | [] |
Traceback (most recent call last):
File "build.py", line 44, in <module>
main()
File "build.py", line 41, in main
builder.run()
File "/usr/local/lib/python2.7/dist-packages/cpt/packager.py", line 443, in run
self.run_builds(base_profile_name=base_profile_name)
File "/usr/local/lib/python2.7/... | 3,401 | |||
conan-io/conan | conan-io__conan-4324 | 83e8ab9f9b21cdd868efa3eee90e4e00da0e85e6 | diff --git a/conans/client/tools/env.py b/conans/client/tools/env.py
--- a/conans/client/tools/env.py
+++ b/conans/client/tools/env.py
@@ -54,7 +54,7 @@ def environment_append(env_vars):
old_env = dict(os.environ)
os.environ.update(env_vars)
for var in unset_vars:
- os.environ.pop(... | tools.environment_append raises if tries to unset variable which was never set
after #4224, I may use the following code, for instance, to ensure variable is not set:
```
with environment_append({'CONAN_BASH_PATH': None}):
pass
```
however, it raises if `CONAN_BASH_PATH` is not set (prior to the environment_ap... | 2019-01-16T18:04:06Z | [] | [] |
Traceback (most recent call last):
File "C:\bincrafters\conan\conans\test\unittests\client\tools\os_info\osinfo_test.py", line 39, in test_windows
with environment_append(new_env):
File "c:\users\sse4\appdata\local\programs\python\python36\lib\contextlib.py", line 81, in __enter__
return next(self.gen)... | 3,432 | ||||
conan-io/conan | conan-io__conan-4626 | 200a968b14b706fab11fd2402532ec99f000d812 | diff --git a/conans/client/command.py b/conans/client/command.py
--- a/conans/client/command.py
+++ b/conans/client/command.py
@@ -1050,7 +1050,7 @@ def search(self, *args):
if args.revisions:
try:
pref = PackageReference.loads(args.pattern_or_reference)
- ... | Bug in conan search --revisions
In develop, if you forget to pass the reference to the command:
```
conan search --revisions
Traceback (most recent call last):
File "/home/luism/workspace/conan_sources/conans/client/command.py", line 1570, in run
method(args[0][1:])
File "/home/luism/workspace/conan... | 2019-02-27T16:33:48Z | [] | [] |
Traceback (most recent call last):
File "/home/luism/workspace/conan_sources/conans/client/command.py", line 1570, in run
method(args[0][1:])
File "/home/luism/workspace/conan_sources/conans/client/command.py", line 1052, in search
pref = PackageReference.loads(args.pattern_or_reference)
File "/home... | 3,470 | ||||
conan-io/conan | conan-io__conan-4656 | c099be8e501154e9901c733736f8f846f00f026f | diff --git a/conans/client/conan_command_output.py b/conans/client/conan_command_output.py
--- a/conans/client/conan_command_output.py
+++ b/conans/client/conan_command_output.py
@@ -69,7 +69,10 @@ def json_output(self, info, json_output, cwd):
json_output = os.path.join(cwd, json_output)
def da... | Circular reference on conan install --json if using multi configuration packages
While creating a multi configuration package (mainly for windows / Visual Studio + cmake) i want to use conan install --json to protocol the exact version installed of the package for versioning purposes. This is meant to be used to recrea... | Thanks for reporting, yes, looks like a bug. Let's try to solve it for the next release. | 2019-03-05T09:50:59Z | [] | [] |
Traceback (most recent call last):
File "c:\users\dirks\anaconda3\lib\site-packages\conans\client\command.py", line 1427, in run
method(args[0][1:])
File "c:\users\dirks\anaconda3\lib\site-packages\conans\client\command.py", line 399, in install
self._outputer.json_output(info, args.json, cwd)
File ... | 3,472 | |||
conan-io/conan | conan-io__conan-4870 | 715f318f341f2f542e0a8e264daae10f64ac4aa9 | diff --git a/conans/client/migrations.py b/conans/client/migrations.py
--- a/conans/client/migrations.py
+++ b/conans/client/migrations.py
@@ -225,7 +225,16 @@ def _migrate_lock_files(cache, out):
def migrate_config_install(cache):
try:
item = cache.config.get_item("general.config_install")
- conf... | ERROR: not enough values to unpack (expected 4, got 1) on conan create
Tools I'm using:
Conan 1.14.0
CMake 3.14.0
Visual Studio Community 2017 15.9.10
Windows 10 1809 64-bit
Steps to reproduce:
git clone https://gitlab.com/ssrobins/conan-zlib.git
cd conan-zlib
build_windows.bat
I get this error:
`ERROR:... | Hi @ssrobins
Yes, this seems a bug in the migration to the new ``conan config install`` storage. I am going to check it and release a fix asap, but if you have there the contents of your old ``.conan/conan.conf`` file (only the ``config-install`` information, that would help. Thanks!
Also, what is the version of ... | 2019-03-29T09:10:40Z | [] | [] |
Traceback (most recent call last):
File "C:\Users\Steve\AppData\Local\Programs\Python\Python37\Scripts\conan-script.py", line 11, in <module>
load_entry_point('conan==1.14.0', 'console_scripts', 'conan')()
File "c:\users\steve\appdata\local\programs\python\python37\lib\site-packages\conans\conan.py", line 7... | 3,506 | |||
conan-io/conan | conan-io__conan-5014 | 4490b7c2994e368e7befc04cacea09269ccd589b | diff --git a/conans/client/cmd/uploader.py b/conans/client/cmd/uploader.py
--- a/conans/client/cmd/uploader.py
+++ b/conans/client/cmd/uploader.py
@@ -208,13 +208,7 @@ def _upload_ref(self, conanfile, ref, prefs, retry, retry_wait, integrity_check,
remote=recipe_remote)
def _u... | Occassional random failure of package uploads on CI system
My CI is set up to build Conan packages as soon as the new feature is merged into the stable branch. The CI system must build Conan packages for all platforms we support, namely Android (all ABIs), iOS (all architectures), Windows, MacOS and Linux (both with cl... | Thanks for reporting. I've seen this error randomly also with Bintray.
I'll try to investigate.
About the issues with the "stash", I think you should open a new issue because it is a totally different issue. That approach is indeed very problematic for the `metadata.json` maybe we can discuss or figure out a better o... | 2019-04-22T23:38:19Z | [] | [] |
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/conans/client/command.py", line 1579, in run
method(args[0][1:])
File "/usr/lib/python3.7/site-packages/conans/client/command.py", line 1182, in upload
retry_wait=args.retry_wait, integrity_check=args.check)
File "/usr/lib/pyt... | 3,528 | |||
conan-io/conan | conan-io__conan-5102 | 5bb2fee4ecd42f771edf88163901c8a3cd6d3b50 | diff --git a/conans/tools.py b/conans/tools.py
--- a/conans/tools.py
+++ b/conans/tools.py
@@ -111,6 +111,7 @@ def replace_path_in_file(*args, **kwargs):
# from conans.client.tools.oss
args_to_string = tools_oss.args_to_string
detected_architecture = tools_oss.detected_architecture
+detected_os = tools_oss.detected_... | [BUG] Conan Tools does not export detected_os
To help us debug your issue please explain:
When I was updating cmake_installer, I just found that `detected_os` is not exported by conans.tools
Conan Version 1.15.0
```python
from conans import tools
if __name__ == "__main__":
tools.detected_os()
```
**E... | 2019-05-06T20:55:16Z | [] | [] |
Traceback (most recent call last):
File "conanfile.py", line 4, in <module>
tools.detected_os()
AttributeError: module 'conans.tools' has no attribute 'detected_os'
| 3,543 | ||||
conan-io/conan | conan-io__conan-5219 | 5a614a568ad0c5b4f958736b161f23746f0df949 | diff --git a/conans/client/conf/config_installer.py b/conans/client/conf/config_installer.py
--- a/conans/client/conf/config_installer.py
+++ b/conans/client/conf/config_installer.py
@@ -90,9 +90,13 @@ def _process_folder(config, folder, cache, output):
output.info("Defining remotes from remotes.txt")
... | Bug: conan config install
To help us debug your issue please explain:
- [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md).
- [x] I've specified the Conan version, operating system version and any tool that can be relevant.
- [x] I've explained the steps ... | Checked just again the version, where it happens:
1.14.5 OK
1.15.0 Failure
Looks like this place:
```python
elif f in ("registry.txt", "registry.json"):
os.remove(cache.registry_path) <----- Should be try: ... except FileNotFoundError: pass
shutil.copy(os.path.join(root, f), c... | 2019-05-27T09:53:54Z | [] | [] |
Traceback (most recent call last):
File "/home/j/.local/lib/python3.6/site-packages/conans/client/command.py", line 1607, in run
method(args[0][1:])
File "/home/j/.local/lib/python3.6/site-packages/conans/client/command.py", line 478, in config
target_folder=args.target_folder)
File "/home/j/.local/... | 3,556 | |||
conan-io/conan | conan-io__conan-5232 | 5c1c7814b45fb72943a9dc742d0710065e02211f | diff --git a/conans/server/revision_list.py b/conans/server/revision_list.py
--- a/conans/server/revision_list.py
+++ b/conans/server/revision_list.py
@@ -2,7 +2,7 @@
import time
from collections import namedtuple
-from conans.util.dates import from_timestamp_to_iso8601, valid_iso8601
+from conans.util.dates import... | Conan search cannot handle revisions with time that includes an offset
```
$ conan --version
Conan version 1.15.0
$ uname -a
Linux hostname 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
```
Our Artifactory instance seems to return timestamps with an offset:
`[{'rev... | This seems to be the problem: https://github.com/conan-io/conan/blob/bc8c0cbef266acaae68e9059c3549dc794f549d3/conans/util/dates.py#L12-L15
Thanks for reporting. We will solve it for the coming 1.16 | 2019-05-28T07:55:09Z | [] | [] |
Traceback (most recent call last):
File "/home/user/.local/lib/python3.6/site-packages/conans/client/command.py", line 1607, in run
method(args[0][1:])
File "/home/user/.local/lib/python3.6/site-packages/conans/client/command.py", line 1090, in search
self._outputer.print_revisions(ref, info, remote_na... | 3,561 | |||
conan-io/conan | conan-io__conan-5461 | de33bf7c0372776682fb30bceff0425282f164ea | diff --git a/conans/client/cache/editable.py b/conans/client/cache/editable.py
--- a/conans/client/cache/editable.py
+++ b/conans/client/cache/editable.py
@@ -1,5 +1,6 @@
import json
import os
+from contextlib import contextmanager
from os.path import join, normpath
from conans.model.ref import ConanFileReference... | conan remote remove fails with editable packages
Trying to update the metadata, it fails because the `PackageEditableLayout` has no `update_metadata()`. The main questions are:
- Should the editable packages still have the metadata methods available?
or
- Should we force always to retrieve the `PackageCacheLayout`... | @memsharded I would like to know what do you think about this.
I think that so far it doesn't make sense, as metadata are revisions (we don't have them while editable) and remote (same). If the package is in editable mode, I think doesn't make much sense to return PackageCacheLayout for it, so far the PacakgeEditableLa... | 2019-07-08T14:22:25Z | [] | [] |
Traceback (most recent call last):
File "/home/luism/workspace/conan_sources/co... | 3,597 | |||
conan-io/conan | conan-io__conan-5571 | c417c4757fc97150222be06846f2c2e828920f4e | diff --git a/conans/client/tools/scm.py b/conans/client/tools/scm.py
--- a/conans/client/tools/scm.py
+++ b/conans/client/tools/scm.py
@@ -145,23 +145,30 @@ def clone(self, url, branch=None, args="", shallow=False):
return output
def checkout(self, element, submodule=None):
+ # Element can be a t... | scm Attribute fails to clone tag
Since conan 1.18.0 the scm attribute is broken for Git tags. Setting `revision` to a branch – eg. `master` – still works, but tags fail.
The following recipe (*excerpt*) worked up to conan 1.17.0 but fails since 1.18.0:
```python
class RestclientcppConan(ConanFile):+
name = ... | 2019-08-02T05:59:46Z | [] | [] |
Traceback (most recent call last):
File "/opt/pyenv/versions/3.7.1/lib/python3.7/site-packages/conans/client/source.py", line 182, in _run_source
_run_scm(conanfile, src_folder, local_sources_path, output, cache=cache)
File "/opt/pyenv/versions/3.7.1/lib/python3.7/site-packages/conans/client/source.py", lin... | 3,609 | ||||
conan-io/conan | conan-io__conan-5920 | 66bfd2dda31dabda0294f3f155d60d5534d1d5df | diff --git a/conans/client/hook_manager.py b/conans/client/hook_manager.py
--- a/conans/client/hook_manager.py
+++ b/conans/client/hook_manager.py
@@ -57,8 +57,7 @@ def execute(self, method_name, **kwargs):
output = ScopedOutput("[HOOK - %s] %s()" % (name, method_name), self.output)
me... | Conan hooks exceptions show not useful stack trace
Having a hook raising an ``Exception`` produces something like:
```bash
ERROR: [HOOK - name_conventions.py] pre_export(): Reference Hello/0.1@user/testing should be all lowercase
Traceback (most recent call last):
File "c:\users\memsharded\envs\conanpip\lib\sit... | 2019-10-16T15:09:02Z | [] | [] |
Traceback (most recent call last):
File "c:\users\memsharded\envs\conanpip\lib\site-packages\conans\client\hook_manager.py", line 56, in execute
method(output=output, **kwargs)
File "C:\Users\memsharded\.conan\hooks\name_conventions.py", line 4, in pre_export
raise Exception("Reference %s should be all... | 3,646 | ||||
conan-io/conan | conan-io__conan-6059 | c7d09b6148edac5b55c564160406c2268bbb6d7b | diff --git a/conans/model/settings.py b/conans/model/settings.py
--- a/conans/model/settings.py
+++ b/conans/model/settings.py
@@ -233,7 +233,10 @@ def copy_values(self):
@staticmethod
def loads(text):
- return Settings(yaml.safe_load(text) or {})
+ try:
+ return Settings(yaml.safe_... | [ux] [bug] Improve error raised when 'settings.yml' cannot be parsed
If the file `settings.yml` is invalid, Conan raises an ugly error with all the traceback.
---
How to reproduce:
* Edit `settings.yml` and make it an invalid YAML
* Run something like `conan create ....`:
```
⇒ conan create dep1
Traceb... | 2019-11-12T08:50:13Z | [] | [] |
Traceback (most recent call last):
File "/Users/jgsogo/dev/conan/conan/conans/client/command.py", line 1911, in run
method(args[0][1:])
File "/Users/jgsogo/dev/conan/conan/conans/client/command.py", line 355, in create
lockfile=args.lockfile)
.... lots of traceback ...
yaml.scanner.ScannerError... | 3,670 | ||||
conan-io/conan | conan-io__conan-6559 | d584cfe3f8f24b00e09f6fce6b2cad91909358f0 | diff --git a/conans/client/conan_api.py b/conans/client/conan_api.py
--- a/conans/client/conan_api.py
+++ b/conans/client/conan_api.py
@@ -73,7 +73,7 @@ def wrapper(api, *args, **kwargs):
quiet = kwargs.pop("quiet", False)
old_curdir = get_cwd()
old_output = api.user_io.out
- quiet_out... | conan inspect fails if not remotes.json exists
Another bug while trying to replicate this:
```
$ rm -rf .conan\remotes.json
$ conan inspect zlib/1.2.11@ --raw=version
Traceback (most recent call last):
File "c:\users\memsharded\envs\conanpip37\lib\site-packages\conans\client\command.py", line 1969, in run
... | If possible, try to address also the issue in https://github.com/conan-io/conan/issues/6554#issuecomment-587495678 (WARN message in --raw) | 2020-02-18T16:08:07Z | [] | [] |
Traceback (most recent call last):
File "c:\users\memsharded\envs\conanpip37\lib\site-packages\conans\client\command.py", line 1969, in run
method(args[0][1:])
File "c:\users\memsharded\envs\conanpip37\lib\site-packages\conans\client\command.py", line 255, in inspect
result = self._conan.inspect(args.p... | 3,702 | |||
conan-io/conan | conan-io__conan-6675 | d70e04193bdd56ce6e9522f79893cfe9aa46bddd | diff --git a/conans/client/tools/win.py b/conans/client/tools/win.py
--- a/conans/client/tools/win.py
+++ b/conans/client/tools/win.py
@@ -360,6 +360,7 @@ def vcvars_command(settings, arch=None, compiler_version=None, force=False, vcva
raise ConanException("compiler.version setting required for vcvars not defi... | [bug] With "broken" profile/settings.yml, creating a package throws incorrect exception.
### Environment Details (include every applicable attribute)
* Operating System+version: Windows 10
* Compiler+version: Msvc 2015 (but not really applicable)
* Conan version: 1.22.0
* Python version: Python 3.7.4
... | 2020-03-13T12:54:32Z | [] | [] |
Traceback (most recent call last):
File "build.py", line 7, in <module>
builder.run()
File "J:\j\workspace\vendor-someSDK-pipeline\VendorSomeSDK\VendorSomeSDK_venv\lib\site-packages\cpt\packager.py", line 541, in run
self.run_builds(base_profile_name=base_profile_name)
File "J:\j\workspace\vendor-so... | 3,706 | ||||
conan-io/conan | conan-io__conan-6798 | 7e88e8b35a7519c3ec6d20bb7f09817c46961d6d | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -27,8 +27,6 @@ def get_requires(filename):
project_requirements = get_requires("conans/requirements.txt")
-if platform.system() == "Darwin":
- project_requirements.extend(get_requires("conans/requirements_osx.txt"))
project_requirements.extend(g... | [bug] Conan does not install correct dependencies on OSX when using poetry
<!--
Please don't forget to update the issue title.
Include all applicable information to help us reproduce your problem.
To help us debug your issue please explain:
-->
### Environment Details (include every applicable attribute)... | 2020-04-05T16:23:08Z | [] | [] |
Traceback (most recent call last):
File "/Users/stef/Library/Caches/pypoetry/virtualenvs/temp-31h-1b3r-py3.7/bin/conan", line 6, in
from pkg_resources import load_entry_point
| 3,716 | ||||
conan-io/conan | conan-io__conan-7200 | d3da5b8f5757f3335a11abc968bc98508b2fca0a | diff --git a/conans/client/build/cmake.py b/conans/client/build/cmake.py
--- a/conans/client/build/cmake.py
+++ b/conans/client/build/cmake.py
@@ -22,18 +22,33 @@
from conans.util.runners import version_runner
-def CMake(conanfile, *args, **kwargs):
- from conans import ConanFile
- if not isinstance(conanfil... | [bug] [regression] conan 1.26.0 breaks python requirements with custom classes
Consider this example: [conan-issue.zip](https://github.com/conan-io/conan/files/4779320/conan-issue.zip)
It contains two conanfiles, a base conan file, which contains a base for conan file and custom extension of `conans.CMake` class, wh... | This is not because of python_requires, but because of inheriting from `conans.CMake`, as we changed the interface for the new "toolchain" feature. Proposing a new name in #7198 to avoid the issue, though we might want to consider other alternatives, as metaclasses.
Beat me to the story! The workaround I took was
```... | 2020-06-15T16:41:46Z | [] | [] |
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/conans/client/loader.py", line 352, in _parse_conanfile
loaded = imp.load_source(module_id, conan_file_path)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/imp.py", line 171, in load_... | 3,727 | |||
conan-io/conan | conan-io__conan-7272 | 09289a12756000c330ff676a60629b797c0747aa | diff --git a/conans/client/conan_api.py b/conans/client/conan_api.py
--- a/conans/client/conan_api.py
+++ b/conans/client/conan_api.py
@@ -604,10 +604,14 @@ def config_rm(self, item):
@api_method
def config_install_list(self):
+ if not os.path.isfile(self.app.cache.config_install_file):
+ ... | [bug] Conan config install list breaks if config file is missing
The PR https://github.com/conan-io/conan/pull/7263 inserts a new feature, which breaks when conan cache is clear.
### Environment Details (include every applicable attribute)
* Operating System+version: Linux
* Compiler+version: Any
* Conan ve... | Please @uilianries submit a fix if possible. Thanks! | 2020-06-29T14:45:29Z | [] | [] |
Traceback (most recent call last):
File "/home/uilian/Development/conan/conan/venv/lib/python3.8/site-packages/conans/client/command.py", line 2051, in run
method(args[0][1:])
File "/home/uilian/Development/conan/conan/venv/lib/python3.8/site-packages/conans/client/command.py", line 608, in config
conf... | 3,732 | |||
conan-io/conan | conan-io__conan-84 | 901357bf4af14a07a0a0426b4ac7fefd3c8661c5 | diff --git a/conans/client/installer.py b/conans/client/installer.py
--- a/conans/client/installer.py
+++ b/conans/client/installer.py
@@ -107,6 +107,8 @@ def _compute_private_nodes(self, deps_graph, build_mode):
for private_node, private_requirers in private_closure:
for private_requirer in priva... | Conan crashes with there is a duplicate private package
I've run into a scenario where I have two packages where A depends on B, and both have C as a private dependency (C is a unit-testing framework). In this case, when running `conan install` on A, it crashes with the following stack-trace:
```
HEADER ONLY
Requireme... | It seems it is a bug, not intended behaviour, I will check it asap.
Conditional dependencies can be defined, and you could use options to enable/disable them. Check: http://docs.conan.io/en/latest/reference/conanfile.html#requirements
However, this is possibly not very idiomatic, and scopes (dev, production), or a hi... | 2016-01-08T16:57:25Z | [] | [] |
Traceback (most recent call last):
File "/Users/bjoern/.pipsi/bin/conan", line 11, in <module>
sys.exit(run())
File "/Users/bjoern/.pipsi/virtualenvs/conan/lib/python2.7/site-packages/conans/conan.py", line 6, in run
main(sys.argv[1:])
File "/Users/bjoern/.pipsi/virtualenvs/conan/lib/python2.7/site-packa... | 3,780 | |||
conan-io/conan | conan-io__conan-8704 | d2cd8bae2cc8e1c12be11d16f6f33e4040715402 | diff --git a/conans/client/conan_api.py b/conans/client/conan_api.py
--- a/conans/client/conan_api.py
+++ b/conans/client/conan_api.py
@@ -1166,6 +1166,8 @@ def get_path(self, reference, package_id=None, path=None, remote_name=None):
@api_method
def export_alias(self, reference, target_reference):
+ ... | [bug] Stack trace instead of error message with conan alias
### Environment Details (include every applicable attribute)
* Operating System+version: Ubuntu 20.04.2 LTS
* Compiler+version: N/A
* Conan version: 1.34.1
* Python version: 3.8.8
When creating an alias package that already exists, instead of pr... | 2021-03-25T16:08:33Z | [] | [] |
Traceback (most recent call last):
File "/workspace/.pip-modules/lib/python3.8/site-packages/conans/client/command.py", line 2143, in run
method(args[0][1:])
File "/workspace/.pip-modules/lib/python3.8/site-packages/conans/client/command.py", line 1763, in alias
self._conan.export_alias(args.reference,... | 3,793 | ||||
conan-io/conan | conan-io__conan-9431 | 629813b1a1c791022ee1b5e1a18b51fb110f4098 | diff --git a/conan/tools/_compilers.py b/conan/tools/_compilers.py
--- a/conan/tools/_compilers.py
+++ b/conan/tools/_compilers.py
@@ -302,7 +302,7 @@ def _cppstd_gcc(gcc_version, cppstd):
v14 = "c++1y"
vgnu14 = "gnu++1y"
- if Version(gcc_version) >= "5.1":
+ if Version(gcc_version) >= "5":
... | can't use c++17 with gcc 5
<!--
Please don't forget to update the issue title.
Include all applicable information to help us reproduce your problem.
To help us debug your issue please explain:
-->
installing with `compiler.cppstd=17 compiler=gcc compiler.version=5` fails even though GCC 5 supports c++17.
... | This is probably disabled because not all features of C++17 are supported until GCC7.
https://en.cppreference.com/w/cpp/compiler_support#cpp17
but it's enabled with 5.1
On Thu, 12 Aug 2021, 21:10 Arie Miller, ***@***.***> wrote:
> This is probably disabled because not all features of C++17 are supported
> until GC... | 2021-08-16T07:48:20Z | [] | [] |
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/.vscode-server/extensions/ms-python.python-2021.8.1105858891/pythonFiles/lib/pyt... | 3,820 | |||
conda/conda | conda__conda-12104 | ba7d9bc1b1516a48b2579ebb0d068986469280c3 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -846,7 +846,7 @@ def user_agent(self):
try:
solver_backend = self.plugin_manager.get_cached_solver_backend()
# Solver.user_agent has to be a static or clas... | Solver plugin hook incompatible with user_agent feature
### Checklist
- [X] I added a descriptive title
- [X] I searched open reports and couldn't find a duplicate
### What happened?
When trying to use the conda solver plugin hook, the `user_agent` method is called on an instance of the backend, even though the API ... | 2022-11-14T20:02:42Z | [] | [] |
Traceback (most recent call last):
File "/opt/conda-src/conda/base/context.py", line 849, in user_agent
user_agent_str += f" {solver_backend().user_agent()}"
TypeError: __init__() missing 2 required positional arguments: 'prefix' and 'channels'
| 3,896 | ||||
conda/conda | conda__conda-1231 | 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:39Z | [] | [] |
Traceback (most recent call last):
File "/root/anaconda/bin/conda", line 5, in <module>
sys.exit(main())
File "/home/aaronmeurer/conda/conda/cli/main.py", line 202, in main
args_func(args, p)
File "/home/aaronmeurer/conda/conda/cli/main.py", line 207, in args_func
args.func(args, p)
File "/home/aar... | 3,901 | ||||
conda/conda | conda__conda-12460 | cf9073242a7e0c3e387c02121d382ca9b33c47dc | diff --git a/conda/plugins/manager.py b/conda/plugins/manager.py
--- a/conda/plugins/manager.py
+++ b/conda/plugins/manager.py
@@ -3,6 +3,8 @@
from __future__ import annotations
import functools
+import logging
+from importlib.metadata import distributions
import pluggy
@@ -13,6 +15,8 @@
from ..core.solve imp... | Conda should not crash on plugin load "ImportError"
### Checklist
- [X] I added a descriptive title
- [X] I searched open reports and couldn't find a duplicate
### What happened?
I have the `conda-libmamba-solver` plugin installed but something went wrong with my conda environment. Apparently libarchive 19 is... | 2023-03-07T20:53:29Z | [] | [] |
Traceback (most recent call last):
File "/Users/dholth/miniconda3/lib/python3.10/site-packages/conda/plugins/manager.py", line 61, in load_setuptools_entrypoints
return super().load_setuptools_entrypoints(*args, **kwargs)
File "/Users/dholth/miniconda3/lib/python3.10/site-packages/pluggy/_manager.py", line ... | 3,907 | ||||
conda/conda | conda__conda-12509 | 435d7e40859a1cc74c05814899cdc24818002150 | diff --git a/conda/__version__.py b/conda/__version__.py
--- a/conda/__version__.py
+++ b/conda/__version__.py
@@ -1,5 +1,16 @@
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
-from .auxlib.packaging import get_version
+"""Placeholder for the actual version code injected by hatch-vcs.
-__... | Failed to activate devenv-3.8-c in setting up Conda development env
### What happened?
I am trying to set up development env for conda on window's
My Reference :- [Development Environment, Windows cmd.exe shell](https://docs.conda.io/en/latest/contributing.html#development-environment-windows-cmd-exe-shell)
d... | 2023-03-21T03:10:13Z | [] | [] |
Traceback (most recent call last):
File "C:\Users\WIN10\conda\devenv\Windows\envs\devenv-3.8-c\Scripts\conda-script.py", line 11, in <module>
from conda.cli import main
File "C:\Users\WIN10\conda\conda\__init__.py", line 10, in <module>
from .deprecations import deprecated
File "C:\Users\WIN10\conda... | 3,911 | ||||
conda/conda | conda__conda-12985 | 1313ef5ad4d9e0f519ff6735fceea266be77f6d5 | diff --git a/conda/base/context.py b/conda/base/context.py
--- a/conda/base/context.py
+++ b/conda/base/context.py
@@ -7,6 +7,7 @@
"""
from __future__ import annotations
+import logging
import os
import platform
import struct
@@ -15,7 +16,6 @@
from errno import ENOENT
from functools import lru_cache
from iter... | Toggling logger verbosity causes issues for test suite
### What happened?
Ran into into some funky verbosity/logging issues because of our mixed usage of what `--verbose` means (both `conda clean` and `conda doctor` expose this). Historically `--verbose` was exclusively used to indicate increasing the logging verbos... | 2023-08-09T10:18:38Z | [] | [] |
Traceback (most recent call last):
File "/Users/kodegard/.conda/devenv/Darwin/arm64/envs/devenv-3.10-c/lib/python3.10/logging/__init__.py", line 1103, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
| 3,928 | ||||
conda/conda | conda__conda-1463 | 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:38Z | [] | [] |
Traceback (most recent call last):
File "/home/mayank/anaconda/bin/conda", line 5, in <module>
sys.exit(main())
File "/home/mayank/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 201, in main
args_func(args, p)
File "/home/mayank/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line... | 3,932 | |||
conda/conda | conda__conda-1618 | 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:42Z | [] | [] |
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Miniconda\lib\site-packages\conda\install.py", line 204, in rm_rf
shutil.rmtree(path)
File "C:\Miniconda\lib\shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Miniconda\lib\shutil.py", line ... | 3,938 | |||
conda/conda | conda__conda-1807 | 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... | 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:17Z | [] | [] |
Traceback (most recent call last):
File "/opt/anaconda/envs/anaconda.org/bin/conda", line 5, in <module>
sys.exit(main())
File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 195, in main
args_func(args, p)
File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 202, ... | 3,941 | |||
conda/conda | conda__conda-1808 | 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... | 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:30Z | [] | [] |
Traceback (most recent call last):
File "/opt/anaconda/envs/anaconda.org/bin/conda", line 5, in <module>
sys.exit(main())
File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 195, in main
args_func(args, p)
File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 202, ... | 3,942 | |||
conda/conda | conda__conda-2226 | 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:15Z | [] | [] |
Traceback (most recent call last):
File "/Users/ewelch/miniconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/Users/ewelch/miniconda/lib/python2.7/site-packages/conda/cli/main.py", line 139, in main
args_func(args, p)
File "/Users/ewelch/miniconda/lib/python2.7/site-packages/conda/cli/main.py"... | 3,945 | |||
conda/conda | conda__conda-2291 | 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... | 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:18Z | [] | [] |
Traceback (most recent call last):
File "/Users/ilan/python/bin/conda", line 4, in <module>
from conda.cli.main import main
File "/Users/ilan/conda/conda/__init__.py", line 19, in <module>
__version__ = get_version(__file__, __name__)
File "/Users/ilan/python/lib/python2.7/site-packages/auxlib/packaging.... | 3,946 | |||
conda/conda | conda__conda-2534 | 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:15Z | [] | [] |
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
args_func(args, p)
File "/Users/ilan/conda/conda/cli/main.py", line 127, in args_func
args.func(args, p)
File "/Users/... | 3,955 | |||
conda/conda | conda__conda-2571 | 2b8b214100393f24bc6d36853be244be24288c5d | 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
@@ -148,7 +148,7 @@ def list_packages(prefix, installed, regex=None, format='human',
result.append(disp)
except (AttributeError, IOError, KeyError, ValueError) as e:
... | Installing any package fails (on one of my machines) (master)
Master (`4.0.7.dev430+2b8b214`) again. I get:
```
Traceback (most recent call last):
File "/home/ilan/minonda/bin/conda", line 6, in <module>
sys.exit(main())
File "/home/ilan/conda/conda/cli/main.py", line 120, in main
args_func(args, p)
Fil... | Can you do a `--debug` run please? Thanks!
Here you go:
```
$ CIO_TEST=3 conda --debug install openssl
DEBUG:conda.fetch:channel_urls=OrderedDict([('http://bremen/test-pkgs-ilan/linux-32/', ('http://bremen/test-pkgs-ilan', 1)), ('http://bremen/test-pkgs-ilan/noarch/', ('http://bremen/test-pkgs-ilan', 1)), ('http://br... | 2016-05-28T22:41:12Z | [] | [] |
Traceback (most recent call last):
File "/home/ilan/minonda/bin/conda", line 6, in <module>
sys.exit(main())
File "/home/ilan/conda/conda/cli/main.py", line 120, in main
args_func(args, p)
File "/home/ilan/conda/conda/cli/main.py", line 127, in args_func
args.func(args, p)
File "/home/ilan/conda/co... | 3,958 | |||
conda/conda | conda__conda-2604 | 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:49Z | [] | [] |
Traceback (most recent call last):
File "/home/ilan/minonda/bin/conda-build", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/ilan/conda-build/bin/conda-build", line 5, in <module>
sys.exit(main())
File "/home/ilan/conda-build/conda_build/main_build.py", line 140, i... | 3,959 | |||
conda/conda | conda__conda-2685 | 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:37Z | [] | [] |
Traceback (most recent call last):
File "/home/jrodriguez/.local/anaconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/home/jrodriguez/.local/anaconda/lib/python3.5/site-packages/conda/cli/main.py", line 48, in main
activate.main()
File "/home/jrodriguez/.local/anaconda/lib/python3.5/site-pack... | 3,962 | |||
conda/conda | conda__conda-2706 | 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:16Z | [] | [] |
Traceback (most recent call last):
File "C:\Python\Scripts\conda-script.py", line 5, in <module>
sys.exit(main())
File "C:\Python\lib\site-packages\conda\cli\main.py", line 120, in main
args_func(args, p)
File "C:\Python\lib\site-packages\conda\cli\main.py", line 127, in args_func
args.func(args, p)
... | 3,966 | |||
conda/conda | conda__conda-2715 | 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:30Z | [] | [] |
Traceback (most recent call last):
File "/anaconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main
args_func(args, p)
File "/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 127, in args_func
args.func(arg... | 3,968 | |||
conda/conda | conda__conda-2729 | 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... | 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:12Z | [] | [] |
Traceback (most recent call last):
File "C:\projects\conda\tests\test_create.py", line 146, in test_python3
run_command(Commands.INSTALL, prefix, flask_tar_file)
File "C:\projects\conda\tests\test_create.py", line 104, in run_command
args.func(args, p)
File "C:\projects\conda\conda\cli\main_install.py", ... | 3,969 | |||
conda/conda | conda__conda-2838 | 346ca2f3746dae086fbe18d1c1dab0205e1e5972 | diff --git a/conda/fetch.py b/conda/fetch.py
--- a/conda/fetch.py
+++ b/conda/fetch.py
@@ -232,9 +232,9 @@ def add_unknown(index, priorities):
continue
if info['urls']:
url = info['urls'][0]
- elif 'url' in meta:
+ elif meta.get('url'):
url = meta['url']
- ... | conda create --clone of root in 4.1.1 fails with exception
I think this trace tells the complete story:
```
% conda create -p ~/anaclone --clone root
Source: /Users/ijstokes/anaconda
Destination: /Users/ijstokes/anaclone
The following packages cannot be cloned out of the root environment:
- conda-4.1.1-py27_0
-... | Hmm, I'm having trouble reproducing this here. Do you mind giving me a `conda list --explicit` output? By email is fine if you need to.
I think part of the problem we're running into here is that `root` has conda in it, but conda isn't supposed to be installed in non-root environments. Shooting ourselves in the foot ... | 2016-06-23T17:59:53Z | [] | [] |
Traceback (most recent call last):
File "/Users/ijstokes/anaconda/envs/ana40py35/bin/conda", line 6, in <module>
sys.exit(main())
File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 120, in main
args_func(args, p)
File "/Users/ijstokes/anaconda/lib/python2.7/site-packages/... | 3,975 | |||
conda/conda | conda__conda-2896 | 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:15Z | [] | [] |
Traceback (most recent call last):
File "/Users/jenns/anaconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 61, in main
from conda.cli import conda_argparse
File "/Users/jenns/anaconda/lib/python2.7/site-packages/conda/c... | 3,979 | |||
conda/conda | conda__conda-2908 | 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... | 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:30Z | [] | [] |
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
| 3,980 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.