after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def estimate_ate( self, X, treatment, y, p=None, bootstrap_ci=False, n_bootstraps=1000, bootstrap_size=10000, ): """Estimate the Average Treatment Effect (ATE). Args: X (np.matrix or np.array or pd.Dataframe): a feature matrix treatment (np.array or pd.Series): a...
def estimate_ate( self, X, treatment, y, p=None, bootstrap_ci=False, n_bootstraps=1000, bootstrap_size=10000, ): """Estimate the Average Treatment Effect (ATE). Args: X (np.matrix or np.array or pd.Dataframe): a feature matrix treatment (np.array or pd.Series): a...
https://github.com/uber/causalml/issues/241
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-59-76ffa2ace99a> in <module> 1 learner_x = BaseXRegressor(learner=XGBRegressor(random_state=42)) ----> 2 te, lb, ub = learner_x.estimate_ate(X=X, p=df['p...
IndexError
def rmdir(self, path=None): path = normalize_storage_path(path) if path: with self.lock: self.cursor.execute('DELETE FROM zarr WHERE k LIKE (? || "/%")', (path,)) else: self.clear()
def rmdir(self, path=None): path = normalize_storage_path(path) if path: with self.lock: self.cursor.execute('DELETE FROM zarr WHERE k LIKE (? || "_%")', (path,)) else: self.clear()
https://github.com/zarr-developers/zarr-python/issues/439
import zarr import numpy as np path = 'D:/test.db' store = zarr.SQLiteStore(path) group = zarr.open_group(store) group.array('prefix', np.arange(1000)) group.array('prefix_suffix', np.arange(100)) group['prefix_suffix'] Traceback (most recent call last): Python Shell, prompt 3, line 1 # Used internally for debug sandb...
builtins.KeyError
def listdir(self, path=None): path = normalize_storage_path(path) sep = "_" if path == "" else "/" keys = self.cursor.execute( """ SELECT DISTINCT SUBSTR(m, 0, INSTR(m, "/")) AS l FROM ( SELECT LTRIM(SUBSTR(k, LENGTH(?) + 1), "/") || "/" AS m FROM zarr WHE...
def listdir(self, path=None): path = normalize_storage_path(path) keys = self.cursor.execute( """ SELECT DISTINCT SUBSTR(m, 0, INSTR(m, "/")) AS l FROM ( SELECT LTRIM(SUBSTR(k, LENGTH(?) + 1), "/") || "/" AS m FROM zarr WHERE k LIKE (? || "_%") ) O...
https://github.com/zarr-developers/zarr-python/issues/439
import zarr import numpy as np path = 'D:/test.db' store = zarr.SQLiteStore(path) group = zarr.open_group(store) group.array('prefix', np.arange(1000)) group.array('prefix_suffix', np.arange(100)) group['prefix_suffix'] Traceback (most recent call last): Python Shell, prompt 3, line 1 # Used internally for debug sandb...
builtins.KeyError
def _chunk_setitem_nosync(self, chunk_coords, chunk_selection, value, fields=None): # obtain key for chunk storage ckey = self._chunk_key(chunk_coords) if is_total_slice(chunk_selection, self._chunks) and not fields: # totally replace chunk # optimization: we are completely replacing the c...
def _chunk_setitem_nosync(self, chunk_coords, chunk_selection, value, fields=None): # obtain key for chunk storage ckey = self._chunk_key(chunk_coords) if is_total_slice(chunk_selection, self._chunks) and not fields: # totally replace chunk # optimization: we are completely replacing the c...
https://github.com/zarr-developers/zarr-python/issues/348
In [1]: import zarr In [2]: z1 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [3]: z2 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [4]: z1 == z2 Out[4]: True In [5]: z1[0] = 5 In [6]: z2[0] = 5 In [7]: z1 == z2 -------------------------------------------------------------...
ValueError
def _encode_chunk(self, chunk): # apply filters if self._filters: for f in self._filters: chunk = f.encode(chunk) # check object encoding if isinstance(chunk, np.ndarray) and chunk.dtype == object: raise RuntimeError("cannot write object array without object codec") # c...
def _encode_chunk(self, chunk): # apply filters if self._filters: for f in self._filters: chunk = f.encode(chunk) # check object encoding if isinstance(chunk, np.ndarray) and chunk.dtype == object: raise RuntimeError("cannot write object array without object codec") # c...
https://github.com/zarr-developers/zarr-python/issues/348
In [1]: import zarr In [2]: z1 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [3]: z2 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [4]: z1 == z2 Out[4]: True In [5]: z1[0] = 5 In [6]: z2[0] = 5 In [7]: z1 == z2 -------------------------------------------------------------...
ValueError
def __setitem__(self, item, value): with self.write_mutex: parent, key = self._require_parent(item) value = ensure_bytes(value) parent[key] = value
def __setitem__(self, item, value): with self.write_mutex: parent, key = self._require_parent(item) parent[key] = value
https://github.com/zarr-developers/zarr-python/issues/348
In [1]: import zarr In [2]: z1 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [3]: z2 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [4]: z1 == z2 Out[4]: True In [5]: z1[0] = 5 In [6]: z2[0] = 5 In [7]: z1 == z2 -------------------------------------------------------------...
ValueError
def getsize(self, path=None): path = normalize_storage_path(path) # obtain value to return size of value = None if path: try: parent, key = self._get_parent(path) value = parent[key] except KeyError: pass else: value = self.root # obt...
def getsize(self, path=None): path = normalize_storage_path(path) # obtain value to return size of value = None if path: try: parent, key = self._get_parent(path) value = parent[key] except KeyError: pass else: value = self.root # obt...
https://github.com/zarr-developers/zarr-python/issues/348
In [1]: import zarr In [2]: z1 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [3]: z2 = zarr.zeros((100,), chunks=(10,), dtype='i4', compressor=None) In [4]: z1 == z2 Out[4]: True In [5]: z1[0] = 5 In [6]: z2[0] = 5 In [7]: z1 == z2 -------------------------------------------------------------...
ValueError
def encode_fill_value(v, dtype): # early out if v is None: return v if dtype.kind == "f": if np.isnan(v): return "NaN" elif np.isposinf(v): return "Infinity" elif np.isneginf(v): return "-Infinity" else: return float(v) ...
def encode_fill_value(v, dtype): # early out if v is None: return v if dtype.kind == "f": if np.isnan(v): return "NaN" elif np.isposinf(v): return "Infinity" elif np.isneginf(v): return "-Infinity" else: return float(v) ...
https://github.com/zarr-developers/zarr-python/issues/342
OverflowError: int too big to convert The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/tom/anaconda3/lib/python3.6/site-packages/zarr/meta.py", line 38, in decode_array_metadata fill_value = decode_fill_value(meta['fill_value'], dtype) File "/home/tom/a...
SystemError
def normalize_array_selection(item, shape): """Convenience function to normalize a selection within an array with the given `shape`.""" # ensure tuple if not isinstance(item, tuple): item = (item,) # handle ellipsis n_ellipsis = sum(1 for i in item if i == Ellipsis) if n_ellipsis >...
def normalize_array_selection(item, shape): """Convenience function to normalize a selection within an array with the given `shape`.""" # normalize item if isinstance(item, numbers.Integral): item = (int(item),) elif isinstance(item, slice): item = (item,) elif item == Ellipsis:...
https://github.com/zarr-developers/zarr-python/issues/93
In [1]: import zarr In [2]: z = zarr.empty(shape=(100, 110), chunks=(10, 11), dtype=float) In [3]: z[0] Out[3]: array([ 6.91088620e-310, 6.91088620e-310, 2.10918838e-316, 2.10918838e-316, 1.94607893e-316, 5.72938864e-313, 0.00000000e+000, 3.95252517e-323, 1.57027689e-312, 1.93101617e-312, 1.25197752e-3...
TypeError
def shutdown_agents(opts): if "rmq" == utils.get_messagebus() and not check_rabbit_status(): opts.aip.rmq_shutdown() else: opts.connection.call("shutdown") _log.debug("Calling stop_platform") if opts.platform: opts.connection.notify("stop_platform")
def shutdown_agents(opts): opts.connection.call("shutdown") _log.debug("Calling stop_platform") if opts.platform: opts.connection.notify("stop_platform")
https://github.com/VOLTTRON/volttron/issues/1886
Shutting down VOLTTRON Traceback (most recent call last): File "/home/osboxes/repos/pr-test/env/local/lib/python2.7/site-packages/gevent/greenlet.py", line 534, in run result = self._run(*self.args, **self.kwargs) File "/home/osboxes/repos/pr-test/volttron/platform/vip/agent/core.py", line 276, in run looper.next() Fil...
AttributeError
def send_vip_object(self, message): """ Send the VIP message over RabbitMQ message bus. Reformat the VIP message object into Pika message object and publish it using Pika library :param message: VIP message object :return: """ platform = getattr(message, "platform", self._instance_name) ...
def send_vip_object(self, message): """ Send the VIP message over RabbitMQ message bus. Reformat the VIP message object into Pika message object and publish it using Pika library :param message: VIP message object :return: """ platform = getattr(message, "platform", self._instance_name) ...
https://github.com/VOLTTRON/volttron/issues/1886
Shutting down VOLTTRON Traceback (most recent call last): File "/home/osboxes/repos/pr-test/env/local/lib/python2.7/site-packages/gevent/greenlet.py", line 534, in run result = self._run(*self.args, **self.kwargs) File "/home/osboxes/repos/pr-test/volttron/platform/vip/agent/core.py", line 276, in run looper.next() Fil...
AttributeError
def __init__( self, destination_vip, destination_serverkey, destination_historian_identity=PLATFORM_HISTORIAN, **kwargs, ): """ :param destination_vip: vip address of the destination volttron instance :param destination_serverkey: public key of the destination server :param serv...
def __init__( self, destination_vip, destination_serverkey, destination_historian_identity=PLATFORM_HISTORIAN, **kwargs, ): """ :param destination_vip: vip address of the destination volttron instance :param destination_serverkey: public key of the destination server :param serv...
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def __init__( self, destination_vip, destination_serverkey, custom_topic_list=[], topic_replace_list=[], required_target_agents=[], cache_only=False, **kwargs, ): kwargs["process_loop_in_greenlet"] = True super(ForwardHistorian, self).__init__(**kwargs) # will be available i...
def __init__( self, destination_vip, destination_serverkey, custom_topic_list=[], topic_replace_list=[], required_target_agents=[], cache_only=False, **kwargs, ): super(ForwardHistorian, self).__init__(**kwargs) # will be available in both threads. self._topic_replace_map = ...
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def __init__( self, retry_period=300.0, submit_size_limit=1000, max_time_publishing=30.0, backup_storage_limit_gb=None, topic_replace_list=[], gather_timing_data=False, readonly=False, process_loop_in_greenlet=False, capture_device_data=True, capture_log_data=True, captur...
def __init__( self, retry_period=300.0, submit_size_limit=1000, max_time_publishing=30.0, backup_storage_limit_gb=None, topic_replace_list=[], gather_timing_data=False, readonly=False, capture_device_data=True, capture_log_data=True, capture_analysis_data=True, capture_re...
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def start_process_thread(self): if self._process_loop_in_greenlet: self._process_thread = self.core.spawn(self._process_loop) self._process_thread.start() _log.debug("Process greenlet started.") else: self._process_thread = Thread(target=self._process_loop) self._process_...
def start_process_thread(self): self._process_thread = Thread(target=self._process_loop) self._process_thread.daemon = True # Don't wait on thread to exit. self._process_thread.start() _log.debug("Process thread started.")
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def stop_process_thread(self): _log.debug("Stopping the process loop.") if self._process_thread is None: return # Tell the loop it needs to die. self._stop_process_loop = True # Wake the loop. self._event_queue.put(None) # 9 seconds as configuration timeout is 10 seconds. self....
def stop_process_thread(self): _log.debug("Stopping the process thread.") if self._process_thread is None: return # Tell the loop it needs to die. self._stop_process_loop = True # Wake the loop. self._event_queue.put(None) # 9 seconds as configuration timeout is 10 seconds. sel...
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def _process_loop(self): """ The process loop is called off of the main thread and will not exit unless the main agent is shutdown or the Agent is reconfigured. """ _log.debug("Starting process loop.") # Sets up the concrete historian # call this method even in case of readonly mode in cas...
def _process_loop(self): """ The process loop is called off of the main thread and will not exit unless the main agent is shutdown. """ _log.debug("Starting process loop.") # Sets up the concrete historian # call this method even in case of readonly mode in case historian # is setting ...
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def __init__(self, owner, backup_storage_limit_gb, check_same_thread=True): # The topic cache is only meant as a local lookup and should not be # accessed via the implemented historians. self._backup_cache = {} self._meta_data = defaultdict(dict) self._owner = weakref.ref(owner) self._backup_sto...
def __init__(self, owner, backup_storage_limit_gb): # The topic cache is only meant as a local lookup and should not be # accessed via the implemented historians. self._backup_cache = {} self._meta_data = defaultdict(dict) self._owner = weakref.ref(owner) self._backup_storage_limit_gb = backup_s...
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def close(self): self._connection.close() self._connection = None
def close(self): self._connection.close()
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def _setupdb(self, check_same_thread): """Creates a backup database for the historian if doesn't exist.""" _log.debug("Setting up backup DB.") self._connection = sqlite3.connect( "backup.sqlite", detect_types=sqlite3.PARSE_DECLTYPES | sqlite3.PARSE_COLNAMES, check_same_thread=check_...
def _setupdb(self): """Creates a backup database for the historian if doesn't exist.""" _log.debug("Setting up backup DB.") self._connection = sqlite3.connect( "backup.sqlite", detect_types=sqlite3.PARSE_DECLTYPES | sqlite3.PARSE_COLNAMES ) c = self._connection.cursor() if self._backu...
https://github.com/VOLTTRON/volttron/issues/1484
('RPC ERROR', 'Traceback (most recent call last): File "/home/jer/git/volttron-craig/volttron/platform/vip/agent/subsystems/rpc.py", line 169, in method return method(*args, **kwargs) File "/home/jer/git/volttron-craig/volttron/platform/store.py", line 256, in manage_get_metadata raise KeyError(\'No configuration file ...
KeyError
def __init__(self, config, **kwargs): """Initialise the historian. The historian makes two connections to the data store. Both of these connections are available across the main and processing thread of the historian. topic_map and topic_meta are used as cache for the meta data and topic maps. ...
def __init__(self, config, **kwargs): """Initialise the historian. The historian makes two connections to the data store. Both of these connections are available across the main and processing thread of the historian. topic_map and topic_meta are used as cache for the meta data and topic maps. ...
https://github.com/VOLTTRON/volttron/issues/988
2016-10-26 15:44:11,091 (sqlhistorianagent-3.6.0 1179) <stderr> ERROR: Exception in thread Thread-2: 2016-10-26 15:44:11,091 (sqlhistorianagent-3.6.0 1179) <stderr> ERROR: Traceback (most recent call last): 2016-10-26 15:44:11,091 (sqlhistorianagent-3.6.0 1179) <stderr> ERROR: File "/usr/lib/python2.7/threading.py", ...
AttributeError
def historian_setup(self): thread_name = threading.currentThread().getName() _log.debug("historian_setup on Thread: {}".format(thread_name)) database_type = self.config["connection"]["type"] self.tables_def, table_names = self.parse_table_def(self.config) db_functs_class = sqlutils.get_dbfuncts_cla...
def historian_setup(self): thread_name = threading.currentThread().getName() _log.debug("historian_setup on Thread: {}".format(thread_name))
https://github.com/VOLTTRON/volttron/issues/988
2016-10-26 15:44:11,091 (sqlhistorianagent-3.6.0 1179) <stderr> ERROR: Exception in thread Thread-2: 2016-10-26 15:44:11,091 (sqlhistorianagent-3.6.0 1179) <stderr> ERROR: Traceback (most recent call last): 2016-10-26 15:44:11,091 (sqlhistorianagent-3.6.0 1179) <stderr> ERROR: File "/usr/lib/python2.7/threading.py", ...
AttributeError
def _process_loop(self): """ The process loop is called off of the main thread and will not exit unless the main agent is shutdown. """ _log.debug("Starting process loop.") self._setup_backup_db() self.historian_setup() # now that everything is setup we need to make sure that the topic...
def _process_loop(self): """ The process loop is called off of the main thread and will not exit unless the main agent is shutdown. """ _log.debug("Starting process loop.") self._setup_backup_db() self.historian_setup() # now that everything is setup we need to make sure that the topic...
https://github.com/VOLTTRON/volttron/issues/168
2015-08-28 08:38:59,118 (forwarderagent-3.0 6934) volttron.platform.agent.base_historian ERROR: An unhandled exception has occured while publishing to historian. 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr> ERROR: Traceback (most recent call last): 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr...
TypeError
def periodic_read(self): _log.debug("scraping device: " + self.device_name) try: results = self.interface.scrape_all() except Exception: _log.exception("unhandled exception") return # XXX: Does a warning need to be printed? if not results: return now = datetime...
def periodic_read(self): _log.debug("scraping device: " + self.device_name) try: results = self.interface.scrape_all() except Exception as ex: _log.exception(ex) return # XXX: Does a warning need to be printed? if not results: return now = datetime.datetime.utc...
https://github.com/VOLTTRON/volttron/issues/168
2015-08-28 08:38:59,118 (forwarderagent-3.0 6934) volttron.platform.agent.base_historian ERROR: An unhandled exception has occured while publishing to historian. 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr> ERROR: Traceback (most recent call last): 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr...
TypeError
def historian(config_path, **kwargs): config = utils.load_config(config_path) connection = config.get("connection", None) assert connection is not None databaseType = connection.get("type", None) assert databaseType is not None params = connection.get("params", None) assert params is not Non...
def historian(config_path, **kwargs): config = utils.load_config(config_path) connection = config.get("connection", None) assert connection is not None databaseType = connection.get("type", None) assert databaseType is not None params = connection.get("params", None) assert params is not Non...
https://github.com/VOLTTRON/volttron/issues/168
2015-08-28 08:38:59,118 (forwarderagent-3.0 6934) volttron.platform.agent.base_historian ERROR: An unhandled exception has occured while publishing to historian. 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr> ERROR: Traceback (most recent call last): 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr...
TypeError
def starting(self, sender, **kwargs): print( "Starting address: {} identity: {}".format( self.core.address, self.core.identity ) ) try: self.reader = DbFuncts(**connection["params"]) except AttributeError: _log.exception("bad connection parameters") se...
def starting(self, sender, **kwargs): print( "Starting address: {} identity: {}".format( self.core.address, self.core.identity ) ) try: self.reader = DbFuncts(**connection["params"]) except AttributeError as exc: _log.exception(exp) self.core.stop() ...
https://github.com/VOLTTRON/volttron/issues/168
2015-08-28 08:38:59,118 (forwarderagent-3.0 6934) volttron.platform.agent.base_historian ERROR: An unhandled exception has occured while publishing to historian. 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr> ERROR: Traceback (most recent call last): 2015-08-28 08:38:59,119 (forwarderagent-3.0 6934) <stderr...
TypeError
def send(self, frame, flags=0, copy=True, track=False): """Send a single frame while enforcing VIP protocol. Expects frames to be sent in the following order: PEER USER_ID MESSAGE_ID SUBSYSTEM [ARG]... If the socket is a ROUTER, an INTERMEDIARY must be sent before PEER. The VIP protocol signat...
def send(self, frame, flags=0, copy=True, track=False): """Send a single frame while enforcing VIP protocol. Expects frames to be sent in the following order: PEER USER_ID MESSAGE_ID SUBSYSTEM [ARG]... If the socket is a ROUTER, an INTERMEDIARY must be sent before PEER. The VIP protocol signat...
https://github.com/VOLTTRON/volttron/issues/133
Traceback (most recent call last): File "/home/kyle/workspaces/volttron/env/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run result = self._run(*self.args, **self.kwargs) File "/home/kyle/workspaces/volttron/volttron/platform/vip/agent/subsystems/pubsub.py", line 280, in subscribe self.rpc().call...
ProtocolError
def send_vip( self, peer, subsystem, args=None, msg_id=b"", user=b"", via=None, flags=0, copy=True, track=False, ): """Send an entire VIP message by individual parts. This method will raise a ProtocolError exception if the previous send was made with the SNDMORE flag...
def send_vip( self, peer, subsystem, args=None, msg_id=b"", user=b"", via=None, flags=0, copy=True, track=False, ): """Send an entire VIP message by individual parts. This method will raise a ProtocolError exception if the previous send was made with the SNDMORE flag...
https://github.com/VOLTTRON/volttron/issues/133
Traceback (most recent call last): File "/home/kyle/workspaces/volttron/env/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run result = self._run(*self.args, **self.kwargs) File "/home/kyle/workspaces/volttron/volttron/platform/vip/agent/subsystems/pubsub.py", line 280, in subscribe self.rpc().call...
ProtocolError
def __init__(self, context=None, socket_type=DEALER, shadow=None): """Initialize the object and the send and receive state.""" if context is None: context = self._context_class.instance() # There are multiple backends which handle shadow differently. # It is best to send it as a positional to av...
def __init__(self, context=None, socket_type=DEALER, shadow=None): """Initialize the object and the send and receive state.""" if context is None: context = self._context_class.instance() # There are multiple backends which handle shadow differently. # It is best to send it as a positional to av...
https://github.com/VOLTTRON/volttron/issues/133
Traceback (most recent call last): File "/home/kyle/workspaces/volttron/env/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run result = self._run(*self.args, **self.kwargs) File "/home/kyle/workspaces/volttron/volttron/platform/vip/agent/subsystems/pubsub.py", line 280, in subscribe self.rpc().call...
ProtocolError
def send(self, frame, flags=0, copy=True, track=False): """Send a single frame while enforcing VIP protocol. Expects frames to be sent in the following order: PEER USER_ID MESSAGE_ID SUBSYSTEM [ARG]... If the socket is a ROUTER, an INTERMEDIARY must be sent before PEER. The VIP protocol signat...
def send(self, frame, flags=0, copy=True, track=False): """Send a single frame while enforcing VIP protocol. Expects frames to be sent in the following order: PEER USER_ID MESSAGE_ID SUBSYSTEM [ARG]... If the socket is a ROUTER, an INTERMEDIARY must be sent before PEER. The VIP protocol signat...
https://github.com/VOLTTRON/volttron/issues/133
Traceback (most recent call last): File "/home/kyle/workspaces/volttron/env/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run result = self._run(*self.args, **self.kwargs) File "/home/kyle/workspaces/volttron/volttron/platform/vip/agent/subsystems/pubsub.py", line 280, in subscribe self.rpc().call...
ProtocolError
def send_vip( self, peer, subsystem, args=None, msg_id=b"", user=b"", via=None, flags=0, copy=True, track=False, ): """Send an entire VIP message by individual parts. This method will raise a ProtocolError exception if the previous send was made with the SNDMORE flag...
def send_vip( self, peer, subsystem, args=None, msg_id=b"", user=b"", via=None, flags=0, copy=True, track=False, ): """Send an entire VIP message by individual parts. This method will raise a ProtocolError exception if the previous send was made with the SNDMORE flag...
https://github.com/VOLTTRON/volttron/issues/133
Traceback (most recent call last): File "/home/kyle/workspaces/volttron/env/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, in run result = self._run(*self.args, **self.kwargs) File "/home/kyle/workspaces/volttron/volttron/platform/vip/agent/subsystems/pubsub.py", line 280, in subscribe self.rpc().call...
ProtocolError
def main(database): history = InMemoryHistory() connection = sqlite3.connect(database) while True: try: text = get_input( "> ", lexer=SqlLexer, completer=sql_completer, style=DocumentStyle, history=history, ...
def main(database): history = History() connection = sqlite3.connect(database) while True: try: text = get_input( "> ", lexer=SqlLexer, completer=sql_completer, style=DocumentStyle, history=history, ...
https://github.com/prompt-toolkit/python-prompt-toolkit/issues/150
Traceback (most recent call last): File "sqlite-cli.py", line 55, in <module> main(db) File "sqlite-cli.py", line 29, in main history = History() TypeError: Can't instantiate abstract class History with abstract methods __getitem__, __len__, append
TypeError
def get_completions(self, document): """Ask jedi to complete.""" script = get_jedi_script_from_document( document, self.get_locals(), self.get_globals() ) if script: try: completions = script.completions() except TypeError: # Issue #9: bad syntax causes c...
def get_completions(self, document): """Ask jedi to complete.""" script = get_jedi_script_from_document( document, self.get_locals(), self.get_globals() ) if script: try: completions = script.completions() except TypeError: # Issue #9: bad syntax causes c...
https://github.com/prompt-toolkit/python-prompt-toolkit/issues/43
In [1]: import sException in thread Thread-8: Traceback (most recent call last): File "/usr/local/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/home/edd/.local/lib/python2.7/site-packages/prompt_toolkit/__init__.pyn callback() File "/home/edd/.local/lib/python2.7/site-packages/prompt_too...
UnicodeDecodeError
def get_tokens(self, cli, width): result = [] append = result.append Signature = Token.Toolbar.Signature if cli.line.signatures: sig = cli.line.signatures[0] # Always take the first one. append((Token, " ")) try: append((Signature, sig.full_name)) ...
def get_tokens(self, cli, width): result = [] append = result.append Signature = Token.Toolbar.Signature if cli.line.signatures: sig = cli.line.signatures[0] # Always take the first one. append((Token, " ")) append((Signature, sig.full_name)) append((Signatur...
https://github.com/prompt-toolkit/python-prompt-toolkit/issues/37
➜ ~ ptpython --vi In [1]: def bez(cps, t): 2. if len(cps) < 2: 3. return cps[0] 4. p1 = bez(Traceback (most recent call last): File "/usr/local/bin/ptpython", line 80, in <module> _run_repl() all File "/usr/local/bin/ptpython", line 77, in _run_repl startup_paths=startup_paths, always_multiline=...
IndexError
def get_completions(self, document): """Ask jedi to complete.""" script = get_jedi_script_from_document( document, self.get_locals(), self.get_globals() ) if script: try: completions = script.completions() except TypeError: # Issue #9: bad syntax causes c...
def get_completions(self, document): """Ask jedi to complete.""" script = get_jedi_script_from_document( document, self.get_locals(), self.get_globals() ) if script: for c in script.completions(): yield Completion( c.name_with_symbols, len(c.c...
https://github.com/prompt-toolkit/python-prompt-toolkit/issues/9
In [1]: for i in range)Exception in thread Thread-13: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "build/bdist.linux-x86_64/egg/prompt_toolkit/__init__.py", line 200, in run callback() File "build/bdist.linux-x86_64/egg/prompt_toolkit/__init_...
TypeError
def get_jedi_script_from_document(document, locals, globals): try: return jedi.Interpreter( document.text, column=document.cursor_position_col, line=document.cursor_position_row + 1, path="input-text", namespaces=[locals, globals], ) e...
def get_jedi_script_from_document(document, locals, globals): try: return jedi.Interpreter( document.text, column=document.cursor_position_col, line=document.cursor_position_row + 1, path="input-text", namespaces=[locals, globals], ) e...
https://github.com/prompt-toolkit/python-prompt-toolkit/issues/65
In [1]: yieldException in thread Thread-7: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 921, in _bootstrap_inner self.run() File "/usr/lib/python3.4/threading.py", line 869, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3.4/site-packages/prompt_toolkit-0.22-py3...
AttributeError
def save(self, labels: SemanticSegmentationLabels) -> None: """Save labels to disk. More info on rasterio IO: - https://github.com/mapbox/rasterio/blob/master/docs/quickstart.rst - https://rasterio.readthedocs.io/en/latest/topics/windowed-rw.html Args: labels - (SemanticSegmentationLabels)...
def save(self, labels: SemanticSegmentationLabels) -> None: """Save labels to disk. More info on rasterio IO: - https://github.com/mapbox/rasterio/blob/master/docs/quickstart.rst - https://rasterio.readthedocs.io/en/latest/topics/windowed-rw.html Args: labels - (SemanticSegmentationLabels)...
https://github.com/azavea/raster-vision/issues/1073
Running predict command... 2021-01-18 09:29:36:rastervision.pytorch_learner.learner: INFO - Loading model weights from: /opt/data/tmp/tmpno2kuo4_/model-bundle/model.pth 2021-01-18 09:29:38:rastervision.core.rv_pipeline.rv_pipeline: INFO - Making predictions for scene .......................................................
KeyError
def write_smooth_raster_output( self, out_profile: dict, scores_path: str, hits_path: str, labels: SemanticSegmentationLabels, chip_sz: Optional[int] = None, ) -> None: dtype = np.uint8 if self.smooth_as_uint8 else np.float32 out_profile.update( { "count": labels.num...
def write_smooth_raster_output( self, out_smooth_profile: dict, scores_path: str, hits_path: str, labels: SemanticSegmentationLabels, chip_sz: Optional[int] = None, ) -> None: dtype = np.uint8 if self.smooth_as_uint8 else np.float32 out_smooth_profile.update( { "coun...
https://github.com/azavea/raster-vision/issues/1073
Running predict command... 2021-01-18 09:29:36:rastervision.pytorch_learner.learner: INFO - Loading model weights from: /opt/data/tmp/tmpno2kuo4_/model-bundle/model.pth 2021-01-18 09:29:38:rastervision.core.rv_pipeline.rv_pipeline: INFO - Making predictions for scene .......................................................
KeyError
def write_discrete_raster_output( self, out_profile: dict, path: str, labels: SemanticSegmentationLabels ) -> None: num_bands = 1 if self.class_transformer is None else 3 out_profile.update({"count": num_bands, "dtype": np.uint8}) windows = labels.get_windows() log.info("Writing labels to disk.") ...
def write_discrete_raster_output( self, out_smooth_profile: dict, path: str, labels: SemanticSegmentationLabels ) -> None: num_bands = 1 if self.class_transformer is None else 3 out_smooth_profile.update({"count": num_bands, "dtype": np.uint8}) windows = labels.get_windows() log.info("Writing labe...
https://github.com/azavea/raster-vision/issues/1073
Running predict command... 2021-01-18 09:29:36:rastervision.pytorch_learner.learner: INFO - Loading model weights from: /opt/data/tmp/tmpno2kuo4_/model-bundle/model.pth 2021-01-18 09:29:38:rastervision.core.rv_pipeline.rv_pipeline: INFO - Making predictions for scene .......................................................
KeyError
def _labels_to_full_label_arr(self, labels: SemanticSegmentationLabels) -> np.ndarray: """Get an array of labels covering the full extent.""" try: label_arr = labels.get_label_arr(self.extent) return label_arr except KeyError: pass # we will construct the array from individual w...
def _labels_to_full_label_arr(self, labels: SemanticSegmentationLabels) -> np.ndarray: """Get an array of labels covering the full extent.""" try: label_arr = labels.get_label_arr(self.extent) return label_arr except KeyError: pass # construct the array from individual windows ...
https://github.com/azavea/raster-vision/issues/1073
Running predict command... 2021-01-18 09:29:36:rastervision.pytorch_learner.learner: INFO - Loading model weights from: /opt/data/tmp/tmpno2kuo4_/model-bundle/model.pth 2021-01-18 09:29:38:rastervision.core.rv_pipeline.rv_pipeline: INFO - Making predictions for scene .......................................................
KeyError
def save(self, labels): """Save. Args: labels - (SemanticSegmentationLabels) labels to be saved """ local_path = get_local_path(self.uri, self.tmp_dir) make_dir(local_path, use_dirname=True) transform = self.crs_transformer.get_affine_transform() crs = self.crs_transformer.get_imag...
def save(self, labels): """Save. Args: labels - (SemanticSegmentationLabels) labels to be saved """ local_path = get_local_path(self.uri, self.tmp_dir) make_dir(local_path, use_dirname=True) transform = self.crs_transformer.get_affine_transform() crs = self.crs_transformer.get_imag...
https://github.com/azavea/raster-vision/issues/835
 17:55:54 2019-10-01 17:55:54:rastervision.utils.files: INFO - Downloading s3://raster-vision-lf-dev/examples/test-output/21/spacenet-vegas-buildings-semantic-segmentation-pytorch/predict/buildings-semantic_segmentation/5058.tif to /opt/data/temp/tmp5903c076/tmpk2r7cdga/s3/raster-vision-lf-dev/examples/test-output/21/...
json.decoder.JSONDecodeError
def save(self, labels): """Save. Args: labels - (SemanticSegmentationLabels) labels to be saved """ local_path = get_local_path(self.uri, self.tmp_dir) make_dir(local_path, use_dirname=True) transform = self.crs_transformer.get_affine_transform() crs = self.crs_transformer.get_imag...
def save(self, labels): """Save. Args: labels - (SemanticSegmentationLabels) labels to be saved """ local_path = get_local_path(self.uri, self.tmp_dir) make_dir(local_path, use_dirname=True) transform = self.crs_transformer.get_affine_transform() crs = self.crs_transformer.get_imag...
https://github.com/azavea/raster-vision/issues/835
 17:55:54 2019-10-01 17:55:54:rastervision.utils.files: INFO - Downloading s3://raster-vision-lf-dev/examples/test-output/21/spacenet-vegas-buildings-semantic-segmentation-pytorch/predict/buildings-semantic_segmentation/5058.tif to /opt/data/temp/tmp5903c076/tmpk2r7cdga/s3/raster-vision-lf-dev/examples/test-output/21/...
json.decoder.JSONDecodeError
def build(self, class_config, crs_transformer, extent, tmp_dir): return SemanticSegmentationLabelStore( self.uri, extent, crs_transformer, tmp_dir, vector_output=self.vector_output, class_config=class_config if self.rgb else None, )
def build(self, class_config, crs_transformer, extent, tmp_dir): return SemanticSegmentationLabelStore( self.uri, extent, crs_transformer, tmp_dir, vector_output=self.vector_output, class_config=class_config, )
https://github.com/azavea/raster-vision/issues/835
 17:55:54 2019-10-01 17:55:54:rastervision.utils.files: INFO - Downloading s3://raster-vision-lf-dev/examples/test-output/21/spacenet-vegas-buildings-semantic-segmentation-pytorch/predict/buildings-semantic_segmentation/5058.tif to /opt/data/temp/tmp5903c076/tmpk2r7cdga/s3/raster-vision-lf-dev/examples/test-output/21/...
json.decoder.JSONDecodeError
def process(self, scenes, tmp_dir): evaluation = self.create_evaluation() vect_evaluation = self.create_evaluation() null_class_id = self.class_config.get_null_class_id() for scene in scenes: log.info("Computing evaluation for scene {}...".format(scene.id)) label_source = scene.ground_t...
def process(self, scenes, tmp_dir): evaluation = self.create_evaluation() vect_evaluation = self.create_evaluation() null_class_id = self.class_config.get_null_class_id() for scene in scenes: log.info("Computing evaluation for scene {}...".format(scene.id)) label_source = scene.ground_t...
https://github.com/azavea/raster-vision/issues/835
 17:55:54 2019-10-01 17:55:54:rastervision.utils.files: INFO - Downloading s3://raster-vision-lf-dev/examples/test-output/21/spacenet-vegas-buildings-semantic-segmentation-pytorch/predict/buildings-semantic_segmentation/5058.tif to /opt/data/temp/tmp5903c076/tmpk2r7cdga/s3/raster-vision-lf-dev/examples/test-output/21/...
json.decoder.JSONDecodeError
def filter_by_aoi(self, aoi_polygons): boxes = self.get_boxes() class_ids = self.get_class_ids() scores = self.get_scores() new_boxes = [] new_class_ids = [] new_scores = [] for box, class_id, score in zip(boxes, class_ids, scores): box_poly = box.to_shapely() for aoi in aoi...
def filter_by_aoi(self, aoi_polygons): boxes = self.get_boxes() class_ids = self.get_class_ids() scores = self.get_scores() new_boxes = [] new_class_ids = [] new_scores = [] for box, class_id, score in zip(boxes, class_ids, scores): box_poly = box.to_shapely() for aoi in aoi...
https://github.com/azavea/raster-vision/issues/740
Running evaluator: ObjectDetectionEvaluator... 2019-03-28 16:47:07:rastervision.evaluation.classification_evaluator: INFO - Computing evaluation for scene 01986917-30ea-4f7f-8e01-985d73b8aa2a... Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec)...
ValueError
def __init__(self, transform, image_crs, map_crs="epsg:4326"): """Construct transformer. Args: image_dataset: Rasterio DatasetReader map_crs: CRS code """ self.map_proj = pyproj.Proj(init=map_crs) self.image_proj = pyproj.Proj(image_crs) super().__init__(image_crs, map_crs, tra...
def __init__(self, transform, image_crs, map_crs="epsg:4326"): """Construct transformer. Args: image_dataset: Rasterio DatasetReader map_crs: CRS code """ self.map_proj = pyproj.Proj(init=map_crs) self.image_proj = pyproj.Proj(init=image_crs) super().__init__(image_crs, map_crs...
https://github.com/azavea/raster-vision/issues/724
Checking for existing output [####################################] 100% Saving command configuration to /opt/data/rv_root/chip/xview-object_detection/command-config.json... Saving command configuration to /opt/data/rv_root/train/xview-object-detection-mobilenet/command-config.json... Saving command configuration to ...
KeyError
def from_dataset(cls, dataset, map_crs="epsg:4326"): if dataset.crs is None: return IdentityCRSTransformer() transform = dataset.transform image_crs = dataset.crs return cls(transform, image_crs, map_crs)
def from_dataset(cls, dataset, map_crs="epsg:4326"): if dataset.crs is None: return IdentityCRSTransformer() transform = dataset.transform image_crs = dataset.crs["init"] return cls(transform, image_crs, map_crs)
https://github.com/azavea/raster-vision/issues/724
Checking for existing output [####################################] 100% Saving command configuration to /opt/data/rv_root/chip/xview-object_detection/command-config.json... Saving command configuration to /opt/data/rv_root/train/xview-object-detection-mobilenet/command-config.json... Saving command configuration to ...
KeyError
def __init__(self, image_crs=None, map_crs=None, transform=None): self.image_crs = image_crs self.map_crs = map_crs self.transform = transform
def __init__(self, image_crs=None, map_crs=None): self.image_crs = image_crs self.map_crs = map_crs
https://github.com/azavea/raster-vision/issues/707
root@122d4f0150f4:/opt/data/mar5# rastervision predict spacenet.zip example.jpg out.tif /usr/local/lib/python3.5/dist-packages/pluginbase.py:439: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).ty...
AttributeError
def get_affine_transform(self): return self.transform
def get_affine_transform(self): raise NotImplementedError()
https://github.com/azavea/raster-vision/issues/707
root@122d4f0150f4:/opt/data/mar5# rastervision predict spacenet.zip example.jpg out.tif /usr/local/lib/python3.5/dist-packages/pluginbase.py:439: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).ty...
AttributeError
def __init__(self, transform, image_crs, map_crs="epsg:4326"): """Construct transformer. Args: image_dataset: Rasterio DatasetReader map_crs: CRS code """ self.map_proj = pyproj.Proj(init=map_crs) self.image_proj = pyproj.Proj(init=image_crs) super().__init__(image_crs, map_crs...
def __init__(self, transform, image_crs, map_crs="epsg:4326"): """Construct transformer. Args: image_dataset: Rasterio DatasetReader map_crs: CRS code """ self.transform = transform self.map_proj = pyproj.Proj(init=map_crs) self.image_proj = pyproj.Proj(init=image_crs) supe...
https://github.com/azavea/raster-vision/issues/707
root@122d4f0150f4:/opt/data/mar5# rastervision predict spacenet.zip example.jpg out.tif /usr/local/lib/python3.5/dist-packages/pluginbase.py:439: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).ty...
AttributeError
def save(self, labels): """Save. Args: labels - (SemanticSegmentationLabels) labels to be saved """ local_path = get_local_path(self.uri, self.tmp_dir) make_dir(local_path, use_dirname=True) transform = self.crs_transformer.get_affine_transform() crs = self.crs_transformer.get_imag...
def save(self, labels): """Save. Args: labels - (SemanticSegmentationLabels) labels to be saved """ local_path = get_local_path(self.uri, self.tmp_dir) make_dir(local_path, use_dirname=True) # TODO: this only works if crs_transformer is RasterioCRSTransformer. # Need more general w...
https://github.com/azavea/raster-vision/issues/707
root@122d4f0150f4:/opt/data/mar5# rastervision predict spacenet.zip example.jpg out.tif /usr/local/lib/python3.5/dist-packages/pluginbase.py:439: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).ty...
AttributeError
def get_service_scale(self, service_dict): # service.scale for v2 and deploy.replicas for v3 scale = service_dict.get("scale", None) deploy_dict = service_dict.get("deploy", None) if not deploy_dict: return 1 if scale is None else scale if deploy_dict.get("mode", "replicated") != "replicate...
def get_service_scale(self, service_dict): # service.scale for v2 and deploy.replicas for v3 scale = service_dict.get("scale", None) deploy_dict = service_dict.get("deploy", None) if not deploy_dict: return 1 if scale is None else scale if deploy_dict.get("mode", "replicated") != "replicate...
https://github.com/docker/compose/issues/7671
WARNING: Some services (minecraft) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm. Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 67, in main File "compose/cli/m...
TypeError
def call_docker(args, dockeropts, environment): executable_path = find_executable("docker") if not executable_path: raise UserError(errors.docker_not_found_msg("Couldn't find `docker` binary.")) tls = dockeropts.get("--tls", False) ca_cert = dockeropts.get("--tlscacert") cert = dockeropts.g...
def call_docker(args, dockeropts, environment): executable_path = find_executable("docker") if not executable_path: raise UserError(errors.docker_not_found_msg("Couldn't find `docker` binary.")) tls = dockeropts.get("--tls", False) ca_cert = dockeropts.get("--tlscacert") cert = dockeropts.g...
https://github.com/docker/compose/issues/7180
Traceback (most recent call last): File "docker-compose", line 6, in <module> File "compose/cli/main.py", line 72, in main File "compose/cli/main.py", line 128, in perform_command File "compose/cli/main.py", line 491, in exec_command File "compose/cli/main.py", line 1469, in call_docker File "subprocess.py", line 339, ...
TypeError
def version(self): if "version" not in self.config: return V1 version = self.config["version"] if isinstance(version, dict): log.warning( 'Unexpected type for "version" key in "{}". Assuming ' '"version" is the name of a service, and defaulting to ' "Com...
def version(self): if "version" not in self.config: return V1 version = self.config["version"] if isinstance(version, dict): log.warning( 'Unexpected type for "version" key in "{}". Assuming ' '"version" is the name of a service, and defaulting to ' "Com...
https://github.com/docker/compose/issues/6036
Traceback (most recent call last): File "docker-compose", line 6, in <module> File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 121, in perform_command File "compose/cli/main.py", line 332, in config File "compose/cli/command.py", line 68, in get_config_from_options File "compose/config/conf...
TypeError
def create_container( self, one_off=False, previous_container=None, number=None, quiet=False, **override_options, ): """ Create a container for this service. If the image doesn't exist, attempt to pull it. """ # This is only necessary for `scale` and `volumes_from` # auto...
def create_container( self, one_off=False, previous_container=None, number=None, quiet=False, **override_options, ): """ Create a container for this service. If the image doesn't exist, attempt to pull it. """ # This is only necessary for `scale` and `volumes_from` # auto...
https://github.com/docker/compose/issues/6998
$ docker-compose -f badcompose.yaml up Creating ddev-d8composer-db ... done Creating ddev-d8composer-dba ... Creating ddev-d8composer-web ... Creating ddev-d8composer-dba ... done ERROR: for ddev-d8composer-web a bytes-like object is required, not 'str' ERROR: for web a bytes-like object is required, not 'str' Trac...
requests.exceptions.HTTPError
def start_container(self, container, use_network_aliases=True): self.connect_container_to_networks(container, use_network_aliases) try: container.start() except APIError as ex: expl = binarystr_to_unicode(ex.explanation) if "driver failed programming external connectivity" in expl: ...
def start_container(self, container, use_network_aliases=True): self.connect_container_to_networks(container, use_network_aliases) try: container.start() except APIError as ex: if "driver failed programming external connectivity" in ex.explanation: log.warn("Host is already in us...
https://github.com/docker/compose/issues/6998
$ docker-compose -f badcompose.yaml up Creating ddev-d8composer-db ... done Creating ddev-d8composer-dba ... Creating ddev-d8composer-web ... Creating ddev-d8composer-dba ... done ERROR: for ddev-d8composer-web a bytes-like object is required, not 'str' ERROR: for web a bytes-like object is required, not 'str' Trac...
requests.exceptions.HTTPError
def execution_context_labels(config_details, environment_file): extra_labels = [ "{0}={1}".format(LABEL_WORKING_DIR, os.path.abspath(config_details.working_dir)) ] if not use_config_from_stdin(config_details): extra_labels.append( "{0}={1}".format(LABEL_CONFIG_FILES, config_file...
def execution_context_labels(config_details, environment_file): extra_labels = [ "{0}={1}".format( LABEL_WORKING_DIR, os.path.abspath(config_details.working_dir) ), "{0}={1}".format(LABEL_CONFIG_FILES, config_files_label(config_details)), ] if environment_file is not None...
https://github.com/docker/compose/issues/7032
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')() File "/usr/lib/python3.8/site-packages/compose/cli/main.py", line 72, in main command() File "/usr/lib/python3.8/site-packages/compose/cli/main.py", l...
TypeError
def config_files_label(config_details): return ",".join( map(str, (config_file_path(c.filename) for c in config_details.config_files)) )
def config_files_label(config_details): return ",".join( map(str, (os.path.normpath(c.filename) for c in config_details.config_files)) )
https://github.com/docker/compose/issues/7032
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')() File "/usr/lib/python3.8/site-packages/compose/cli/main.py", line 72, in main command() File "/usr/lib/python3.8/site-packages/compose/cli/main.py", l...
TypeError
def check_remote_network_config(remote, local): if local.driver and remote.get("Driver") != local.driver: raise NetworkConfigChangedError(local.true_name, "driver") local_opts = local.driver_opts or {} remote_opts = remote.get("Options") or {} for k in set.union(set(remote_opts.keys()), set(loca...
def check_remote_network_config(remote, local): if local.driver and remote.get("Driver") != local.driver: raise NetworkConfigChangedError(local.true_name, "driver") local_opts = local.driver_opts or {} remote_opts = remote.get("Options") or {} for k in set.union(set(remote_opts.keys()), set(loca...
https://github.com/docker/compose/issues/6854
$ sudo -E docker-compose up --detach [16436] Failed to execute script docker-compose Traceback (most recent call last): File "bin/docker-compose", line 6, in <module> File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 127, in perform_command File "compose/cli/main.py", line 1096, in up File "...
AttributeError
def watch_events(thread_map, event_stream, presenters, thread_args): crashed_containers = set() for event in event_stream: if event["action"] == "stop": thread_map.pop(event["id"], None) if event["action"] == "die": thread_map.pop(event["id"], None) crashed_c...
def watch_events(thread_map, event_stream, presenters, thread_args): crashed_containers = set() for event in event_stream: if event["action"] == "stop": thread_map.pop(event["id"], None) if event["action"] == "die": thread_map.pop(event["id"], None) crashed_c...
https://github.com/docker/compose/issues/6745
╰─$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ╰─$ docker-compose up Creating readme_db_account_1 ... done Creating readme_account15_1 ... Creating readme_account13_1 ... Creating readme_account15_1 ... done Creating r...
requests.exceptions.HTTPError
def merge_networks(base, override): merged_networks = {} all_network_names = set(base) | set(override) base = {k: {} for k in base} if isinstance(base, list) else base override = {k: {} for k in override} if isinstance(override, list) else override for network_name in all_network_names: md =...
def merge_networks(base, override): merged_networks = {} all_network_names = set(base) | set(override) base = {k: {} for k in base} if isinstance(base, list) else base override = {k: {} for k in override} if isinstance(override, list) else override for network_name in all_network_names: md =...
https://github.com/docker/compose/issues/6525
docker-compose config Traceback (most recent call last): File "docker-compose", line 6, in <module> File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 121, in perform_command File "compose/cli/main.py", line 339, in config File "compose/cli/command.py", line 70, in get_config_from_options Fil...
TypeError
def slug(self): if not self.full_slug: return None return truncate_id(self.full_slug)
def slug(self): return truncate_id(self.full_slug)
https://github.com/docker/compose/issues/6311
$ pip install --no-cache-dir docker-compose Collecting docker-compose Downloading https://files.pythonhosted.org/packages/23/e7/3702078bb674d36e607c48177f4e7d93d6fecb13c32a8889d1172236848d/docker_compose-1.23.0-py2.py3-none-any.whl (131kB) Collecting websocket-client<1.0,>=0.32.0 (from docker-compose) Downloading https...
TypeError
def write_initial(self, msg, obj_index): if msg is None: return return self._write_noansi(msg, obj_index, "")
def write_initial(self, msg, obj_index): if msg is None: return self.stream.write( "{:<{width}} ... \r\n".format(msg + " " + obj_index, width=self.width) ) self.stream.flush()
https://github.com/docker/compose/issues/5855
Traceback (most recent call last): File "bin/docker-compose", line 6, in <module> File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 127, in perform_command File "compose/cli/main.py", line 716, in pull File "compose/project.py", line 558, in pull TypeError: sequence item 0: expected a bytes-...
TypeError
def pull( self, service_names=None, ignore_pull_failures=False, parallel_pull=False, silent=False, include_deps=False, ): services = self.get_services(service_names, include_deps) if parallel_pull: def pull_service(service): service.pull(ignore_pull_failures, True) ...
def pull( self, service_names=None, ignore_pull_failures=False, parallel_pull=False, silent=False, include_deps=False, ): services = self.get_services(service_names, include_deps) if parallel_pull: def pull_service(service): service.pull(ignore_pull_failures, True) ...
https://github.com/docker/compose/issues/5855
Traceback (most recent call last): File "bin/docker-compose", line 6, in <module> File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 127, in perform_command File "compose/cli/main.py", line 716, in pull File "compose/project.py", line 558, in pull TypeError: sequence item 0: expected a bytes-...
TypeError
def load_yaml(filename, encoding=None): try: with io.open(filename, "r", encoding=encoding) as fh: return yaml.safe_load(fh) except (IOError, yaml.YAMLError, UnicodeDecodeError) as e: if encoding is None: # Sometimes the user's locale sets an encoding that doesn't match ...
def load_yaml(filename): try: with open(filename, "r") as fh: return yaml.safe_load(fh) except (IOError, yaml.YAMLError) as e: error_name = getattr(e, "__module__", "") + "." + e.__class__.__name__ raise ConfigurationError("{}: {}".format(error_name, e))
https://github.com/docker/compose/issues/5826
Output of "docker-compose config" Traceback (most recent call last): File "docker-compose", line 6, in <module> File "compose\cli\main.py", line 71, in main File "compose\cli\main.py", line 121, in perform_command File "compose\cli\main.py", line 329, in config File "compose\cli\command.py", line 67, in get_config_from...
UnicodeDecodeError
def stream_output(output, stream): is_terminal = hasattr(stream, "isatty") and stream.isatty() stream = utils.get_output_stream(stream) all_events = [] lines = {} diff = 0 for event in utils.json_stream(output): all_events.append(event) is_progress_event = "progress" in event or...
def stream_output(output, stream): is_terminal = hasattr(stream, "isatty") and stream.isatty() stream = utils.get_output_stream(stream) all_events = [] lines = {} diff = 0 for event in utils.json_stream(output): all_events.append(event) is_progress_event = "progress" in event or...
https://github.com/docker/compose/issues/5784
Traceback (most recent call last): File "bin/docker-compose", line 6, in <module> File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 127, in perform_command File "compose/cli/main.py", line 280, in build File "compose/project.py", line 372, in build File "compose/service.py", line 1003, in bu...
UnicodeEncodeError
def print_output_event(event, stream, is_terminal): if "errorDetail" in event: raise StreamOutputError(event["errorDetail"]["message"]) terminator = "" if is_terminal and "stream" not in event: # erase current line write_to_stream("%c[2K\r" % 27, stream) terminator = "\r" ...
def print_output_event(event, stream, is_terminal): if "errorDetail" in event: raise StreamOutputError(event["errorDetail"]["message"]) terminator = "" if is_terminal and "stream" not in event: # erase current line stream.write("%c[2K\r" % 27) terminator = "\r" elif "pr...
https://github.com/docker/compose/issues/5784
Traceback (most recent call last): File "bin/docker-compose", line 6, in <module> File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 127, in perform_command File "compose/cli/main.py", line 280, in build File "compose/project.py", line 372, in build File "compose/service.py", line 1003, in bu...
UnicodeEncodeError
def get_container_data_volumes(container, volumes_option, tmpfs_option, mounts_option): """ Find the container data volumes that are in `volumes_option`, and return a mapping of volume bindings for those volumes. Anonymous volume mounts are updated in place instead. """ volumes = [] volumes_...
def get_container_data_volumes(container, volumes_option, tmpfs_option, mounts_option): """ Find the container data volumes that are in `volumes_option`, and return a mapping of volume bindings for those volumes. Anonymous volume mounts are updated in place instead. """ volumes = [] volumes...
https://github.com/docker/compose/issues/5591
➜ projectname docker-compose -f docker-compose.local.yml up Recreating 12396073747d_projectname_nginx_1 ... projectname_projectname_1 is up-to-date ERROR: for 12396073747d_projectname_nginx_1 'NoneType' object has no attribute 'get' ERROR: for nginx 'NoneType' object has no attribute 'get' Traceback (most recent c...
AttributeError
def substitute(self, mapping): # Helper function for .sub() def convert(mo): named = mo.group("named") or mo.group("braced") braced = mo.group("braced") if braced is not None: sep = mo.group("sep") result = self.process_braced_group(braced, sep, mapping) ...
def substitute(self, mapping): # Helper function for .sub() def convert(mo): named = mo.group("named") or mo.group("braced") braced = mo.group("braced") if braced is not None: sep = mo.group("sep") result = self.process_braced_group(braced, sep, mapping) ...
https://github.com/docker/compose/issues/5549
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 71, in main command() File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 118, in perform_command handler(command, options, command_opt...
UnicodeDecodeError
def convert(mo): named = mo.group("named") or mo.group("braced") braced = mo.group("braced") if braced is not None: sep = mo.group("sep") result = self.process_braced_group(braced, sep, mapping) if result: return result if named is not None: val = mapping[nam...
def convert(mo): named = mo.group("named") or mo.group("braced") braced = mo.group("braced") if braced is not None: sep = mo.group("sep") result = self.process_braced_group(braced, sep, mapping) if result: return result if named is not None: val = mapping[nam...
https://github.com/docker/compose/issues/5549
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 71, in main command() File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 118, in perform_command handler(command, options, command_opt...
UnicodeDecodeError
def serialize_string(dumper, data): """Ensure boolean-like strings are quoted in the output and escape $ characters""" representer = dumper.represent_str if six.PY3 else dumper.represent_unicode if isinstance(data, six.binary_type): data = data.decode("utf-8") data = data.replace("$", "$$") ...
def serialize_string(dumper, data): """Ensure boolean-like strings are quoted in the output and escape $ characters""" representer = dumper.represent_str if six.PY3 else dumper.represent_unicode data = data.replace("$", "$$") if data.lower() in ("y", "n", "yes", "no", "on", "off", "true", "false"): ...
https://github.com/docker/compose/issues/5549
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 71, in main command() File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 118, in perform_command handler(command, options, command_opt...
UnicodeDecodeError
def serialize_config(config, image_digests=None): return yaml.safe_dump( denormalize_config(config, image_digests), default_flow_style=False, indent=2, width=80, allow_unicode=True, )
def serialize_config(config, image_digests=None): return yaml.safe_dump( denormalize_config(config, image_digests), default_flow_style=False, indent=2, width=80, )
https://github.com/docker/compose/issues/5549
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 71, in main command() File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 118, in perform_command handler(command, options, command_opt...
UnicodeDecodeError
def project_from_options(project_dir, options): environment = Environment.from_env_file(project_dir) set_parallel_limit(environment) host = options.get("--host") if host is not None: host = host.lstrip("=") return get_project( project_dir, get_config_path_from_options(projec...
def project_from_options(project_dir, options): environment = Environment.from_env_file(project_dir) host = options.get("--host") if host is not None: host = host.lstrip("=") return get_project( project_dir, get_config_path_from_options(project_dir, options, environment), ...
https://github.com/docker/compose/issues/1828
Exception in thread Thread-5: Traceback (most recent call last): File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 810, in __bootstrap_inner File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 763, in run File "/compose/build/docker-compose/out00-PYZ.pyz/compose.utils", line 31, in inner...
IOError
def producer(obj, func, results, limiter): """ The entry point for a producer thread which runs func on a single object. Places a tuple on the results queue once func has either returned or raised. """ with limiter, GlobalLimit.global_limiter: try: result = func(obj) ...
def producer(obj, func, results, limiter): """ The entry point for a producer thread which runs func on a single object. Places a tuple on the results queue once func has either returned or raised. """ with limiter: try: result = func(obj) results.put((obj, result, No...
https://github.com/docker/compose/issues/1828
Exception in thread Thread-5: Traceback (most recent call last): File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 810, in __bootstrap_inner File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 763, in run File "/compose/build/docker-compose/out00-PYZ.pyz/compose.utils", line 31, in inner...
IOError
def get_project( project_dir, config_path=None, project_name=None, verbose=False, host=None, tls_config=None, environment=None, override_dir=None, ): if not environment: environment = Environment.from_env_file(project_dir) config_details = config.find(project_dir, config_...
def get_project( project_dir, config_path=None, project_name=None, verbose=False, host=None, tls_config=None, environment=None, override_dir=None, ): if not environment: environment = Environment.from_env_file(project_dir) config_details = config.find(project_dir, config_...
https://github.com/docker/compose/issues/1828
Exception in thread Thread-5: Traceback (most recent call last): File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 810, in __bootstrap_inner File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 763, in run File "/compose/build/docker-compose/out00-PYZ.pyz/compose.utils", line 31, in inner...
IOError
def producer(obj, func, results, limiter): """ The entry point for a producer thread which runs func on a single object. Places a tuple on the results queue once func has either returned or raised. """ with limiter, GlobalLimit.global_limiter: try: result = func(obj) ...
def producer(obj, func, results, limiter): """ The entry point for a producer thread which runs func on a single object. Places a tuple on the results queue once func has either returned or raised. """ with limiter, global_limiter: try: result = func(obj) results.put(...
https://github.com/docker/compose/issues/1828
Exception in thread Thread-5: Traceback (most recent call last): File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 810, in __bootstrap_inner File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 763, in run File "/compose/build/docker-compose/out00-PYZ.pyz/compose.utils", line 31, in inner...
IOError
def __init__( self, name, services, client, networks=None, volumes=None, config_version=None, parallel_limit=None, ): self.name = name self.services = services self.client = client self.volumes = volumes or ProjectVolumes({}) self.networks = networks or ProjectNetwork...
def __init__( self, name, services, client, networks=None, volumes=None, config_version=None ): self.name = name self.services = services self.client = client self.volumes = volumes or ProjectVolumes({}) self.networks = networks or ProjectNetworks({}, False) self.config_version = config_vers...
https://github.com/docker/compose/issues/1828
Exception in thread Thread-5: Traceback (most recent call last): File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 810, in __bootstrap_inner File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 763, in run File "/compose/build/docker-compose/out00-PYZ.pyz/compose.utils", line 31, in inner...
IOError
def from_config(cls, name, config_data, client, global_parallel_limit=None): """ Construct a Project from a config.Config object. """ use_networking = config_data.version and config_data.version != V1 networks = build_networks(name, config_data, client) project_networks = ProjectNetworks.from_se...
def from_config(cls, name, config_data, client): """ Construct a Project from a config.Config object. """ use_networking = config_data.version and config_data.version != V1 networks = build_networks(name, config_data, client) project_networks = ProjectNetworks.from_services( config_data....
https://github.com/docker/compose/issues/1828
Exception in thread Thread-5: Traceback (most recent call last): File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 810, in __bootstrap_inner File "/compose/build/docker-compose/out00-PYZ.pyz/threading", line 763, in run File "/compose/build/docker-compose/out00-PYZ.pyz/compose.utils", line 31, in inner...
IOError
def to_int(s): # We must be able to handle octal representation for `mode` values notably if six.PY3 and re.match("^0[0-9]+$", s.strip()): s = "0o" + s[1:] try: return int(s, base=0) except ValueError: raise ValueError('"{}" is not a valid integer'.format(s))
def to_int(s): # We must be able to handle octal representation for `mode` values notably if six.PY3 and re.match("^0[0-9]+$", s.strip()): s = "0o" + s[1:] return int(s, base=0)
https://github.com/docker/compose/issues/5527
$ docker-compose pull Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> load_entry_point('docker-compose==1.18.0', 'console_scripts', 'docker-compose')() File "/usr/lib/python3.6/site-packages/compose/cli/main.py", line 71, in main command() File "/usr/lib/python3.6/site-packages/c...
ValueError
def convert(self, path, value): for rexp in self.map.keys(): if rexp.match(path): try: return self.map[rexp](value) except ValueError as e: raise ConfigurationError( "Error while attempting to convert {} to appropriate type: {}".for...
def convert(self, path, value): for rexp in self.map.keys(): if rexp.match(path): return self.map[rexp](value) return value
https://github.com/docker/compose/issues/5527
$ docker-compose pull Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> load_entry_point('docker-compose==1.18.0', 'console_scripts', 'docker-compose')() File "/usr/lib/python3.6/site-packages/compose/cli/main.py", line 71, in main command() File "/usr/lib/python3.6/site-packages/c...
ValueError
def _get_container_create_options( self, override_options, number, one_off=False, previous_container=None ): add_config_hash = not one_off and not override_options container_options = dict( (k, self.options[k]) for k in DOCKER_CONFIG_KEYS if k in self.options ) override_volumes = override_o...
def _get_container_create_options( self, override_options, number, one_off=False, previous_container=None ): add_config_hash = not one_off and not override_options container_options = dict( (k, self.options[k]) for k in DOCKER_CONFIG_KEYS if k in self.options ) override_volumes = override_o...
https://github.com/docker/compose/issues/5489
compose.cli.verbose_proxy.proxy_callable: docker create_host_config <- (device_read_iops=None, mem_swappiness=None, links=[], oom_score_adj=None, blkio_weight=None, cpu_count=None, cpuset_cpus=None, dns_search=None, pid_mode=None, init_path=None, log_config={'Type': u'', 'Config': {}}, cpu_quota=None, read_only=None, c...
docker.errors.InvalidVersion
def process_service(service_config): working_dir = service_config.working_dir service_dict = dict(service_config.config) if "env_file" in service_dict: service_dict["env_file"] = [ expand_path(working_dir, path) for path in to_list(service_dict["env_file"]) ] if "build" in ...
def process_service(service_config): working_dir = service_config.working_dir service_dict = dict(service_config.config) if "env_file" in service_dict: service_dict["env_file"] = [ expand_path(working_dir, path) for path in to_list(service_dict["env_file"]) ] if "build" in ...
https://github.com/docker/compose/issues/5336
Traceback (most recent call last): File "/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 68, in main command() File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 121, in perform_command handler(command, command_options) File "/...
ValueError
def _parse_oneof_validator(error): """oneOf has multiple schemas, so we need to reason about which schema, sub schema or constraint the validation is failing on. Inspecting the context value of a ValidationError gives us information about which sub schema failed and which kind of error it is. """ ...
def _parse_oneof_validator(error): """oneOf has multiple schemas, so we need to reason about which schema, sub schema or constraint the validation is failing on. Inspecting the context value of a ValidationError gives us information about which sub schema failed and which kind of error it is. """ ...
https://github.com/docker/compose/issues/5211
$ docker-compose -f example.yml build Traceback (most recent call last): File "/home/pupssman/venv/py2/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/home/pupssman/venv/py2/local/lib/python2.7/site-packages/compose/cli/main.py", line 68, in main command() File "/home/pupssman/venv/py2/local/lib/pytho...
AttributeError
def merge_ports(md, base, override): def parse_sequence_func(seq): acc = [] for item in seq: acc.extend(ServicePort.parse(item)) return to_mapping(acc, "merge_field") field = "ports" if not md.needs_merge(field): return merged = parse_sequence_func(md.base....
def merge_ports(md, base, override): def parse_sequence_func(seq): acc = [] for item in seq: acc.extend(ServicePort.parse(item)) return to_mapping(acc, "merge_field") field = "ports" if not md.needs_merge(field): return merged = parse_sequence_func(md.base....
https://github.com/docker/compose/issues/4943
(master) hexlet$ make compose-bash docker-compose run web bash Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.5/dist-packages/compose/cli/main.py", line 68, in main command() File "/usr/local/lib/python3.5/dist-packages/compose...
TypeError
def get_config_path_from_options(base_dir, options, environment): def unicode_paths(paths): return [ p.decode("utf-8") if isinstance(p, six.binary_type) else p for p in paths ] file_option = options.get("--file") if file_option: return unicode_paths(file_option) con...
def get_config_path_from_options(base_dir, options, environment): file_option = options.get("--file") if file_option: return file_option config_files = environment.get("COMPOSE_FILE") if config_files: pathsep = environment.get("COMPOSE_PATH_SEPARATOR", os.pathsep) return config_...
https://github.com/docker/compose/issues/4376
$ docker-compose -f 就吃饭/docker-compose.yml config/home/joffrey/work/compose/compose/config/config.py:234: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if filenames == ['-']: Traceback (most recent call last): File "/home/joffrey/.envs/compose/...
UnicodeDecodeError
def log_api_error(e, client_version): explanation = e.explanation if isinstance(explanation, six.binary_type): explanation = explanation.decode("utf-8") if "client is newer than server" not in explanation: log.error(explanation) return version = API_VERSION_TO_ENGINE_VERSION.ge...
def log_api_error(e, client_version): if b"client is newer than server" not in e.explanation: log.error(e.explanation) return version = API_VERSION_TO_ENGINE_VERSION.get(client_version) if not version: # They've set a custom API version log.error(e.explanation) retur...
https://github.com/docker/compose/issues/4580
$ docker-compose -f prod.yaml exec proxy sh Traceback (most recent call last): File "/home/yajo/.local/lib/python3.5/site-packages/docker/api/client.py", line 214, in _raise_for_status response.raise_for_status() File "/home/yajo/.local/lib/python3.5/site-packages/requests/models.py", line 862, in raise_for_status rais...
requests.exceptions.HTTPError
def denormalize_service_dict(service_dict, version): service_dict = service_dict.copy() if "restart" in service_dict: service_dict["restart"] = types.serialize_restart_spec(service_dict["restart"]) if version == V1 and "network_mode" not in service_dict: service_dict["network_mode"] = "bri...
def denormalize_service_dict(service_dict, version): service_dict = service_dict.copy() if "restart" in service_dict: service_dict["restart"] = types.serialize_restart_spec(service_dict["restart"]) if version == V1 and "network_mode" not in service_dict: service_dict["network_mode"] = "bri...
https://github.com/docker/compose/issues/4479
$ docker-compose config Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/site-packages/compose/cli/main.py", line 88, in main command() File "/usr/local/lib/python2.7/site-packages/compose/cli/main.py", line 134, in perform_com...
AttributeError
def repr(self): return dict([(k, v) for k, v in self._asdict().items() if v is not None])
def repr(self): return dict( source=self.source, target=self.target, uid=self.uid, gid=self.gid, mode=self.mode, )
https://github.com/docker/compose/issues/4479
$ docker-compose config Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/site-packages/compose/cli/main.py", line 88, in main command() File "/usr/local/lib/python2.7/site-packages/compose/cli/main.py", line 134, in perform_com...
AttributeError
def finalize_service(service_config, service_names, version, environment): service_dict = dict(service_config.config) if "environment" in service_dict or "env_file" in service_dict: service_dict["environment"] = resolve_environment(service_dict, environment) service_dict.pop("env_file", None) ...
def finalize_service(service_config, service_names, version, environment): service_dict = dict(service_config.config) if "environment" in service_dict or "env_file" in service_dict: service_dict["environment"] = resolve_environment(service_dict, environment) service_dict.pop("env_file", None) ...
https://github.com/docker/compose/issues/4463
$ docker-compose up Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 88, in main File "compose/cli/main.py", line 137, in perform_command File "compose/cli/command.py", line 36, in project_from_options File "compose/cli/command.py", line 115, in get_project ...
AttributeError
def repr(self): return dict( source=self.source, target=self.target, uid=self.uid, gid=self.gid, mode=self.mode, )
def repr(self): if self.target == self.alias: return self.target return "{s.target}:{s.alias}".format(s=self)
https://github.com/docker/compose/issues/4463
$ docker-compose up Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 88, in main File "compose/cli/main.py", line 137, in perform_command File "compose/cli/command.py", line 36, in project_from_options File "compose/cli/command.py", line 115, in get_project ...
AttributeError
def merge_service_dicts(base, override, version): md = MergeDict(base, override) md.merge_mapping("environment", parse_environment) md.merge_mapping("labels", parse_labels) md.merge_mapping("ulimits", parse_ulimits) md.merge_mapping("networks", parse_networks) md.merge_sequence("links", Service...
def merge_service_dicts(base, override, version): md = MergeDict(base, override) md.merge_mapping("environment", parse_environment) md.merge_mapping("labels", parse_labels) md.merge_mapping("ulimits", parse_ulimits) md.merge_mapping("networks", parse_networks) md.merge_sequence("links", Service...
https://github.com/docker/compose/issues/4103
docker-compose up Traceback (most recent call last): File "<string>", line 3, in <module> File "compose/cli/main.py", line 65, in main File "compose/cli/main.py", line 114, in perform_command File "compose/cli/command.py", line 36, in project_from_options File "compose/cli/command.py", line 103, in get_project File "co...
AttributeError
def format_environment(environment): def format_env(key, value): if value is None: return key if isinstance(value, six.binary_type): value = value.decode("utf-8") return "{key}={value}".format(key=key, value=value) return [format_env(*item) for item in environmen...
def format_environment(environment): def format_env(key, value): if value is None: return key return "{key}={value}".format(key=key, value=value) return [format_env(*item) for item in environment.items()]
https://github.com/docker/compose/issues/3963
Traceback (most recent call last): File "<string>", line 3, in <module> File "compose/cli/main.py", line 56, in main File "compose/cli/docopt_command.py", line 23, in sys_dispatch File "compose/cli/docopt_command.py", line 26, in dispatch File "compose/cli/main.py", line 191, in perform_command File "compose/cli/main.p...
UnicodeDecodeError
def format_env(key, value): if value is None: return key if isinstance(value, six.binary_type): value = value.decode("utf-8") return "{key}={value}".format(key=key, value=value)
def format_env(key, value): if value is None: return key return "{key}={value}".format(key=key, value=value)
https://github.com/docker/compose/issues/3963
Traceback (most recent call last): File "<string>", line 3, in <module> File "compose/cli/main.py", line 56, in main File "compose/cli/docopt_command.py", line 23, in sys_dispatch File "compose/cli/docopt_command.py", line 26, in dispatch File "compose/cli/main.py", line 191, in perform_command File "compose/cli/main.p...
UnicodeDecodeError
def wait_on_exit(container): try: exit_code = container.wait() return "%s exited with code %s\n" % (container.name, exit_code) except APIError as e: return "Unexpected API error for %s (HTTP code %s)\nResponse body:\n%s\n" % ( container.name, e.response.status_cod...
def wait_on_exit(container): exit_code = container.wait() return "%s exited with code %s\n" % (container.name, exit_code)
https://github.com/docker/compose/issues/3888
Exception in thread Thread-9: Traceback (most recent call last): File "threading.py", line 810, in __bootstrap_inner File "threading.py", line 763, in run File "compose/cli/log_printer.py", line 149, in tail_container_logs File "compose/cli/log_printer.py", line 179, in wait_on_exit File "compose/container.py", line 23...
APIError
def get_project( project_dir, config_path=None, project_name=None, verbose=False, host=None, tls_config=None, environment=None, ): if not environment: environment = Environment.from_env_file(project_dir) config_details = config.find(project_dir, config_path, environment) ...
def get_project( project_dir, config_path=None, project_name=None, verbose=False, host=None, tls_config=None, environment=None, ): if not environment: environment = Environment.from_env_file(project_dir) config_details = config.find(project_dir, config_path, environment) ...
https://github.com/docker/compose/issues/3779
➜ ehnv git:(dev) docker-compose up Traceback (most recent call last): File "<string>", line 3, in <module> File "compose/cli/main.py", line 60, in main File "compose/cli/main.py", line 108, in perform_command File "compose/cli/command.py", line 35, in project_from_options File "compose/cli/command.py", line 112, in ge...
requests.exceptions.ConnectionError
def input(prompt): """ Version of input (raw_input in Python 2) which forces a flush of sys.stdout to avoid problems where the prompt fails to appear due to line buffering """ sys.stdout.write(prompt) sys.stdout.flush() return sys.stdin.readline().rstrip("\n")
def input(prompt): """ Version of input (raw_input in Python 2) which forces a flush of sys.stdout to avoid problems where the prompt fails to appear due to line buffering """ sys.stdout.write(prompt) sys.stdout.flush() return sys.stdin.readline().rstrip(b"\n")
https://github.com/docker/compose/issues/3576
Traceback (most recent call last): File "/opt/venvs/docker-compose/bin/docker-compose", line 9, in <module> load_entry_point('docker-compose==1.8.0.dev0', 'console_scripts', 'docker-compose')() File "/opt/venvs/docker-compose/lib64/python3.5/site-packages/compose/cli/main.py", line 58, in main command() File "/opt/venv...
TypeError
def line_splitter(buffer, separator="\n"): index = buffer.find(six.text_type(separator)) if index == -1: return None return buffer[: index + 1], buffer[index + 1 :]
def line_splitter(buffer, separator="\n"): index = buffer.find(six.text_type(separator)) if index == -1: return None, None return buffer[: index + 1], buffer[index + 1 :]
https://github.com/docker/compose/issues/2398
$ docker-compose -f pep-wilma.yml build pepwilma Building pepwilma Step 0 : FROM node:0.10-slim ---> 04e511e59c2e [...] Step 16 : ADD https://raw.githubusercontent.com/Bitergia/docker/master/utils/entrypoint-common.sh / Traceback (most recent call last): File "/usr/bin/docker-compose", line 9, in <module> load_entry_po...
ValueError
def split_buffer(stream, splitter=None, decoder=lambda a: a): """Given a generator which yields strings and a splitter function, joins all input, splits on the separator and yields each chunk. Unlike string.split(), each chunk includes the trailing separator, except for the last one if none was found o...
def split_buffer(stream, splitter=None, decoder=lambda a: a): """Given a generator which yields strings and a splitter function, joins all input, splits on the separator and yields each chunk. Unlike string.split(), each chunk includes the trailing separator, except for the last one if none was found o...
https://github.com/docker/compose/issues/2398
$ docker-compose -f pep-wilma.yml build pepwilma Building pepwilma Step 0 : FROM node:0.10-slim ---> 04e511e59c2e [...] Step 16 : ADD https://raw.githubusercontent.com/Bitergia/docker/master/utils/entrypoint-common.sh / Traceback (most recent call last): File "/usr/bin/docker-compose", line 9, in <module> load_entry_po...
ValueError
def json_splitter(buffer): """Attempt to parse a json object from a buffer. If there is at least one object, return it and the rest of the buffer, otherwise return None. """ try: obj, index = json_decoder.raw_decode(buffer) rest = buffer[json.decoder.WHITESPACE.match(buffer, index).end()...
def json_splitter(buffer): """Attempt to parse a json object from a buffer. If there is at least one object, return it and the rest of the buffer, otherwise return None. """ try: obj, index = json_decoder.raw_decode(buffer) rest = buffer[json.decoder.WHITESPACE.match(buffer, index).end()...
https://github.com/docker/compose/issues/2398
$ docker-compose -f pep-wilma.yml build pepwilma Building pepwilma Step 0 : FROM node:0.10-slim ---> 04e511e59c2e [...] Step 16 : ADD https://raw.githubusercontent.com/Bitergia/docker/master/utils/entrypoint-common.sh / Traceback (most recent call last): File "/usr/bin/docker-compose", line 9, in <module> load_entry_po...
ValueError
def json_stream(stream): """Given a stream of text, return a stream of json objects. This handles streams which are inconsistently buffered (some entries may be newline delimited, and others are not). """ return split_buffer(stream, json_splitter, json_decoder.decode)
def json_stream(stream): """Given a stream of text, return a stream of json objects. This handles streams which are inconsistently buffered (some entries may be newline delimited, and others are not). """ return split_buffer(stream_as_text(stream), json_splitter, json_decoder.decode)
https://github.com/docker/compose/issues/2398
$ docker-compose -f pep-wilma.yml build pepwilma Building pepwilma Step 0 : FROM node:0.10-slim ---> 04e511e59c2e [...] Step 16 : ADD https://raw.githubusercontent.com/Bitergia/docker/master/utils/entrypoint-common.sh / Traceback (most recent call last): File "/usr/bin/docker-compose", line 9, in <module> load_entry_po...
ValueError