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 __init__( self, data: RegressionData, kernel: Kernel, mean_function: Optional[MeanFunction] = None, noise_variance: float = 1.0, ): likelihood = gpflow.likelihoods.Gaussian(noise_variance) _, Y_data = data super().__init__(kernel, likelihood, mean_function, num_latent_gps=Y_data.shap...
def __init__( self, data: RegressionData, kernel: Kernel, mean_function: Optional[MeanFunction] = None, noise_variance: float = 1.0, ): likelihood = gpflow.likelihoods.Gaussian(noise_variance) _, Y_data = data super().__init__(kernel, likelihood, mean_function, num_latent_gps=Y_data.shap...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, inducing_variable: Optional[InducingPoints] = None, ): """ data is a tuple of X, Y with X, a data matrix, size [N, D] ...
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, inducing_variable: Optional[InducingPoints] = None, ): """ data is a tuple of X, Y with X, a data matrix, size [N, D] ...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError
def __init__( self, data: RegressionData, kernel: Kernel, inducing_variable: InducingPoints, *, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, noise_variance: float = 1.0, ): """ `data`: a tuple of (X, Y), where the inputs X has shape [N, D] ...
def __init__( self, data: RegressionData, kernel: Kernel, inducing_variable: InducingPoints, *, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, noise_variance: float = 1.0, ): """ `data`: a tuple of (X, Y), where the inputs X has shape [N, D] ...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, ): """ data = (X, Y) contains the input points [N, D] and the observations [N, P] kernel, likelihood, mean_function ar...
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, ): """ data = (X, Y) contains the input points [N, D] and the observations [N, P] kernel, likelihood, mean_function ar...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, ): """ data = (X, Y) contains the input points [N, D] and the observations [N, P] kernel, likelihood, mean_function ar...
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, ): """ data = (X, Y) contains the input points [N, D] and the observations [N, P] kernel, likelihood, mean_function ar...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, ): """ data is a tuple of X, Y with X, a data matrix, size [N, D] and Y, a data matrix, size [N, R] kernel, likelihood...
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, ): """ data is a tuple of X, Y with X, a data matrix, size [N, D] and Y, a data matrix, size [N, R] kernel, likelihood...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError
def K(self, X: tf.Tensor, X2: Optional[tf.Tensor] = None) -> tf.Tensor: sig_X = self._sigmoids(X) # N1 x 1 x Ncp sig_X2 = self._sigmoids(X2) if X2 is not None else sig_X # N2 x 1 x Ncp # `starters` are the sigmoids going from 0 -> 1, whilst `stoppers` go # from 1 -> 0, dimensions are N1 x N2 x Ncp ...
def K(self, X: tf.Tensor, X2: Optional[tf.Tensor] = None) -> tf.Tensor: sig_X = self._sigmoids(X) # N x 1 x Ncp sig_X2 = self._sigmoids(X2) if X2 is not None else sig_X # `starters` are the sigmoids going from 0 -> 1, whilst `stoppers` go # from 1 -> 0, dimensions are N x N x Ncp starters = sig_X ...
https://github.com/GPflow/GPflow/issues/1440
--------------------------------------------------------------------------- InvalidArgumentError Traceback (most recent call last) <ipython-input-25-d1dbc7941bae> in <module> ----> 1 k(X, xx) ~/Code/GPflow/gpflow/kernels/base.py in __call__(self, X, X2, full_cov, presliced) 170 171 else: -...
InvalidArgumentError
def autoflow(*af_args, **af_kwargs): def autoflow_wrapper(method): @functools.wraps(method) def runnable(obj, *args, **kwargs): if not isinstance(obj, Node): raise GPflowError("AutoFlow works only with node-like objects.") if obj.is_built_coherence(obj.graph) ...
def autoflow(*af_args, **af_kwargs): def autoflow_wrapper(method): @functools.wraps(method) def runnable(obj, *args, **kwargs): if not isinstance(obj, Node): raise GPflowError("AutoFlow works only with node-like objects.") if obj.is_built_coherence(obj.graph) ...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def autoflow_wrapper(method): @functools.wraps(method) def runnable(obj, *args, **kwargs): if not isinstance(obj, Node): raise GPflowError("AutoFlow works only with node-like objects.") if obj.is_built_coherence(obj.graph) is Build.NO: raise GPflowError('Not built with "{...
def autoflow_wrapper(method): @functools.wraps(method) def runnable(obj, *args, **kwargs): if not isinstance(obj, Node): raise GPflowError("AutoFlow works only with node-like objects.") if obj.is_built_coherence(obj.graph) is Build.NO: raise GPflowError('Not built with "{...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def runnable(obj, *args, **kwargs): if not isinstance(obj, Node): raise GPflowError("AutoFlow works only with node-like objects.") if obj.is_built_coherence(obj.graph) is Build.NO: raise GPflowError('Not built with "{graph}".'.format(graph=obj.graph)) name = method.__name__ store = AutoF...
def runnable(obj, *args, **kwargs): if not isinstance(obj, Node): raise GPflowError("AutoFlow works only with node-like objects.") if obj.is_built_coherence(obj.graph) is Build.NO: raise GPflowError('Not built with "{graph}".'.format(graph=obj.graph)) name = method.__name__ store = AutoF...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def initialize_variables(variables=None, session=None, force=False, **run_kwargs): session = tf.get_default_session() if session is None else session if variables is None: initializer = tf.global_variables_initializer() else: if force: vars_for_init = list(_initializable_tensors(...
def initialize_variables(variables=None, session=None, force=False, **run_kwargs): session = tf.get_default_session() if session is None else session if variables is None: initializer = tf.global_variables_initializer() else: if force: initializer = tf.variables_initializer(varia...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def _clear(self): self._reset_name() self._initial_value_tensor = None self._dataholder_tensor = None self._is_initialized_tensor = None
def _clear(self): self._reset_name() self._initial_value_tensor = None self._dataholder_tensor = None
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def _build(self): tensor = self._build_parameter() self._dataholder_tensor = tensor self._is_initialized_tensor = tf.is_variable_initialized(tensor)
def _build(self): self._dataholder_tensor = self._build_parameter() # pylint: disable=W0201
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def _init_parameter_defaults(self): self._initial_value_tensor = None self._dataholder_tensor = None self._is_initialized_tensor = None
def _init_parameter_defaults(self): self._initial_value_tensor = None self._dataholder_tensor = None
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def initializables(self): if self._externally_defined: return None return [(self.parameter_tensor, self.is_initialized_tensor)]
def initializables(self): if self._externally_defined: return None return [self.parameter_tensor]
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def read_value(self, session=None): if session is not None and not isinstance(session, tf.Session): raise ValueError("TensorFlow session expected as an argument.") if session is None and self._externally_defined: raise GPflowError("Externally defined parameter requires session.") elif sessio...
def read_value(self, session=None): if session is not None: if not isinstance(session, tf.Session): raise ValueError("TensorFlow session expected as session argument.") is_built = self.is_built_coherence(session.graph) if is_built is Build.YES: return self._read_param...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def _clear(self): self._reset_name() self._externally_defined = False self._is_initialized_tensor = None self._initial_value_tensor = None self._unconstrained_tensor = None self._constrained_tensor = None self._prior_tensor = None
def _clear(self): self._reset_name() self._externally_defined = False # pylint: disable=W0201 self._initial_value_tensor = None # pylint: disable=W0201 self._unconstrained_tensor = None # pylint: disable=W0201 self._constrained_tensor = None # pylint: disable=W0201 self._prior_tensor = None ...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def _build(self): unconstrained = self._build_parameter() constrained = self._build_constrained(unconstrained) prior = self._build_prior(unconstrained, constrained) self._is_initialized_tensor = tf.is_variable_initialized(unconstrained) self._unconstrained_tensor = unconstrained self._constrain...
def _build(self): unconstrained = self._build_parameter() constrained = self._build_constrained(unconstrained) prior = self._build_prior(unconstrained, constrained) self._unconstrained_tensor = unconstrained # pylint: disable=W0201 self._constrained_tensor = constrained # pylint: disable=W0201 ...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def _build_parameter(self): if self._externally_defined: self._check_tensor_trainable(self.parameter_tensor) return self.parameter_tensor name = self._parameter_name() tensor = misc.get_variable_by_name(name) if tensor is not None: raise GPflowError( 'Tensor with nam...
def _build_parameter(self): if self._externally_defined: self._check_tensor_trainable(self.parameter_tensor) return self.parameter_tensor name = self._parameter_name() tensor = misc.get_variable_by_name(name) if tensor is not None: raise GPflowError( 'Tensor with nam...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def _init_parameter_defaults(self): self._is_initialized_tensor = None self._initial_value_tensor = None self._unconstrained_tensor = None self._prior_tensor = None self._constrained_tensor = None
def _init_parameter_defaults(self): self._initial_value_tensor = None self._unconstrained_tensor = None self._prior_tensor = None self._constrained_tensor = None
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def minimize( self, model, session=None, var_list=None, feed_dict=None, maxiter=1000, initialize=False, anchor=True, **kwargs, ): """ Minimizes objective function of the model. :param model: GPflow model with objective tensor. :param session: Session where optimizati...
def minimize( self, model, session=None, var_list=None, feed_dict=None, maxiter=1000, initialize=True, anchor=True, **kwargs, ): """ Minimizes objective function of the model. :param model: GPflow model with objective tensor. :param session: Session where optimizatio...
https://github.com/GPflow/GPflow/issues/561
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-e3c07a8fceb7> in <module>() 10 np.random.randn(M, D), 11 minibatch_size=2) ---> 12 mode...
AttributeError
def prob_is_largest(self, Y, mu, var, gh_x, gh_w): # work out what the mean and variance is of the indicated latent function. oh_on = tf.cast( tf.one_hot(tf.reshape(Y, (-1,)), self.num_classes, 1.0, 0.0), tf.float64 ) mu_selected = tf.reduce_sum(oh_on * mu, 1) var_selected = tf.reduce_sum(oh...
def prob_is_largest(self, Y, mu, var, gh_x, gh_w): # work out what the mean and variance is of the indicated latent function. oh_on = tf.cast( tf.one_hot(tf.reshape(Y, (-1,)), self.num_classes, 1.0, 0.0), tf.float64 ) mu_selected = tf.reduce_sum(oh_on * mu, 1) var_selected = tf.reduce_sum(oh...
https://github.com/GPflow/GPflow/issues/161
python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-5-e4eebd086840> in <module>() 1 m.kern.white.variance.fixed = True 2 m.Z.fixed = True ----> 3 _ = m.optimize() /Users/danmarthaler/GPflow/GPflow/...
ValueError
def __call__(self, tf_method): @wraps(tf_method) def runnable(instance, *np_args): graph_name = "_" + tf_method.__name__ + "_graph" if not hasattr(instance, graph_name): if instance._needs_recompile: instance._compile() # ensures free_vars is up-to-date. ...
def __call__(self, tf_method): @wraps(tf_method) def runnable(instance, *np_args): graph_name = "_" + tf_method.__name__ + "_graph" if not hasattr(instance, graph_name): instance._compile() self.tf_args = [tf.placeholder(*a) for a in self.tf_arg_tuples] with i...
https://github.com/GPflow/GPflow/issues/54
Traceback (most recent call last): File "/Users/mqbssaby/PrivateProjects/BranchedGP/runfile.py", line 29, in <module> [mu,var] = m.predict_f(X) File "/Users/mqbssaby/pythonlibs/GPflow/GPflow/model.py", line 82, in runnable return instance._session.run(graph, feed_dict=feed_dict) File "/Users/mqbssaby/anaconda/lib/pytho...
ValueError
def runnable(instance, *np_args): graph_name = "_" + tf_method.__name__ + "_graph" if not hasattr(instance, graph_name): if instance._needs_recompile: instance._compile() # ensures free_vars is up-to-date. self.tf_args = [tf.placeholder(*a) for a in self.tf_arg_tuples] with ...
def runnable(instance, *np_args): graph_name = "_" + tf_method.__name__ + "_graph" if not hasattr(instance, graph_name): instance._compile() self.tf_args = [tf.placeholder(*a) for a in self.tf_arg_tuples] with instance.tf_mode(): graph = tf_method(instance, *self.tf_args) ...
https://github.com/GPflow/GPflow/issues/54
Traceback (most recent call last): File "/Users/mqbssaby/PrivateProjects/BranchedGP/runfile.py", line 29, in <module> [mu,var] = m.predict_f(X) File "/Users/mqbssaby/pythonlibs/GPflow/GPflow/model.py", line 82, in runnable return instance._session.run(graph, feed_dict=feed_dict) File "/Users/mqbssaby/anaconda/lib/pytho...
ValueError
def browse(self, uri): logger.debug("Browsing files at: %s", uri) result = [] local_path = path.uri_to_path(uri) if str(local_path) == "root": return list(self._get_media_dirs_refs()) if not self._is_in_basedir(local_path): logger.warning( "Rejected attempt to browse pa...
def browse(self, uri): logger.debug("Browsing files at: %s", uri) result = [] local_path = path.uri_to_path(uri) if str(local_path) == "root": return list(self._get_media_dirs_refs()) if not self._is_in_basedir(local_path): logger.warning( "Rejected attempt to browse pa...
https://github.com/mopidy/mopidy/issues/1906
FileBackend-2 DEBUG 2020-05-07 14:06:45,889 Browsing files at: file:///home/nick/Music/Tall%20Ships%20-%20Chemistry.mp3 Core-7 ERROR 2020-05-07 14:06:45,889 FileBackend backend caused an exception. Traceback (most recent call last): File "/home/nick/Dev/mopidy-dev/mopidy/mopidy/core/library.py", line 17, in _back...
NotADirectoryError
def on_error(self, error, debug): gst_logger.error(f"GStreamer error: {error.message}") gst_logger.debug(f"Got ERROR bus message: error={error!r} debug={debug!r}") # TODO: is this needed? self._audio.stop_playback()
def on_error(self, error, debug): error_msg = str(error).decode() debug_msg = debug.decode() gst_logger.debug("Got ERROR bus message: error=%r debug=%r", error_msg, debug_msg) gst_logger.error("GStreamer error: %s", error_msg) # TODO: is this needed? self._audio.stop_playback()
https://github.com/mopidy/mopidy/issues/1851
Traceback (most recent call last): File "/home/jodal/mopidy-dev/mopidy/mopidy/audio/actor.py", line 219, in on_message self.on_error(error, debug) File "/home/jodal/mopidy-dev/mopidy/mopidy/audio/actor.py", line 328, in on_error error_msg = str(error).decode() AttributeError: 'str' object has no attribute 'decode'
AttributeError
def on_warning(self, error, debug): gst_logger.warning(f"GStreamer warning: {error.message}") gst_logger.debug(f"Got WARNING bus message: error={error!r} debug={debug!r}")
def on_warning(self, error, debug): error_msg = str(error).decode() debug_msg = debug.decode() gst_logger.warning("GStreamer warning: %s", error_msg) gst_logger.debug("Got WARNING bus message: error=%r debug=%r", error_msg, debug_msg)
https://github.com/mopidy/mopidy/issues/1851
Traceback (most recent call last): File "/home/jodal/mopidy-dev/mopidy/mopidy/audio/actor.py", line 219, in on_message self.on_error(error, debug) File "/home/jodal/mopidy-dev/mopidy/mopidy/audio/actor.py", line 328, in on_error error_msg = str(error).decode() AttributeError: 'str' object has no attribute 'decode'
AttributeError
def _unwrap_stream(uri, timeout, scanner, requests_session): """ Get a stream URI from a playlist URI, ``uri``. Unwraps nested playlists until something that's not a playlist is found or the ``timeout`` is reached. """ original_uri = uri seen_uris = set() deadline = time.time() + timeo...
def _unwrap_stream(uri, timeout, scanner, requests_session): """ Get a stream URI from a playlist URI, ``uri``. Unwraps nested playlists until something that's not a playlist is found or the ``timeout`` is reached. """ original_uri = uri seen_uris = set() deadline = time.time() + timeo...
https://github.com/mopidy/mopidy/issues/1760
ERROR StreamBackend backend caused an exception. Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/mopidy/core/library.py", line 19, in _backend_error_handling yield File "/usr/lib64/python2.7/site-packages/mopidy/core/library.py", line 237, in lookup result = future.get() File "/usr/lib64/...
AttributeError
def listplaylist(context, name): """ *musicpd.org, stored playlists section:* ``listplaylist {NAME}`` Lists the files in the playlist ``NAME.m3u``. Output format:: file: relative/path/to/file1.flac file: relative/path/to/file2.ogg file: relative/path/to/file3.mp3 ...
def listplaylist(context, name): """ *musicpd.org, stored playlists section:* ``listplaylist {NAME}`` Lists the files in the playlist ``NAME.m3u``. Output format:: file: relative/path/to/file1.flac file: relative/path/to/file2.ogg file: relative/path/to/file3.mp3 ...
https://github.com/mopidy/mopidy/issues/1759
ERROR Unhandled exception in MpdSession (urn:uuid:76575e20-c10f-46e2-bc60-404ed1cffc27): Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop response = self._handle_receive(message) File "/usr/lib64/python2.7/site-packages/pykka/actor.py", line 304, i...
UnicodeDecodeError
def track_to_mpd_format(track, position=None, stream_title=None): """ Format track for output to MPD client. :param track: the track :type track: :class:`mopidy.models.Track` or :class:`mopidy.models.TlTrack` :param position: track's position in playlist :type position: integer :param strea...
def track_to_mpd_format(track, position=None, stream_title=None): """ Format track for output to MPD client. :param track: the track :type track: :class:`mopidy.models.Track` or :class:`mopidy.models.TlTrack` :param position: track's position in playlist :type position: integer :param strea...
https://github.com/mopidy/mopidy/issues/1759
ERROR Unhandled exception in MpdSession (urn:uuid:76575e20-c10f-46e2-bc60-404ed1cffc27): Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop response = self._handle_receive(message) File "/usr/lib64/python2.7/site-packages/pykka/actor.py", line 304, i...
UnicodeDecodeError
def _get_user_dirs(xdg_config_dir): """Returns a dict of XDG dirs read from ``$XDG_CONFIG_HOME/user-dirs.dirs``. This is used at import time for most users of :mod:`mopidy`. By rolling our own implementation instead of using :meth:`glib.get_user_special_dir` we make it possible for many extensions ...
def _get_user_dirs(xdg_config_dir): """Returns a dict of XDG dirs read from ``$XDG_CONFIG_HOME/user-dirs.dirs``. This is used at import time for most users of :mod:`mopidy`. By rolling our own implementation instead of using :meth:`glib.get_user_special_dir` we make it possible for many extensions ...
https://github.com/mopidy/mopidy/issues/1725
ERROR FileBackend backend caused an exception. Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/mopidy/core/library.py", line 19, in _backend_error_handling yield File "/usr/lib/python2.7/dist-packages/mopidy/core/library.py", line 112, in _browse result = backend.library.browse(uri).get() F...
ValueError
def validate(self, value): value = super(Identifier, self).validate(value) if isinstance(value, compat.text_type): value = value.encode("utf-8") return compat.intern(value)
def validate(self, value): return compat.intern(str(super(Identifier, self).validate(value)))
https://github.com/mopidy/mopidy/issues/1508
INFO Scanned 3500 of 5494 files in 25s, ~14s left. ERROR 'ascii' codec can't encode character u'\ufeff' in position 0: ordinal not in range(128) Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/mopidy/__main__.py", line 134, in main return args.command.run(args, proxied_config) Fil...
UnicodeEncodeError
def on_stream_start(self): gst_logger.debug("Got STREAM_START bus message") uri = self._audio._pending_uri logger.debug("Audio event: stream_changed(uri=%r)", uri) AudioListener.send("stream_changed", uri=uri) # Emit any postponed tags that we got after about-to-finish. tags, self._audio._pendi...
def on_stream_start(self): gst_logger.debug("Got STREAM_START bus message") uri = self._audio._pending_uri logger.debug("Audio event: stream_changed(uri=%r)", uri) AudioListener.send("stream_changed", uri=uri) # Emit any postponed tags that we got after about-to-finish. tags, self._audio._pendi...
https://github.com/mopidy/mopidy/issues/1449
Traceback (most recent call last): File "/home/jodal/mopidy-dev/mopidy/mopidy/audio/actor.py", line 225, in on_message self.on_tag(taglist) File "/home/jodal/mopidy-dev/mopidy/mopidy/audio/actor.py", line 340, in on_tag if self._audio._tags.get(key, unique) != value: AttributeError: 'NoneType' object has no attribute '...
AttributeError
def on_playbin_state_changed(self, old_state, new_state, pending_state): gst_logger.debug( "Got STATE_CHANGED bus message: old=%s new=%s pending=%s", old_state.value_name, new_state.value_name, pending_state.value_name, ) if new_state == Gst.State.READY and pending_state == ...
def on_playbin_state_changed(self, old_state, new_state, pending_state): gst_logger.debug( "Got STATE_CHANGED bus message: old=%s new=%s pending=%s", old_state.value_name, new_state.value_name, pending_state.value_name, ) if new_state == Gst.State.READY and pending_state == ...
https://github.com/mopidy/mopidy/issues/1430
Traceback (most recent call last): File "/home/trygve/dev/mopidy/mopidy/mopidy/audio/actor.py", line 210, in on_message self.on_playbin_state_changed(old_state, new_state, pending_state) File "/home/trygve/dev/mopidy/mopidy/mopidy/audio/actor.py", line 260, in on_playbin_state_changed target_state = _GST_STATE_MAPPING[...
KeyError
def playlist_uri_from_name(self, name): """ Helper function to retrieve a playlist URI from its unique MPD name. """ if name not in self._uri_from_name: self.refresh_playlists_mapping() return self._uri_from_name.get(name)
def playlist_uri_from_name(self, name): """ Helper function to retrieve a playlist URI from its unique MPD name. """ if not self._uri_from_name: self.refresh_playlists_mapping() return self._uri_from_name.get(name)
https://github.com/mopidy/mopidy/issues/1348
2015-12-04 23:41:33,959 ERROR [MpdSession-13] /home/adamcik/dev/mopidy-virtualenv/local/lib/python2.7/site-packages/pykka/actor.py:269 pykka Unhandled exception in MpdSession (urn:uuid:093fbff0-33df-4e39-ba0b-c7259431372c): Traceback (most recent call last): File "/home/adamcik/dev/mopidy-virtualenv/local/lib/python...
ValidationError
def _get_library(args, config): libraries = dict((l.name, l) for l in args.registry["local:library"]) library_name = config["local"]["library"] if library_name not in libraries: logger.error("Local library %s not found", library_name) return None logger.debug("Using %s as the local lib...
def _get_library(args, config): libraries = dict((l.name, l) for l in args.registry["local:library"]) library_name = config["local"]["library"] if library_name not in libraries: logger.warning("Local library %s not found", library_name) return 1 logger.debug("Using %s as the local libr...
https://github.com/mopidy/mopidy/issues/1298
INFO Starting Mopidy 1.1.1 INFO Loading config from builtin defaults INFO Loading config from /etc/mopidy/mopidy.conf INFO Loading config from command line options INFO Enabled extensions: mpd, http, stream, podcast-gpodder, m3u, podcast-itunes, softwaremixer, file, musicbox_webclient, podcast, loca...
AttributeError
def run(self, args, config): library = _get_library(args, config) if library is None: return 1 prompt = "\nAre you sure you want to clear the library? [y/N] " if compat.input(prompt).lower() != "y": print("Clearing library aborted.") return 0 if library.clear(): pr...
def run(self, args, config): library = _get_library(args, config) prompt = "\nAre you sure you want to clear the library? [y/N] " if compat.input(prompt).lower() != "y": print("Clearing library aborted.") return 0 if library.clear(): print("Library successfully cleared.") ...
https://github.com/mopidy/mopidy/issues/1298
INFO Starting Mopidy 1.1.1 INFO Loading config from builtin defaults INFO Loading config from /etc/mopidy/mopidy.conf INFO Loading config from command line options INFO Enabled extensions: mpd, http, stream, podcast-gpodder, m3u, podcast-itunes, softwaremixer, file, musicbox_webclient, podcast, loca...
AttributeError
def run(self, args, config): media_dir = config["local"]["media_dir"] scan_timeout = config["local"]["scan_timeout"] flush_threshold = config["local"]["scan_flush_threshold"] excluded_file_extensions = config["local"]["excluded_file_extensions"] excluded_file_extensions = tuple( bytes(file_e...
def run(self, args, config): media_dir = config["local"]["media_dir"] scan_timeout = config["local"]["scan_timeout"] flush_threshold = config["local"]["scan_flush_threshold"] excluded_file_extensions = config["local"]["excluded_file_extensions"] excluded_file_extensions = tuple( bytes(file_e...
https://github.com/mopidy/mopidy/issues/1298
INFO Starting Mopidy 1.1.1 INFO Loading config from builtin defaults INFO Loading config from /etc/mopidy/mopidy.conf INFO Loading config from command line options INFO Enabled extensions: mpd, http, stream, podcast-gpodder, m3u, podcast-itunes, softwaremixer, file, musicbox_webclient, podcast, loca...
AttributeError
def parse_urilist(data): result = [] for line in data.splitlines(): if not line.strip() or line.startswith(b"#"): continue try: validation.check_uri(line) except ValueError: return [] result.append(line) return result
def parse_urilist(data): result = [] for line in data.splitlines(): if not line.strip() or line.startswith("#"): continue try: validation.check_uri(line) except ValueError: return [] result.append(line) return result
https://github.com/mopidy/mopidy/issues/1265
INFO 2015-08-22 22:19:26,991 [855:MpdSession-31] mopidy.mpd.session New MPD connection from [::ffff:127.0.0.1]:50701 DEBUG 2015-08-22 22:19:26,993 [855:MpdSession-31] mopidy.mpd.session Request from [::ffff:127.0.0.1]:50701: command_list_begin DEBUG 2015-08-22 22:19:26,993 [855:MpdSession-31] mopidy.mpd.sessi...
UnicodeDecodeError
def send(self, data): """Send data to client, return any unsent data.""" try: sent = self.sock.send(data) return data[sent:] except socket.error as e: if e.errno in (errno.EWOULDBLOCK, errno.EINTR): return data self.stop("Unexpected client error: %s" % encoding.lo...
def send(self, data): """Send data to client, return any unsent data.""" try: sent = self.sock.send(data) return data[sent:] except socket.error as e: if e.errno in (errno.EWOULDBLOCK, errno.EINTR): return data self.stop("Unexpected client error: %s" % e) ...
https://github.com/mopidy/mopidy/issues/971
2015-02-04 06:30:11,901 ERROR [3714:MpdSession-27] pykka: Unhandled exception in MpdSession (urn:uuid:9595028c-486c-4c89-813a-785c3cafc057): Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 200, in _actor_loop response = self._handle_receive(message) File "/usr/lib/python2...
UnicodeDecodeError
def _find_worker(relative, follow, done, work, results, errors): """Worker thread for collecting stat() results. :param str relative: directory to make results relative to :param bool follow: if symlinks should be followed :param threading.Event done: event indicating that all work has been done :p...
def _find_worker(relative, follow, done, work, results, errors): """Worker thread for collecting stat() results. :param str relative: directory to make results relative to :param bool follow: if symlinks should be followed :param threading.Event done: event indicating that all work has been done :p...
https://github.com/mopidy/mopidy/issues/971
2015-02-04 06:30:11,901 ERROR [3714:MpdSession-27] pykka: Unhandled exception in MpdSession (urn:uuid:9595028c-486c-4c89-813a-785c3cafc057): Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 200, in _actor_loop response = self._handle_receive(message) File "/usr/lib/python2...
UnicodeDecodeError
def push(self, buffer_): if self._source is None: return False if buffer_ is None: gst_logger.debug("Sending appsrc end-of-stream event.") return self._source.emit("end-of-stream") == gst.FLOW_OK else: return self._source.emit("push-buffer", buffer_) == gst.FLOW_OK
def push(self, buffer_): if buffer_ is None: gst_logger.debug("Sending appsrc end-of-stream event.") return self._source.emit("end-of-stream") == gst.FLOW_OK else: return self._source.emit("push-buffer", buffer_) == gst.FLOW_OK
https://github.com/mopidy/mopidy/issues/985
^CINFO Interrupted. Exiting... INFO Stopping Mopidy frontends INFO Stopping Mopidy core INFO Stopping Mopidy backends From callback <function music_delivery at 0x7fa14c3c8938>: Traceback (most recent call last): File "/home/jodal/dev/pyspotify2/spotify/session.py", line 989, in music_delivery spotify._s...
AttributeError
def find_exact(tracks, query=None, uris=None): # TODO Only return results within URI roots given by ``uris`` if query is None: query = {} _validate_query(query) for field, values in query.items(): if not hasattr(values, "__iter__"): values = [values] # FIXME this i...
def find_exact(tracks, query=None, uris=None): # TODO Only return results within URI roots given by ``uris`` if query is None: query = {} _validate_query(query) for field, values in query.items(): if not hasattr(values, "__iter__"): values = [values] # FIXME this i...
https://github.com/mopidy/mopidy/issues/930
INFO New MPD connection from [::1]:55924 ERROR Unhandled exception in MpdSession (urn:uuid:127f99a4-9753-4960-9b72-368255948637): Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pykka/actor.py", line 200, in _actor_loop response = self._handle_receive(message) File "/usr/local/lib...
AttributeError
def validate_extension(extension): """Verify extension's dependencies and environment. :param extensions: an extension to check :returns: if extension should be run """ logger.debug("Validating extension: %s", extension.ext_name) if extension.ext_name != extension.entry_point.name: lo...
def validate_extension(extension): """Verify extension's dependencies and environment. :param extensions: an extension to check :returns: if extension should be run """ logger.debug("Validating extension: %s", extension.ext_name) if extension.ext_name != extension.entry_point.name: lo...
https://github.com/mopidy/mopidy/issues/911
2014-12-15 19:54:53,052 INFO [7923:MainThread] mopidy.__main__: Starting Mopidy 0.19.4 2014-12-15 19:54:53,433 INFO [7923:MainThread] mopidy.config: Loading config from: builtin defaults, /usr/share/mopidy/conf.d, /etc/mopidy/mopidy.conf, command line options 2014-12-15 19:54:54,860 ERROR [7923:MainThread] mopidy.__mai...
ValueError
def recv_callback(self, fd, flags): if flags & (gobject.IO_ERR | gobject.IO_HUP): self.stop("Bad client flags: %s" % flags) return True try: data = self.sock.recv(4096) except socket.error as e: if e.errno not in (errno.EWOULDBLOCK, errno.EINTR): self.stop("Unexp...
def recv_callback(self, fd, flags): if flags & (gobject.IO_ERR | gobject.IO_HUP): self.stop("Bad client flags: %s" % flags) return True try: data = self.sock.recv(4096) except socket.error as e: if e.errno not in (errno.EWOULDBLOCK, errno.EINTR): self.stop("Unexp...
https://github.com/mopidy/mopidy/issues/781
Traceback (most recent call last): File "/home/adamcik/dev/mopidy/mopidy/utils/network.py", line 272, in recv_callback self.disable_recv() File "/home/adamcik/dev/mopidy/mopidy/utils/network.py", line 236, in disable_recv gobject.source_remove(self.recv_id) TypeError: an integer is required
TypeError
def publish(self): if not dbus: logger.debug("Zeroconf publish failed: dbus not installed.") return False try: bus = dbus.SystemBus() except dbus.exceptions.DBusException as e: logger.debug("Zeroconf publish failed: %s", e) return False if not bus.name_has_owner...
def publish(self): if not dbus: logger.debug("Zeroconf publish failed: dbus not installed.") return False try: bus = dbus.SystemBus() except dbus.exceptions.DBusException as e: logger.debug("Zeroconf publish failed: %s", e) return False if not bus.name_has_owner...
https://github.com/mopidy/mopidy/issues/576
INFO 2013-11-13 23:26:28,001 [4304:MainThread] mopidy.frontends.mpd MPD server running at [::]:6600 ERROR 2013-11-13 23:26:28,013 [4304:MpdFrontend-5] pykka Unhandled exception in MpdFrontend (urn:uuid:93b3b156-44ca-42de-a0cf-602474d1c582): Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-p...
DBusException
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) # NOTE Python 2.6: To support Python versions < 2.6.2rc1 we must use # bytestrings for the first argument to ``add_option`` # See https://github.com/mopidy/mopidy/issues/302 for details parser.add_opt...
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) parser.add_option( "--help-gst", action="store_true", dest="help_gst", help="show GStreamer help options", ) parser.add_option( "-i", "--interactive", ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def _convert_mpd_data(data, tracks, music_dir): if not data: return # NOTE: kwargs are explicitly made bytestrings to work on Python # 2.6.0/2.6.1. See https://github.com/mopidy/mopidy/issues/302 for details. track_kwargs = {} album_kwargs = {} artist_kwargs = {} albumartist_kwargs...
def _convert_mpd_data(data, tracks, music_dir): if not data: return track_kwargs = {} album_kwargs = {} artist_kwargs = {} albumartist_kwargs = {} if "track" in data: if "/" in data["track"]: album_kwargs["num_tracks"] = int(data["track"].split("/")[1]) ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} # NOTE: kwargs are explicitly made bytestrings to work on Python # 2.6.0/2.6.1. See https://github.com/mopidy/mopidy/issues/302 for # details. def _retrieve(source_key, target_key, targ...
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} def _retrieve(source_key, target_key, target): if source_key in data: target[target_key] = data[source_key] _retrieve(gst.TAG_ALBUM, "name", album_kwargs) _retrieve(gst....
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def _retrieve(source_key, target_key, target): if source_key in data: target[str(target_key)] = data[source_key]
def _retrieve(source_key, target_key, target): if source_key in data: target[target_key] = data[source_key]
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} # NOTE: kwargs are explicitly made bytestrings to work on Python # 2.6.0/2.6.1. See https://github.com/mopidy/mopidy/issues/302 for # details. def _retrieve(source_key, target_key, targ...
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} # NOTE: kwargs are explicitly made bytestrings to work on Python # 2.6.0/2.6.1. See https://github.com/mopidy/mopidy/issues/302 for # details. def _retrieve(source_key, target_key, targ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) # NOTE Python 2.6: To support Python versions < 2.6.2rc1 we must use # bytestrings for the first argument to ``add_option`` # See https://github.com/mopidy/mopidy/issues/302 for details parser.add_opt...
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) parser.add_option( "-q", "--quiet", action="store_const", const=0, dest="verbosity_level", help="less output (warning level)", ) parser.add_option( ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, core): super(MpdFrontend, self).__init__() hostname = network.format_hostname(settings.MPD_SERVER_HOSTNAME) port = settings.MPD_SERVER_PORT # NOTE: dict key must be bytestring to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details try: ...
def __init__(self, core): super(MpdFrontend, self).__init__() hostname = network.format_hostname(settings.MPD_SERVER_HOSTNAME) port = settings.MPD_SERVER_PORT try: network.Server( hostname, port, protocol=session.MpdSession, protocol_kwargs={"core...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def handle_request(pattern, auth_required=True): """ Decorator for connecting command handlers to command requests. If you use named groups in the pattern, the decorated method will get the groups as keyword arguments. If the group is optional, remember to give the argument a default value. Fo...
def handle_request(pattern, auth_required=True): """ Decorator for connecting command handlers to command requests. If you use named groups in the pattern, the decorated method will get the groups as keyword arguments. If the group is optional, remember to give the argument a default value. Fo...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def decorator(func): match = re.search("([a-z_]+)", pattern) if match is not None: mpd_commands.add(MpdCommand(name=match.group(), auth_required=auth_required)) # NOTE: Make pattern a bytestring to get bytestring keys in the dict # returned from matches.groupdict(), which is again used as a **kw...
def decorator(func): match = re.search("([a-z_]+)", pattern) if match is not None: mpd_commands.add(MpdCommand(name=match.group(), auth_required=auth_required)) compiled_pattern = re.compile(pattern, flags=re.UNICODE) if compiled_pattern in request_handlers: raise ValueError("Tried to re...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) # NOTE First argument to add_option must be bytestrings on Python < 2.6.2 # See https://github.com/mopidy/mopidy/issues/302 for details parser.add_option( b"--help-gst", action="store_true...
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) # NOTE Python 2.6: To support Python versions < 2.6.2rc1 we must use # bytestrings for the first argument to ``add_option`` # See https://github.com/mopidy/mopidy/issues/302 for details parser.add_opt...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def _convert_mpd_data(data, tracks, music_dir): if not data: return # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details. track_kwargs = {} album_kwargs = {} artist_kwargs = {} albumartist_kwargs = {} ...
def _convert_mpd_data(data, tracks, music_dir): if not data: return # NOTE: kwargs are explicitly made bytestrings to work on Python # 2.6.0/2.6.1. See https://github.com/mopidy/mopidy/issues/302 for details. track_kwargs = {} album_kwargs = {} artist_kwargs = {} albumartist_kwargs...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, core): super(MpdFrontend, self).__init__() hostname = network.format_hostname(settings.MPD_SERVER_HOSTNAME) port = settings.MPD_SERVER_PORT # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details. try...
def __init__(self, core): super(MpdFrontend, self).__init__() hostname = network.format_hostname(settings.MPD_SERVER_HOSTNAME) port = settings.MPD_SERVER_PORT # NOTE: dict key must be bytestring to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details try: ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def handle_request(pattern, auth_required=True): """ Decorator for connecting command handlers to command requests. If you use named groups in the pattern, the decorated method will get the groups as keyword arguments. If the group is optional, remember to give the argument a default value. Fo...
def handle_request(pattern, auth_required=True): """ Decorator for connecting command handlers to command requests. If you use named groups in the pattern, the decorated method will get the groups as keyword arguments. If the group is optional, remember to give the argument a default value. Fo...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def decorator(func): match = re.search("([a-z_]+)", pattern) if match is not None: mpd_commands.add(MpdCommand(name=match.group(), auth_required=auth_required)) # NOTE Make pattern a bytestring to get bytestring keys in the dict # returned from matches.groupdict(), which is again used as a **kwa...
def decorator(func): match = re.search("([a-z_]+)", pattern) if match is not None: mpd_commands.add(MpdCommand(name=match.group(), auth_required=auth_required)) # NOTE: Make pattern a bytestring to get bytestring keys in the dict # returned from matches.groupdict(), which is again used as a **kw...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def query_from_mpd_list_format(field, mpd_query): """ Converts an MPD ``list`` query to a Mopidy query. """ # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details if mpd_query is None: return {} try: ...
def query_from_mpd_list_format(field, mpd_query): """ Converts an MPD ``list`` query to a Mopidy query. """ if mpd_query is None: return {} try: # shlex does not seem to be friends with unicode objects tokens = shlex.split(mpd_query.encode("utf-8")) except ValueError as e...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def copy(self, **values): """ Copy the model with ``field`` updated to new value. Examples:: # Returns a track with a new name Track(name='foo').copy(name='bar') # Return an album with a new number of tracks Album(num_tracks=2).copy(num_tracks=5) :param values: the mod...
def copy(self, **values): """ Copy the model with ``field`` updated to new value. Examples:: # Returns a track with a new name Track(name='foo').copy(name='bar') # Return an album with a new number of tracks Album(num_tracks=2).copy(num_tracks=5) :param values: the mod...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"artists"] = frozenset(kwargs.pop("artists", [])) super(Album, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): self.__dict__["artists"] = frozenset(kwargs.pop("artists", [])) super(Album, self).__init__(*args, **kwargs)
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"artists"] = frozenset(kwargs.pop("artists", [])) super(Track, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): self.__dict__["artists"] = frozenset(kwargs.pop("artists", [])) super(Track, self).__init__(*args, **kwargs)
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details if len(args) == 2 and len(kwargs) == 0: kwargs[b"tlid"] = args[0] kwargs[b"track"] = args[1] args = [] super(Tl...
def __init__(self, *args, **kwargs): if len(args) == 2 and len(kwargs) == 0: kwargs["tlid"] = args[0] kwargs["track"] = args[1] args = [] super(TlTrack, self).__init__(*args, **kwargs)
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"tracks"] = tuple(kwargs.pop("tracks", [])) super(Playlist, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): self.__dict__["tracks"] = tuple(kwargs.pop("tracks", [])) super(Playlist, self).__init__(*args, **kwargs)
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"tracks"] = tuple(kwargs.pop("tracks", [])) self.__dict__[b"artists"] = tuple(kwargs.pop("artists", [])) self.__dict...
def __init__(self, *args, **kwargs): self.__dict__["tracks"] = tuple(kwargs.pop("tracks", [])) self.__dict__["artists"] = tuple(kwargs.pop("artists", [])) self.__dict__["albums"] = tuple(kwargs.pop("albums", [])) super(SearchResult, self).__init__(*args, **kwargs)
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) # NOTE First argument to add_option must be bytestrings on Python < 2.6.2 # See https://github.com/mopidy/mopidy/issues/302 for details parser.add_option( b"-q", "--quiet", action=...
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) # NOTE Python 2.6: To support Python versions < 2.6.2rc1 we must use # bytestrings for the first argument to ``add_option`` # See https://github.com/mopidy/mopidy/issues/302 for details parser.add_opt...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details. def _retrieve(source_key, target_key, target): i...
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} # NOTE: kwargs are explicitly made bytestrings to work on Python # 2.6.0/2.6.1. See https://github.com/mopidy/mopidy/issues/302 for # details. def _retrieve(source_key, target_key, targ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def model_json_decoder(dct): """ Automatically deserialize Mopidy models from JSON. Usage:: >>> import json >>> json.loads( ... '{"a_track": {"__model__": "Track", "name": "name"}}', ... object_hook=model_json_decoder) {u'a_track': Track(artists=[], name=u'n...
def model_json_decoder(dct): """ Automatically deserialize Mopidy models from JSON. Usage:: >>> import json >>> json.loads( ... '{"a_track": {"__model__": "Track", "name": "name"}}', ... object_hook=model_json_decoder) {u'a_track': Track(artists=[], name=u'n...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def _convert_mpd_data(data, tracks, music_dir): if not data: return track_kwargs = {} album_kwargs = {} artist_kwargs = {} albumartist_kwargs = {} if "track" in data: if "/" in data["track"]: album_kwargs["num_tracks"] = int(data["track"].split("/")[1]) ...
def _convert_mpd_data(data, tracks, music_dir): if not data: return # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details. track_kwargs = {} album_kwargs = {} artist_kwargs = {} albumartist_kwargs = {} ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, config, core): super(MpdFrontend, self).__init__() hostname = network.format_hostname(config["mpd"]["hostname"]) port = config["mpd"]["port"] try: network.Server( hostname, port, protocol=session.MpdSession, protocol_kwargs={ ...
def __init__(self, config, core): super(MpdFrontend, self).__init__() hostname = network.format_hostname(config["mpd"]["hostname"]) port = config["mpd"]["port"] # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details. t...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def handle_request(pattern, auth_required=True): """ Decorator for connecting command handlers to command requests. If you use named groups in the pattern, the decorated method will get the groups as keyword arguments. If the group is optional, remember to give the argument a default value. Fo...
def handle_request(pattern, auth_required=True): """ Decorator for connecting command handlers to command requests. If you use named groups in the pattern, the decorated method will get the groups as keyword arguments. If the group is optional, remember to give the argument a default value. Fo...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def decorator(func): match = re.search("([a-z_]+)", pattern) if match is not None: mpd_commands.add(MpdCommand(name=match.group(), auth_required=auth_required)) compiled_pattern = re.compile(pattern, flags=re.UNICODE) if compiled_pattern in request_handlers: raise ValueError("Tried to re...
def decorator(func): match = re.search("([a-z_]+)", pattern) if match is not None: mpd_commands.add(MpdCommand(name=match.group(), auth_required=auth_required)) # NOTE Make pattern a bytestring to get bytestring keys in the dict # returned from matches.groupdict(), which is again used as a **kwa...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def query_from_mpd_list_format(field, mpd_query): """ Converts an MPD ``list`` query to a Mopidy query. """ if mpd_query is None: return {} try: # shlex does not seem to be friends with unicode objects tokens = shlex.split(mpd_query.encode("utf-8")) except ValueError as e...
def query_from_mpd_list_format(field, mpd_query): """ Converts an MPD ``list`` query to a Mopidy query. """ # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details if mpd_query is None: return {} try: ...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def copy(self, **values): """ Copy the model with ``field`` updated to new value. Examples:: # Returns a track with a new name Track(name='foo').copy(name='bar') # Return an album with a new number of tracks Album(num_tracks=2).copy(num_tracks=5) :param values: the mod...
def copy(self, **values): """ Copy the model with ``field`` updated to new value. Examples:: # Returns a track with a new name Track(name='foo').copy(name='bar') # Return an album with a new number of tracks Album(num_tracks=2).copy(num_tracks=5) :param values: the mod...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def model_json_decoder(dct): """ Automatically deserialize Mopidy models from JSON. Usage:: >>> import json >>> json.loads( ... '{"a_track": {"__model__": "Track", "name": "name"}}', ... object_hook=model_json_decoder) {u'a_track': Track(artists=[], name=u'n...
def model_json_decoder(dct): """ Automatically deserialize Mopidy models from JSON. Usage:: >>> import json >>> json.loads( ... '{"a_track": {"__model__": "Track", "name": "name"}}', ... object_hook=model_json_decoder) {u'a_track': Track(artists=[], name=u'n...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): self.__dict__["artists"] = frozenset(kwargs.pop("artists", [])) self.__dict__["images"] = frozenset(kwargs.pop("images", [])) super(Album, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"artists"] = frozenset(kwargs.pop("artists", [])) self.__dict__[b"images"] = frozenset(kwargs.pop("images", [])) sup...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): self.__dict__["artists"] = frozenset(kwargs.pop("artists", [])) super(Track, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"artists"] = frozenset(kwargs.pop("artists", [])) super(Track, self).__init__(*args, **kwargs)
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): if len(args) == 2 and len(kwargs) == 0: kwargs["tlid"] = args[0] kwargs["track"] = args[1] args = [] super(TlTrack, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details if len(args) == 2 and len(kwargs) == 0: kwargs[b"tlid"] = args[0] kwargs[b"track"] = args[1] args = [] super(Tl...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): self.__dict__["tracks"] = tuple(kwargs.pop("tracks", [])) super(Playlist, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"tracks"] = tuple(kwargs.pop("tracks", [])) super(Playlist, self).__init__(*args, **kwargs)
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def __init__(self, *args, **kwargs): self.__dict__["tracks"] = tuple(kwargs.pop("tracks", [])) self.__dict__["artists"] = tuple(kwargs.pop("artists", [])) self.__dict__["albums"] = tuple(kwargs.pop("albums", [])) super(SearchResult, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details self.__dict__[b"tracks"] = tuple(kwargs.pop("tracks", [])) self.__dict__[b"artists"] = tuple(kwargs.pop("artists", [])) self.__dict...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) parser.add_option( "-q", "--quiet", action="store_const", const=0, dest="verbosity_level", help="less output (warning level)", ) parser.add_option( ...
def parse_options(): parser = optparse.OptionParser(version="Mopidy %s" % versioning.get_version()) # NOTE First argument to add_option must be bytestrings on Python < 2.6.2 # See https://github.com/mopidy/mopidy/issues/302 for details parser.add_option( b"-q", "--quiet", action=...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} def _retrieve(source_key, target_key, target): if source_key in data: target[target_key] = data[source_key] _retrieve(gst.TAG_ALBUM, "name", album_kwargs) _retrieve(gst....
def translator(data): albumartist_kwargs = {} album_kwargs = {} artist_kwargs = {} track_kwargs = {} # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5 # See https://github.com/mopidy/mopidy/issues/302 for details. def _retrieve(source_key, target_key, target): i...
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def _retrieve(source_key, target_key, target): if source_key in data: target[target_key] = data[source_key]
def _retrieve(source_key, target_key, target): if source_key in data: target[str(target_key)] = data[source_key]
https://github.com/mopidy/mopidy/issues/302
erik@faust:~$ mopidy Traceback (most recent call last): File "/usr/local/bin/mopidy", line 5, in <module> main() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 48, in main options = parse_options() File "/usr/local/lib64/python2.6/site-packages/mopidy/__main__.py", line 85, in parse_options h...
TypeError
def _select_mixer_track(self, mixer, track_label): # Ignore tracks without volumes, then look for track with # label == settings.MIXER_TRACK, otherwise fallback to first usable # track hoping the mixer gave them to us in a sensible order. usable_tracks = [] for track in mixer.list_tracks(): ...
def _select_mixer_track(self, mixer, track_label): # Look for track with label == MIXER_TRACK, otherwise fallback to # master track which is also an output. for track in mixer.list_tracks(): if track_label: if track.label == track_label: return track elif track.fl...
https://github.com/mopidy/mopidy/issues/307
INFO 2013-01-03 15:47:01,091 [7328:MainThread] mopidy.utils.log Starting Mopidy 0.11.1 INFO 2013-01-03 15:47:01,095 [7328:MainThread] mopidy.utils.log Platform: Linux-3.2.0-4-amd64-x86_64-with-debian-7.0 INFO 2013-01-03 15:47:01,095 [7328:MainThread] mopidy.utils.log Python: CPython 2.7.3rc2 DEBUG 2013-0...
ZeroDivisionError
def parse_m3u(file_path, music_folder): """ Convert M3U file list of uris Example M3U data:: # This is a comment Alternative\Band - Song.mp3 Classical\Other Band - New Song.mp3 Stuff.mp3 D:\More Music\Foo.mp3 http://www.example.com:8000/Listen.pls ht...
def parse_m3u(file_path): """ Convert M3U file list of uris Example M3U data:: # This is a comment Alternative\Band - Song.mp3 Classical\Other Band - New Song.mp3 Stuff.mp3 D:\More Music\Foo.mp3 http://www.example.com:8000/Listen.pls http://www.examp...
https://github.com/mopidy/mopidy/issues/189
$ PYTHONPATH=. ./bin/mopidy-scan INFO 2012-09-11 15:56:32,431 [15354:MainThread] root Scanning None Traceback (most recent call last): File "./bin/mopidy-scan", line 26, in <module> scanner = Scanner(settings.LOCAL_MUSIC_PATH, store, debug) File "/home/jodal/dev/mopidy/mopidy/scanner.py", line 55, in __init__ self....
TypeError
def __init__(self, folder, data_callback, error_callback=None): self.files = find_files(folder) self.data_callback = data_callback self.error_callback = error_callback self.loop = gobject.MainLoop() fakesink = gst.element_factory_make("fakesink") self.uribin = gst.element_factory_make("urideco...
def __init__(self, folder, data_callback, error_callback=None): self.uris = [path_to_uri(f) for f in find_files(folder)] self.data_callback = data_callback self.error_callback = error_callback self.loop = gobject.MainLoop() fakesink = gst.element_factory_make("fakesink") self.uribin = gst.elem...
https://github.com/mopidy/mopidy/issues/189
$ PYTHONPATH=. ./bin/mopidy-scan INFO 2012-09-11 15:56:32,431 [15354:MainThread] root Scanning None Traceback (most recent call last): File "./bin/mopidy-scan", line 26, in <module> scanner = Scanner(settings.LOCAL_MUSIC_PATH, store, debug) File "/home/jodal/dev/mopidy/mopidy/scanner.py", line 55, in __init__ self....
TypeError
def next_uri(self): try: uri = path_to_uri(self.files.next()) except StopIteration: self.stop() return False self.pipe.set_state(gst.STATE_NULL) self.uribin.set_property("uri", uri) self.pipe.set_state(gst.STATE_PAUSED) return True
def next_uri(self): if not self.uris: return self.stop() self.pipe.set_state(gst.STATE_NULL) self.uribin.set_property("uri", self.uris.pop()) self.pipe.set_state(gst.STATE_PAUSED)
https://github.com/mopidy/mopidy/issues/189
$ PYTHONPATH=. ./bin/mopidy-scan INFO 2012-09-11 15:56:32,431 [15354:MainThread] root Scanning None Traceback (most recent call last): File "./bin/mopidy-scan", line 26, in <module> scanner = Scanner(settings.LOCAL_MUSIC_PATH, store, debug) File "/home/jodal/dev/mopidy/mopidy/scanner.py", line 55, in __init__ self....
TypeError
def start(self): if self.next_uri(): self.loop.run()
def start(self): if not self.uris: return self.next_uri() self.loop.run()
https://github.com/mopidy/mopidy/issues/189
$ PYTHONPATH=. ./bin/mopidy-scan INFO 2012-09-11 15:56:32,431 [15354:MainThread] root Scanning None Traceback (most recent call last): File "./bin/mopidy-scan", line 26, in <module> scanner = Scanner(settings.LOCAL_MUSIC_PATH, store, debug) File "/home/jodal/dev/mopidy/mopidy/scanner.py", line 55, in __init__ self....
TypeError
def import_targets(request): context = {} context["import_target_li"] = "active" context["target_data_active"] = "true" if request.method == "POST": if "txtFile" in request.FILES: txt_file = request.FILES["txtFile"] if txt_file.content_type == "text/plain": ...
def import_targets(request): context = {} context["import_target_li"] = "active" context["target_data_active"] = "true" if request.method == "POST": if "txtFile" in request.FILES: txt_file = request.FILES["txtFile"] if txt_file.content_type == "text/plain": ...
https://github.com/yogeshojha/rengine/issues/228
Running migrations: No migrations to apply. Installed 3 object(s) from 1 fixture(s) [2020-09-07 09:47:08 +0000] [1] [INFO] Starting gunicorn 20.0.4 [2020-09-07 09:47:08 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1) [2020-09-07 09:47:08 +0000] [1] [INFO] Using worker: sync [2020-09-07 09:47:08 +0000] [12] [INF...
FileNotFoundError
def __init__(self, key_prefixes, runtime_dirs=get_runtime_dirs()): key_prefixes = map(self._sanitize, key_prefixes) # compute read and write dirs from base runtime dirs: the first base # dir is selected for writes and prefered for reads self._read_dirs = [os.path.join(x, *key_prefixes) for x in runtime_...
def __init__(self, key_prefixes): key_prefixes = map(self._sanitize, key_prefixes) # compute read and write dirs from base runtime dirs: the first base # dir is selected for writes and prefered for reads self._read_dirs = [os.path.join(x, *key_prefixes) for x in get_runtime_dirs()] self._write_dir =...
https://github.com/liquidctl/liquidctl/issues/278
C:\>liquidctl list --verbose Device ID 0: Corsair H100i PRO XT (experimental) β”œβ”€β”€ Vendor ID: 0x1b1c β”œβ”€β”€ Product ID: 0x0c20 β”œβ”€β”€ Release number: 0x0100 β”œβ”€β”€ Bus: hid β”œβ”€β”€ Address: \\?\hid#vid_1b1c&amp;pid_0c20#7&amp;1e4e78f5&amp;0&amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030} └── Driver: HydroPlatinum using module hid ...
ValueError
def load(self, key): for base in self._read_dirs: path = os.path.join(base, key) if not os.path.isfile(path): continue try: with open(path, mode="r") as f: data = f.read().strip() if len(data) == 0: value = None ...
def load(self, key): for base in self._read_dirs: path = os.path.join(base, key) if not os.path.isfile(path): continue try: with open(path, mode="r") as f: data = f.read().strip() if len(data) == 0: value = None ...
https://github.com/liquidctl/liquidctl/issues/278
C:\>liquidctl list --verbose Device ID 0: Corsair H100i PRO XT (experimental) β”œβ”€β”€ Vendor ID: 0x1b1c β”œβ”€β”€ Product ID: 0x0c20 β”œβ”€β”€ Release number: 0x0100 β”œβ”€β”€ Bus: hid β”œβ”€β”€ Address: \\?\hid#vid_1b1c&amp;pid_0c20#7&amp;1e4e78f5&amp;0&amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030} └── Driver: HydroPlatinum using module hid ...
ValueError
def _write(self, data): assert len(data) <= _REPORT_LENGTH packet = bytearray(1 + _REPORT_LENGTH) packet[1 : 1 + len(data)] = data # device doesn't use numbered reports self.device.write(packet)
def _write(self, data): padding = [0x0] * (_WRITE_LENGTH - len(data)) self.device.write(data + padding)
https://github.com/liquidctl/liquidctl/issues/166
PS E:\liquidctl> .\liquidctl status NZXT Kraken X (X42, X52, X62 or X72) β”œβ”€β”€ Liquid temperature 30.4 Β°C β”œβ”€β”€ Fan speed 1100 rpm β”œβ”€β”€ Pump speed 2703 rpm └── Firmware version 6.0.2 ERROR: Unexpected error with NZXT E850 (experimental) Traceback (most recent call last): AssertionError:...
AssertionError
def _read(self): return self.device.read(_REPORT_LENGTH)
def _read(self): return self.device.read(_READ_LENGTH)
https://github.com/liquidctl/liquidctl/issues/166
PS E:\liquidctl> .\liquidctl status NZXT Kraken X (X42, X52, X62 or X72) β”œβ”€β”€ Liquid temperature 30.4 Β°C β”œβ”€β”€ Fan speed 1100 rpm β”œβ”€β”€ Pump speed 2703 rpm └── Firmware version 6.0.2 ERROR: Unexpected error with NZXT E850 (experimental) Traceback (most recent call last): AssertionError:...
AssertionError
def connect(self, **kwargs): """Connect to the device.""" super().connect(**kwargs) ids = f"vid{self.vendor_id:04x}_pid{self.product_id:04x}" # must use the HID path because there is no serial number; however, # these can be quite long on Windows and macOS, so only take the # numbers, since they...
def connect(self, **kwargs): """Connect to the device.""" super().connect(**kwargs) ids = f"vid{self.vendor_id:04x}_pid{self.product_id:04x}" # must use the HID path because there is no serial number; however, # these can be quite long on Windows and macOS, so only take the # numbers, since they...
https://github.com/liquidctl/liquidctl/issues/162
[DEBUG] __main__: device: Corsair H115i PRO XT (experimental) self.address: "/dev/hidraw1" Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) ...
TypeError
def connect(self, **kwargs): """Connect to the device. Enables the device to send data to the host.""" super().connect(**kwargs) self._configure_flow_control(clear_to_send=True)
def connect(self, **kwargs): """Connect to the device.""" super().connect() try: self._open() except usb.core.USBError as err: LOGGER.warning("report: failed to open right away, will close first") LOGGER.debug(err, exc_info=True) self._close() self._open() fin...
https://github.com/liquidctl/liquidctl/issues/42
# extra/liquiddump --product 0xb200 --interval 3 {"Asetek 690LC (assuming EVGA CLC)": [["Liquid temperature", 28.8, "\u00b0C"], ["Fan speed", 420, "rpm"], ["Pump speed", 2670, "rpm"], ["Firmware version", "2.10.0.0", ""]]} {"Asetek 690LC (assuming EVGA CLC)": [["Liquid temperature", 28.8, "\u00b0C"], ["Fan speed", 480,...
usb.core.USBError
def disconnect(self, **kwargs): """Disconnect from the device. Implementation note: unlike SI_Close is supposed to do,ΒΉ do not send _USBXPRESS_NOT_CLEAR_TO_SEND to the device. This allows one program to disconnect without sotping reads from another. Surrounding device.read() with _USBXPRESS_[NOT_...
def disconnect(self, **kwargs): """Disconnect from the device.""" self._close() super().disconnect() self.device.release()
https://github.com/liquidctl/liquidctl/issues/42
# extra/liquiddump --product 0xb200 --interval 3 {"Asetek 690LC (assuming EVGA CLC)": [["Liquid temperature", 28.8, "\u00b0C"], ["Fan speed", 420, "rpm"], ["Pump speed", 2670, "rpm"], ["Firmware version", "2.10.0.0", ""]]} {"Asetek 690LC (assuming EVGA CLC)": [["Liquid temperature", 28.8, "\u00b0C"], ["Fan speed", 480,...
usb.core.USBError
def dump(self): """ Returns the string that represents the nyan file. """ fileinfo_str = f"# NYAN FILE\nversion {FILE_VERSION}\n\n" import_str = "" objects_str = "" for nyan_object in self.nyan_objects: objects_str += nyan_object.dump(import_tree=self.import_tree) # Removes one...
def dump(self): """ Returns the string that represents the nyan file. """ output_str = f"# NYAN FILE\nversion {FILE_VERSION}\n\n" import_aliases = self.import_tree.establish_import_dict( self, ignore_names=["type", "types"] ) for alias, fqon in import_aliases.items(): outpu...
https://github.com/SFTtech/openage/issues/1355
INFO [py] launching openage v0.4.1-377-g2be30ba76 INFO [py] compiled by GNU 10.2.0 Do you want to convert assets? [Y/n] Y Should we call wine to determine an AOE installation? [Y/n] n Could not find any installation directory automatically. Please enter an AOE2 install path manually. /home/schatzi/nvme/Steam/steamapps/...
KeyError
def convert_assets(assets, args, srcdir=None, prev_source_dir_path=None): """ Perform asset conversion. Requires original assets and stores them in usable and free formats. assets must be a filesystem-like object pointing at the game's asset dir. srcdir must be None, or point at some source direct...
def convert_assets(assets, args, srcdir=None, prev_source_dir_path=None): """ Perform asset conversion. Requires original assets and stores them in usable and free formats. assets must be a filesystem-like object pointing at the game's asset dir. srcdir must be None, or point at some source direct...
https://github.com/SFTtech/openage/issues/1355
INFO [py] launching openage v0.4.1-377-g2be30ba76 INFO [py] compiled by GNU 10.2.0 Do you want to convert assets? [Y/n] Y Should we call wine to determine an AOE installation? [Y/n] n Could not find any installation directory automatically. Please enter an AOE2 install path manually. /home/schatzi/nvme/Steam/steamapps/...
KeyError