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 create_lcwa_instances(self, use_tqdm: Optional[bool] = None) -> Instances: """Create LCWA instances for this factory's triples.""" return LCWAInstances.from_triples( mapped_triples=self._add_inverse_triples_if_necessary( mapped_triples=self.mapped_triples ), num_entities=...
def create_lcwa_instances(self, use_tqdm: Optional[bool] = None) -> Instances: """Create LCWA instances for this factory's triples.""" return LCWAInstances.from_triples( mapped_triples=self.mapped_triples, num_entities=self.num_entities )
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def split( self, ratios: Union[float, Sequence[float]] = 0.8, *, random_state: TorchRandomHint = None, randomize_cleanup: bool = False, ) -> List["TriplesFactory"]: """Split a triples factory into a train/test. :param ratios: There are three options for this argument. First, a float can be ...
def split( self, ratios: Union[float, Sequence[float]] = 0.8, *, random_state: RandomHint = None, randomize_cleanup: bool = False, ) -> List["TriplesFactory"]: """Split a triples factory into a train/test. :param ratios: There are three options for this argument. First, a float can be given...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def get_most_frequent_relations(self, n: Union[int, float]) -> Set[int]: """Get the IDs of the n most frequent relations. :param n: Either the (integer) number of top relations to keep or the (float) percentage of top relationships to keep """ logger.info(f"applying cutoff of {n} to {self}") i...
def get_most_frequent_relations(self, n: Union[int, float]) -> Set[str]: """Get the n most frequent relations. :param n: Either the (integer) number of top relations to keep or the (float) percentage of top relationships to keep """ logger.info(f"applying cutoff of {n} to {self}") if isinstanc...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def entity_word_cloud(self, top: Optional[int] = None): """Make a word cloud based on the frequency of occurrence of each entity in a Jupyter notebook. :param top: The number of top entities to show. Defaults to 100. .. warning:: This function requires the ``word_cloud`` package. Use ``pip instal...
def entity_word_cloud(self, top: Optional[int] = None): """Make a word cloud based on the frequency of occurrence of each entity in a Jupyter notebook. :param top: The number of top entities to show. Defaults to 100. .. warning:: This function requires the ``word_cloud`` package. Use ``pip instal...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def relation_word_cloud(self, top: Optional[int] = None): """Make a word cloud based on the frequency of occurrence of each relation in a Jupyter notebook. :param top: The number of top relations to show. Defaults to 100. .. warning:: This function requires the ``word_cloud`` package. Use ``pip i...
def relation_word_cloud(self, top: Optional[int] = None): """Make a word cloud based on the frequency of occurrence of each relation in a Jupyter notebook. :param top: The number of top relations to show. Defaults to 100. .. warning:: This function requires the ``word_cloud`` package. Use ``pip i...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def _word_cloud( self, *, ids: torch.LongTensor, id_to_label: Mapping[int, str], top: int ): try: from word_cloud.word_cloud_generator import WordCloud except ImportError: logger.warning( "Could not import module `word_cloud`. " "Try installing it with `pip install gi...
def _word_cloud(self, *, text: List[str], top: int): try: from word_cloud.word_cloud_generator import WordCloud except ImportError: logger.warning( "Could not import module `word_cloud`. " "Try installing it with `pip install git+https://github.com/kavgan/word_cloud.git`"...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def tensor_to_df( self, tensor: torch.LongTensor, **kwargs: Union[torch.Tensor, np.ndarray, Sequence], ) -> pd.DataFrame: """Take a tensor of triples and make a pandas dataframe with labels. :param tensor: shape: (n, 3) The triples, ID-based and in format (head_id, relation_id, tail_id). ...
def tensor_to_df( self, tensor: torch.LongTensor, **kwargs: Union[torch.Tensor, np.ndarray, Sequence], ) -> pd.DataFrame: """Take a tensor of triples and make a pandas dataframe with labels. :param tensor: shape: (n, 3) The triples, ID-based and in format (head_id, relation_id, tail_id). ...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def new_with_restriction( self, entities: Union[None, Collection[int], Collection[str]] = None, relations: Union[None, Collection[int], Collection[str]] = None, invert_entity_selection: bool = False, invert_relation_selection: bool = False, ) -> "TriplesFactory": """Make a new triples factory on...
def new_with_restriction( self, entities: Optional[Collection[str]] = None, relations: Optional[Collection[str]] = None, ) -> "TriplesFactory": """Make a new triples factory only keeping the given entities and relations, but keeping the ID mapping. :param entities: The entities of interest....
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def _tf_cleanup_all( triples_groups: List[MappedTriples], *, random_state: TorchRandomHint = None, ) -> Sequence[MappedTriples]: """Cleanup a list of triples array with respect to the first array.""" reference, *others = triples_groups rv = [] for other in others: if random_state is ...
def _tf_cleanup_all( triples_groups: List[np.ndarray], *, random_state: RandomHint = None, ) -> List[np.ndarray]: """Cleanup a list of triples array with respect to the first array.""" reference, *others = triples_groups rv = [] for other in others: if random_state is not None: ...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def _tf_cleanup_deterministic( training: MappedTriples, testing: MappedTriples ) -> Tuple[MappedTriples, MappedTriples]: """Cleanup a triples array (testing) with respect to another (training).""" move_id_mask = _prepare_cleanup(training, testing) training = torch.cat([training, testing[move_id_mask]]) ...
def _tf_cleanup_deterministic( training: np.ndarray, testing: np.ndarray ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array (testing) with respect to another (training).""" move_id_mask = _prepare_cleanup(training, testing) training = np.concatenate([training, testing[move_id_mask]]) te...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def _tf_cleanup_randomized( training: MappedTriples, testing: MappedTriples, random_state: TorchRandomHint = None, ) -> Tuple[MappedTriples, MappedTriples]: """Cleanup a triples array, but randomly select testing triples and recalculate to minimize moves. 1. Calculate ``move_id_mask`` as in :func:`...
def _tf_cleanup_randomized( training: np.ndarray, testing: np.ndarray, random_state: RandomHint = None, ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array, but randomly select testing triples and recalculate to minimize moves. 1. Calculate ``move_id_mask`` as in :func:`_tf_cleanup_deter...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def _prepare_cleanup( training: MappedTriples, testing: MappedTriples, max_ids: Optional[Tuple[int, int]] = None, ) -> torch.BoolTensor: """ Calculate a mask for the test triples with triples containing test-only entities or relations. :param training: shape: (n, 3) The training triples...
def _prepare_cleanup(training: np.ndarray, testing: np.ndarray) -> np.ndarray: to_move_mask = None for col in [[0, 2], 1]: training_ids, test_ids = [ np.unique(triples[:, col]) for triples in [training, testing] ] to_move = test_ids[~np.isin(test_ids, training_ids)] t...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def __init__( self, *, path: Union[None, str, TextIO] = None, triples: Optional[LabeledTriples] = None, path_to_numeric_triples: Union[None, str, TextIO] = None, numeric_triples: Optional[np.ndarray] = None, **kwargs, ) -> None: """Initialize the multi-modal triples factory. :param ...
def __init__( self, *, path: Union[None, str, TextIO] = None, triples: Optional[LabeledTriples] = None, path_to_numeric_triples: Union[None, str, TextIO] = None, numeric_triples: Optional[np.ndarray] = None, **kwargs, ) -> None: """Initialize the multi-modal triples factory. :param ...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def get_entities(triples: torch.LongTensor) -> Set[int]: """Get all entities from the triples.""" return set(triples[:, [0, 2]].flatten().tolist())
def get_entities(triples) -> Set: """Get all entities from the triples.""" return set(triples[:, [0, 2]].flatten().tolist())
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def get_relations(triples: torch.LongTensor) -> Set[int]: """Get all relations from the triples.""" return set(triples[:, 1].tolist())
def get_relations(triples) -> Set: """Get all relations from the triples.""" return set(triples[:, 1])
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def invert_mapping(mapping: Mapping[K, V]) -> Mapping[V, K]: """ Invert a mapping. :param mapping: The mapping, key -> value. :return: The inverse mapping, value -> key. """ num_unique_values = len(set(mapping.values())) num_keys = len(mapping) if num_unique_values < nu...
def invert_mapping(mapping: Mapping[str, int]) -> Mapping[int, str]: """ Invert a mapping. :param mapping: The mapping, key -> value. :return: The inverse mapping, value -> key. """ num_unique_values = len(set(mapping.values())) num_keys = len(mapping) if num_unique_val...
https://github.com/pykeen/pykeen/issues/146
Traceback (most recent call last): File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 49, in <module> main() File "/Users/cthoyt/dev/pykeen/scratch/tst.py", line 36, in main testing.new_with_restriction(relations=evaluation_relation_whitelist) File "/Users/cthoyt/dev/pykeen/src/pykeen/triples/triples_factory.py", lin...
KeyError
def prepare_ablation_from_config( config: Mapping[str, Any], directory: str, save_artifacts: bool ): """Prepare a set of ablation study directories.""" metadata = config["metadata"] optuna_config = config["optuna"] ablation_config = config["ablation"] evaluator = ablation_config["evaluator"] ...
def prepare_ablation_from_config( config: Mapping[str, Any], directory: str, save_artifacts: bool ): """Prepare a set of ablation study directories.""" metadata = config["metadata"] optuna_config = config["optuna"] ablation_config = config["ablation"] evaluator = ablation_config["evaluator"] ...
https://github.com/pykeen/pykeen/issues/92
ValueError Traceback (most recent call last) <ipython-input-13-ef15ccdc9011> in <module> 3 4 tf = TriplesFactory(path=work_path + '/eucalyptus_triplets.txt') ----> 5 training, testing = tf.split() 6 7 pipeline_result = pipeline( ~\anaconda3\envs\pykeen\lib\site-packages\pykeen\triples\tr...
ValueError
def main( path: str, directory: str, test_ratios, no_validation: bool, validation_ratios, reload, seed, ): """Make a dataset from the given triples.""" os.makedirs(directory, exist_ok=True) triples_factory = TriplesFactory(path=path) ratios = test_ratios if no_validation els...
def main( path: str, directory: str, test_ratios, no_validation: bool, validation_ratios, reload, seed, ): """Make a dataset from the given triples.""" os.makedirs(directory, exist_ok=True) triples_factory = TriplesFactory(path=path) ratios = test_ratios if no_validation els...
https://github.com/pykeen/pykeen/issues/92
ValueError Traceback (most recent call last) <ipython-input-13-ef15ccdc9011> in <module> 3 4 tf = TriplesFactory(path=work_path + '/eucalyptus_triplets.txt') ----> 5 training, testing = tf.split() 6 7 pipeline_result = pipeline( ~\anaconda3\envs\pykeen\lib\site-packages\pykeen\triples\tr...
ValueError
def pipeline( # noqa: C901 *, # 1. Dataset dataset: Union[None, str, Type[DataSet]] = None, dataset_kwargs: Optional[Mapping[str, Any]] = None, training_triples_factory: Optional[TriplesFactory] = None, testing_triples_factory: Optional[TriplesFactory] = None, validation_triples_factory: Op...
def pipeline( # noqa: C901 *, # 1. Dataset dataset: Union[None, str, Type[DataSet]] = None, dataset_kwargs: Optional[Mapping[str, Any]] = None, training_triples_factory: Optional[TriplesFactory] = None, testing_triples_factory: Optional[TriplesFactory] = None, validation_triples_factory: Op...
https://github.com/pykeen/pykeen/issues/92
ValueError Traceback (most recent call last) <ipython-input-13-ef15ccdc9011> in <module> 3 4 tf = TriplesFactory(path=work_path + '/eucalyptus_triplets.txt') ----> 5 training, testing = tf.split() 6 7 pipeline_result = pipeline( ~\anaconda3\envs\pykeen\lib\site-packages\pykeen\triples\tr...
ValueError
def create_lcwa_instances(self, use_tqdm: Optional[bool] = None) -> LCWAInstances: """Create LCWA instances for this factory's triples.""" s_p_to_multi_tails = _create_multi_label_tails_instance( mapped_triples=self.mapped_triples, use_tqdm=use_tqdm, ) sp, multi_o = zip(*s_p_to_multi_tai...
def create_lcwa_instances(self, use_tqdm: Optional[bool] = None) -> LCWAInstances: """Create LCWA instances for this factory's triples.""" s_p_to_multi_tails = _create_multi_label_tails_instance( mapped_triples=self.mapped_triples, use_tqdm=use_tqdm, ) sp, multi_o = zip(*s_p_to_multi_tai...
https://github.com/pykeen/pykeen/issues/92
ValueError Traceback (most recent call last) <ipython-input-13-ef15ccdc9011> in <module> 3 4 tf = TriplesFactory(path=work_path + '/eucalyptus_triplets.txt') ----> 5 training, testing = tf.split() 6 7 pipeline_result = pipeline( ~\anaconda3\envs\pykeen\lib\site-packages\pykeen\triples\tr...
ValueError
def split( self, ratios: Union[float, Sequence[float]] = 0.8, *, random_state: Union[None, int, np.random.RandomState] = None, randomize_cleanup: bool = False, ) -> List["TriplesFactory"]: """Split a triples factory into a train/test. :param ratios: There are three options for this argument...
def split( self, ratios: Union[float, Sequence[float]] = 0.8, *, random_state: Union[None, int, np.random.RandomState] = None, randomize_cleanup: bool = False, ) -> List["TriplesFactory"]: """Split a triples factory into a train/test. :param ratios: There are three options for this argument...
https://github.com/pykeen/pykeen/issues/92
ValueError Traceback (most recent call last) <ipython-input-13-ef15ccdc9011> in <module> 3 4 tf = TriplesFactory(path=work_path + '/eucalyptus_triplets.txt') ----> 5 training, testing = tf.split() 6 7 pipeline_result = pipeline( ~\anaconda3\envs\pykeen\lib\site-packages\pykeen\triples\tr...
ValueError
def _tf_cleanup_randomized( training: np.ndarray, testing: np.ndarray, random_state: Union[None, int, np.random.RandomState] = None, ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array, but randomly select testing triples and recalculate to minimize moves. 1. Calculate ``move_id_mask`` a...
def _tf_cleanup_randomized( training: np.ndarray, testing: np.ndarray, random_state: Union[None, int, np.random.RandomState] = None, ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array, but randomly select testing triples and recalculate to minimize moves. 1. Calculate ``move_id_mask`` a...
https://github.com/pykeen/pykeen/issues/92
ValueError Traceback (most recent call last) <ipython-input-13-ef15ccdc9011> in <module> 3 4 tf = TriplesFactory(path=work_path + '/eucalyptus_triplets.txt') ----> 5 training, testing = tf.split() 6 7 pipeline_result = pipeline( ~\anaconda3\envs\pykeen\lib\site-packages\pykeen\triples\tr...
ValueError
def split( self, ratios: Union[float, Sequence[float]] = 0.8, *, random_state: Union[None, int, np.random.RandomState] = None, randomize_cleanup: bool = False, ) -> List["TriplesFactory"]: """Split a triples factory into a train/test. :param ratios: There are three options for this argument...
def split( self, ratios: Union[float, Sequence[float]] = 0.8, *, random_state: Union[None, int, np.random.RandomState] = None, randomize_cleanup: bool = False, ) -> List["TriplesFactory"]: """Split a triples factory into a train/test. :param ratios: There are three options for this argument...
https://github.com/pykeen/pykeen/issues/58
Using random_state=1333753659 to split TriplesFactory(path="/tmp/out") No random seed is specified. Setting to 2098687070. No cuda devices were available. The model runs on CPU Training epochs on cpu: 0%| | 0/5 [00:00<?, ?epoch/s]INFO:pykeen.training.training_...
IndexError
def _tf_cleanup_deterministic( training: np.ndarray, testing: np.ndarray ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array (testing) with respect to another (training).""" move_id_mask = _prepare_cleanup(training, testing) training = np.concatenate([training, testing[move_id_mask]]) te...
def _tf_cleanup_deterministic( training: np.ndarray, testing: np.ndarray ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array (testing) with respect to another (training).""" training_entities, testing_entities, to_move, move_id_mask = _prepare_cleanup( training, testing ) trainin...
https://github.com/pykeen/pykeen/issues/58
Using random_state=1333753659 to split TriplesFactory(path="/tmp/out") No random seed is specified. Setting to 2098687070. No cuda devices were available. The model runs on CPU Training epochs on cpu: 0%| | 0/5 [00:00<?, ?epoch/s]INFO:pykeen.training.training_...
IndexError
def _tf_cleanup_randomized( training: np.ndarray, testing: np.ndarray, random_state: Union[None, int, np.random.RandomState] = None, ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array, but randomly select testing triples and recalculate to minimize moves. 1. Calculate ``move_id_mask`` a...
def _tf_cleanup_randomized( training: np.ndarray, testing: np.ndarray, random_state: Union[None, int, np.random.RandomState] = None, ) -> Tuple[np.ndarray, np.ndarray]: """Cleanup a triples array, but randomly select testing triples and recalculate to minimize moves. 1. Calculate ``move_id_mask`` a...
https://github.com/pykeen/pykeen/issues/58
Using random_state=1333753659 to split TriplesFactory(path="/tmp/out") No random seed is specified. Setting to 2098687070. No cuda devices were available. The model runs on CPU Training epochs on cpu: 0%| | 0/5 [00:00<?, ?epoch/s]INFO:pykeen.training.training_...
IndexError
def _prepare_cleanup(training: np.ndarray, testing: np.ndarray) -> np.ndarray: to_move_mask = None for col in [[0, 2], 1]: training_ids, test_ids = [ np.unique(triples[:, col]) for triples in [training, testing] ] to_move = test_ids[~np.isin(test_ids, training_ids)] t...
def _prepare_cleanup(training: np.ndarray, testing: np.ndarray): training_entities = _get_unique(training) testing_entities = _get_unique(testing) to_move = testing_entities[~np.isin(testing_entities, training_entities)] move_id_mask = np.isin(testing[:, [0, 2]], to_move).any(axis=1) return training...
https://github.com/pykeen/pykeen/issues/58
Using random_state=1333753659 to split TriplesFactory(path="/tmp/out") No random seed is specified. Setting to 2098687070. No cuda devices were available. The model runs on CPU Training epochs on cpu: 0%| | 0/5 [00:00<?, ?epoch/s]INFO:pykeen.training.training_...
IndexError
def __init__(self, coresys: CoreSys, addon: AnyAddon) -> None: """Initialize Supervisor add-on builder.""" self.coresys: CoreSys = coresys self.addon = addon try: build_file = find_one_filetype( self.addon.path_location, "build", FILE_SUFFIX_CONFIGURATION ) except Config...
def __init__(self, coresys: CoreSys, addon: AnyAddon) -> None: """Initialize Supervisor add-on builder.""" self.coresys: CoreSys = coresys self.addon = addon super().__init__( find_one_filetype(self.addon.path_location, "build", FILE_SUFFIX_CONFIGURATION), SCHEMA_BUILD_CONFIG, )
https://github.com/home-assistant/supervisor/issues/2669
21-03-03 19:11:51 ERROR (MainThread) [supervisor.jobs] Unhandled exception: 'NoneType' object has no attribute 'is_file' Traceback (most recent call last): File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 100, in wrapper return await self._method(*args, **kwargs) File "/usr/src/supervisor/supervisor/addons...
AttributeError
def _read_git_repository(self, path: Path) -> None: """Process a custom repository folder.""" slug = extract_hash_from_path(path) # exists repository json try: repository_file = find_one_filetype( path, "repository", FILE_SUFFIX_CONFIGURATION ) except ConfigurationFileEr...
def _read_git_repository(self, path: Path) -> None: """Process a custom repository folder.""" slug = extract_hash_from_path(path) # exists repository json repository_file = find_one_filetype(path, "repository", FILE_SUFFIX_CONFIGURATION) if repository_file is None: _LOGGER.warning("No repo...
https://github.com/home-assistant/supervisor/issues/2669
21-03-03 19:11:51 ERROR (MainThread) [supervisor.jobs] Unhandled exception: 'NoneType' object has no attribute 'is_file' Traceback (most recent call last): File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 100, in wrapper return await self._method(*args, **kwargs) File "/usr/src/supervisor/supervisor/addons...
AttributeError
def find_one_filetype(path: Path, filename: str, filetypes: List[str]) -> Path: """Find first file matching filetypes.""" for file in path.glob(f"**/{filename}.*"): if file.suffix in filetypes: return file raise ConfigurationFileError(f"{path!s}/{filename}.({filetypes}) not exists!")
def find_one_filetype( path: Path, filename: str, filetypes: List[str] ) -> Optional[Path]: """Find first file matching filetypes.""" for file in path.glob(f"**/{filename}.*"): if file.suffix in filetypes: return file return None
https://github.com/home-assistant/supervisor/issues/2669
21-03-03 19:11:51 ERROR (MainThread) [supervisor.jobs] Unhandled exception: 'NoneType' object has no attribute 'is_file' Traceback (most recent call last): File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 100, in wrapper return await self._method(*args, **kwargs) File "/usr/src/supervisor/supervisor/addons...
AttributeError
def ipconfig_struct(config: IpConfig) -> Dict[str, Any]: """Return a dict with information about ip configuration.""" return { ATTR_METHOD: config.method, ATTR_ADDRESS: [address.with_prefixlen for address in config.address], ATTR_NAMESERVERS: [str(address) for address in config.nameserve...
def ipconfig_struct(config: IpConfig) -> dict: """Return a dict with information about ip configuration.""" return { ATTR_METHOD: config.method, ATTR_ADDRESS: [address.with_prefixlen for address in config.address], ATTR_NAMESERVERS: [str(address) for address in config.nameservers], ...
https://github.com/home-assistant/supervisor/issues/2333
20-12-03 14:56:14 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrat...
AttributeError
def wifi_struct(config: WifiConfig) -> Dict[str, Any]: """Return a dict with information about wifi configuration.""" return { ATTR_MODE: config.mode, ATTR_AUTH: config.auth, ATTR_SSID: config.ssid, ATTR_SIGNAL: config.signal, }
def wifi_struct(config: WifiConfig) -> dict: """Return a dict with information about wifi configuration.""" return { ATTR_MODE: config.mode, ATTR_AUTH: config.auth, ATTR_SSID: config.ssid, ATTR_SIGNAL: config.signal, }
https://github.com/home-assistant/supervisor/issues/2333
20-12-03 14:56:14 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrat...
AttributeError
def interface_struct(interface: Interface) -> Dict[str, Any]: """Return a dict with information of a interface to be used in th API.""" return { ATTR_INTERFACE: interface.name, ATTR_TYPE: interface.type, ATTR_ENABLED: interface.enabled, ATTR_CONNECTED: interface.connected, ...
def interface_struct(interface: Interface) -> dict: """Return a dict with information of a interface to be used in th API.""" return { ATTR_INTERFACE: interface.name, ATTR_TYPE: interface.type, ATTR_ENABLED: interface.enabled, ATTR_CONNECTED: interface.connected, ATTR_PRI...
https://github.com/home-assistant/supervisor/issues/2333
20-12-03 14:56:14 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrat...
AttributeError
def accesspoint_struct(accesspoint: AccessPoint) -> Dict[str, Any]: """Return a dict for AccessPoint.""" return { ATTR_MODE: accesspoint.mode, ATTR_SSID: accesspoint.ssid, ATTR_FREQUENCY: accesspoint.frequency, ATTR_SIGNAL: accesspoint.signal, ATTR_MAC: accesspoint.mac, ...
def accesspoint_struct(accesspoint: AccessPoint) -> dict: """Return a dict for AccessPoint.""" return { ATTR_MODE: accesspoint.mode, ATTR_SSID: accesspoint.ssid, ATTR_FREQUENCY: accesspoint.frequency, ATTR_SIGNAL: accesspoint.signal, ATTR_MAC: accesspoint.mac, }
https://github.com/home-assistant/supervisor/issues/2333
20-12-03 14:56:14 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrat...
AttributeError
def find_key(self, items, write=False): overwrite = self.config["overwrite"].get(bool) command = [self.config["bin"].as_str()] # The KeyFinder GUI program needs the -f flag before the path. # keyfinder-cli is similar, but just wants the path with no flag. if "keyfinder-cli" not in os.path.basename(c...
def find_key(self, items, write=False): overwrite = self.config["overwrite"].get(bool) command = [self.config["bin"].as_str()] # The KeyFinder GUI program needs the -f flag before the path. # keyfinder-cli is similar, but just wants the path with no flag. if "keyfinder-cli" not in os.path.basename(c...
https://github.com/beetbox/beets/issues/2242
user configuration: /home/diomekes/.config/beets/config.yaml data directory: /home/diomekes/.config/beets plugin paths: Sending event: pluginload inline: adding item field disc_and_track library database: /home/diomekes/.config/beets/library.db library directory: /home/diomekes/media/music Sending event: library_opened...
IndexError
def commands(self): cmd = ui.Subcommand("lyrics", help="fetch song lyrics") cmd.parser.add_option( "-p", "--print", dest="printlyr", action="store_true", default=False, help="print lyrics to console", ) cmd.parser.add_option( "-r", "--write...
def commands(self): cmd = ui.Subcommand("lyrics", help="fetch song lyrics") cmd.parser.add_option( "-p", "--print", dest="printlyr", action="store_true", default=False, help="print lyrics to console", ) cmd.parser.add_option( "-r", "--write...
https://github.com/beetbox/beets/issues/2805
$ beet -vv lyrics artie shaw carioca user configuration: /home/doron/.config/beets/config.yaml data directory: /home/doron/.config/beets plugin paths: Sending event: pluginload inline: adding item field isMultiDisc library database: /var/lib/beets/db library directory: /var/lib/mpd/music Sending event: library_opened l...
AttributeError
def func(lib, opts, args): # The "write to files" option corresponds to the # import_write config value. write = ui.should_write() if opts.writerest: self.writerest_indexes(opts.writerest) items = lib.items(ui.decargs(args)) for item in items: if not opts.local_only and not self....
def func(lib, opts, args): # The "write to files" option corresponds to the # import_write config value. write = ui.should_write() if opts.writerest: self.writerest_indexes(opts.writerest) for item in lib.items(ui.decargs(args)): if not opts.local_only and not self.config["local"]: ...
https://github.com/beetbox/beets/issues/2805
$ beet -vv lyrics artie shaw carioca user configuration: /home/doron/.config/beets/config.yaml data directory: /home/doron/.config/beets plugin paths: Sending event: pluginload inline: adding item field isMultiDisc library database: /var/lib/beets/db library directory: /var/lib/mpd/music Sending event: library_opened l...
AttributeError
def writerest(self, directory): """Write self.rest to a ReST file""" if self.rest is not None and self.artist is not None: path = os.path.join(directory, "artists", slug(self.artist) + ".rst") with open(path, "wb") as output: output.write(self.rest.encode("utf-8"))
def writerest(self, directory, item): """Write the item to an ReST file This will keep state (in the `rest` variable) in order to avoid writing continuously to the same files. """ if item is None or slug(self.artist) != slug(item.albumartist): if self.rest is not None: path = o...
https://github.com/beetbox/beets/issues/2805
$ beet -vv lyrics artie shaw carioca user configuration: /home/doron/.config/beets/config.yaml data directory: /home/doron/.config/beets plugin paths: Sending event: pluginload inline: adding item field isMultiDisc library database: /var/lib/beets/db library directory: /var/lib/mpd/music Sending event: library_opened l...
AttributeError
def album_for_id(self, album_id): """Fetches an album by its Discogs ID and returns an AlbumInfo object or None if the album is not found. """ if not self.discogs_client: return self._log.debug("Searching for release {0}", album_id) # Discogs-IDs are simple integers. We only look for th...
def album_for_id(self, album_id): """Fetches an album by its Discogs ID and returns an AlbumInfo object or None if the album is not found. """ if not self.discogs_client: return self._log.debug("Searching for release {0}", album_id) # Discogs-IDs are simple integers. We only look for th...
https://github.com/beetbox/beets/issues/3239
File "/beets/beetsplug/discogs.py", line 257, in get_master_year year = result.fetch('year') File "/usr/lib/python3.7/site-packages/discogs_client/models.py", line 245, in fetch self.refresh() File "/usr/lib/python3.7/site-packages/discogs_client/models.py", line 211, in refresh data = self.client._get(self.data['resou...
discogs_client.exceptions.HTTPError
def get_master_year(self, master_id): """Fetches a master release given its Discogs ID and returns its year or None if the master release is not found. """ self._log.debug("Searching for master release {0}", master_id) result = Master(self.discogs_client, {"id": master_id}) self.request_start()...
def get_master_year(self, master_id): """Fetches a master release given its Discogs ID and returns its year or None if the master release is not found. """ self._log.debug("Searching for master release {0}", master_id) result = Master(self.discogs_client, {"id": master_id}) self.request_start()...
https://github.com/beetbox/beets/issues/3239
File "/beets/beetsplug/discogs.py", line 257, in get_master_year year = result.fetch('year') File "/usr/lib/python3.7/site-packages/discogs_client/models.py", line 245, in fetch self.refresh() File "/usr/lib/python3.7/site-packages/discogs_client/models.py", line 211, in refresh data = self.client._get(self.data['resou...
discogs_client.exceptions.HTTPError
def open_audio_file(self, item): """Open the file to read the PCM stream from the using ``item.path``. :return: the audiofile instance :rtype: :class:`audiotools.AudioFile` :raises :exc:`ReplayGainError`: if the file is not found or the file format is not supported """ try: audi...
def open_audio_file(self, item): """Open the file to read the PCM stream from the using ``item.path``. :return: the audiofile instance :rtype: :class:`audiotools.AudioFile` :raises :exc:`ReplayGainError`: if the file is not found or the file format is not supported """ try: audi...
https://github.com/beetbox/beets/issues/3305
Sending event: library_opened replaygain: analyzing Pink Floyd - The Wall - In the Flesh? Traceback (most recent call last): File "/usr/bin/beet", line 11, in <module> load_entry_point('beets==1.5.0', 'console_scripts', 'beet')() File "/usr/lib/python3.7/site-packages/beets-1.5.0-py3.7.egg/beets/ui/__init__.py", line 1...
TypeError
def authenticate(self): if self.m.is_authenticated(): return # Checks for OAuth2 credentials, # if they don't exist - performs authorization oauth_file = self.config["oauth_file"].as_filename() if os.path.isfile(oauth_file): uploader_id = self.config["uploader_id"] uploader_n...
def authenticate(self): if self.m.is_authenticated(): return # Checks for OAuth2 credentials, # if they don't exist - performs authorization oauth_file = self.config["oauth_file"].as_str() if os.path.isfile(oauth_file): uploader_id = self.config["uploader_id"] uploader_name =...
https://github.com/beetbox/beets/issues/3270
user configuration: /home/jlivin25/.config/beets/config.yaml data directory: /home/jlivin25/.config/beets plugin paths: /home/jlivin25/.config/beets/myplugins Sending event: pluginload Traceback (most recent call last): File "/home/jlivin25/.local/bin/beet", line 11, in <module> sys.exit(main()) File "/home/jlivin25/.l...
AttributeError
def parse_tool_output(self, text, path_list, is_album): """Given the output from bs1770gain, parse the text and return a list of dictionaries containing information about each analyzed file. """ per_file_gain = {} album_gain = {} # mutable variable so it can be set from handlers parser = x...
def parse_tool_output(self, text, path_list, is_album): """Given the output from bs1770gain, parse the text and return a list of dictionaries containing information about each analyzed file. """ per_file_gain = {} album_gain = {} # mutable variable so it can be set from handlers parser = x...
https://github.com/beetbox/beets/issues/2983
[…] replaygain: executing bs1770gain --ebu --xml -p /home/breversa/Musique/00tz 00tz/Endzeit Bunkertracks [act VII] – The bonus tracks/00tz 00tz - Poisoned minds and broken hearts (Alarm mix).flac /home/breversa/Musique/[Fabrikmutter]/Endzeit Bunkertracks [act VII] – The bonus tracks/[Fabrikmutter] - The minimal devoti...
xml.parsers.expat.ExpatError
def __init__(self): super(LyricsPlugin, self).__init__() self.import_stages = [self.imported] self.config.add( { "auto": True, "bing_client_secret": None, "bing_lang_from": [], "bing_lang_to": None, "google_API_key": None, "goog...
def __init__(self): super(LyricsPlugin, self).__init__() self.import_stages = [self.imported] self.config.add( { "auto": True, "bing_client_secret": None, "bing_lang_from": [], "bing_lang_to": None, "google_API_key": None, "goog...
https://github.com/beetbox/beets/issues/2911
(Pdb++) n Traceback (most recent call last): File "/home/q/envs/beets/bin/beet", line 11, in <module> sys.exit(main()) File "/home/q/envs/beets/lib/python3.6/site-packages/beets/ui/__init__.py", line 1257, in main _raw_main(args) File "/home/q/envs/beets/lib/python3.6/site-packages/beets/ui/__init__.py", line 1239, in ...
ValueError
def lyrics_from_song_api_path(self, song_api_path): song_url = self.base_url + song_api_path response = requests.get(song_url, headers=self.headers) json = response.json() path = json["response"]["song"]["path"] # Gotta go regular html scraping... come on Genius. page_url = "https://genius.com"...
def lyrics_from_song_api_path(self, song_api_path): song_url = self.base_url + song_api_path response = requests.get(song_url, headers=self.headers) json = response.json() path = json["response"]["song"]["path"] # gotta go regular html scraping... come on Genius page_url = "https://genius.com" +...
https://github.com/beetbox/beets/issues/2545
====================================================================== FAIL: Test default backends with songs known to exist in respective databases. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/flap/Dev/beets/test/test_lyrics.py", line 316, in t...
AssertionError
def item_file(item_id): item = g.lib.get_item(item_id) item_path = ( util.syspath(item.path) if (os.name == "nt") else (util.py3_path(item.path)) ) response = flask.send_file( item_path, as_attachment=True, attachment_filename=os.path.basename(util.py3_path(item.path)), ...
def item_file(item_id): item = g.lib.get_item(item_id) item_path = util.syspath(item.path) if os.name == "nt" else util.py3_path(item.path) response = flask.send_file( item_path, as_attachment=True, attachment_filename=os.path.basename(util.py3_path(item.path)), ) response.he...
https://github.com/beetbox/beets/issues/2592
[2017-06-14 21:36:27,233] ERROR in app: Exception on /item/52117/file [GET] Traceback (most recent call last): File "c:\python\lib\site-packages\flask\app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "c:\python\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request rv = self.ha...
IOError
def item_file(item_id): item = g.lib.get_item(item_id) item_path = ( util.syspath(item.path) if (os.name == "nt") else (util.py3_path(item.path)) ) response = flask.send_file( item_path, as_attachment=True, attachment_filename=os.path.basename(util.py3_path(item.path)), ...
def item_file(item_id): item = g.lib.get_item(item_id) response = flask.send_file( util.py3_path(item.path), as_attachment=True, attachment_filename=os.path.basename(util.py3_path(item.path)), ) response.headers["Content-Length"] = os.path.getsize(item.path) return response
https://github.com/beetbox/beets/issues/2592
[2017-06-14 21:36:27,233] ERROR in app: Exception on /item/52117/file [GET] Traceback (most recent call last): File "c:\python\lib\site-packages\flask\app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "c:\python\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request rv = self.ha...
IOError
def _rep(obj, expand=False): """Get a flat -- i.e., JSON-ish -- representation of a beets Item or Album object. For Albums, `expand` dictates whether tracks are included. """ out = dict(obj) if isinstance(obj, beets.library.Item): if app.config.get("INCLUDE_PATHS", False): o...
def _rep(obj, expand=False): """Get a flat -- i.e., JSON-ish -- representation of a beets Item or Album object. For Albums, `expand` dictates whether tracks are included. """ out = dict(obj) if isinstance(obj, beets.library.Item): if app.config.get("INCLUDE_PATHS", False): o...
https://github.com/beetbox/beets/issues/2532
~ ➔ beet -vv web * Running on http://127.0.0.1:8337/ (Press CTRL+C to quit) 127.0.0.1 - - [30/Apr/2017 11:05:15] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [30/Apr/2017 11:05:22] "GET /item/query/isabel HTTP/1.1" 200 - Error on request: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/werkzeug/servin...
TypeError
def _rep(obj, expand=False): """Get a flat -- i.e., JSON-ish -- representation of a beets Item or Album object. For Albums, `expand` dictates whether tracks are included. """ out = dict(obj) if isinstance(obj, beets.library.Item): if app.config.get("INCLUDE_PATHS", False): o...
def _rep(obj, expand=False): """Get a flat -- i.e., JSON-ish -- representation of a beets Item or Album object. For Albums, `expand` dictates whether tracks are included. """ out = dict(obj) if isinstance(obj, beets.library.Item): if app.config.get("INCLUDE_PATHS", False): o...
https://github.com/beetbox/beets/issues/2532
~ ➔ beet -vv web * Running on http://127.0.0.1:8337/ (Press CTRL+C to quit) 127.0.0.1 - - [30/Apr/2017 11:05:15] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [30/Apr/2017 11:05:22] "GET /item/query/isabel HTTP/1.1" 200 - Error on request: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/werkzeug/servin...
TypeError
def get_albums(self, query): """Returns a list of AlbumInfo objects for a discogs search query.""" # Strip non-word characters from query. Things like "!" and "-" can # cause a query to return no results, even if they match the artist or # album title. Use `re.UNICODE` flag to avoid stripping non-englis...
def get_albums(self, query): """Returns a list of AlbumInfo objects for a discogs search query.""" # Strip non-word characters from query. Things like "!" and "-" can # cause a query to return no results, even if they match the artist or # album title. Use `re.UNICODE` flag to avoid stripping non-englis...
https://github.com/beetbox/beets/issues/2302
/data/Music/Unsorted/New Stuff/Para One - 2003 - Paraone - Iris - Le Sept - Flynt - Lyricson (Maxi) [CD - FLAC] (6 items) Finding tags for album "Paraone - Iris - Le sept - Flynt - Lyricson - Paraone - Iris - Le Sept - Flynt - Lyricson". Candidates: 1. The Kenny Clarke - Francy Boland Big Band - Paris Jazz Concert: TNP...
IndexError
def get_album_info(self, result): """Returns an AlbumInfo object for a discogs Release object.""" # Explicitly reload the `Release` fields, as they might not be yet # present if the result is from a `discogs_client.search()`. if not result.data.get("artists"): result.refresh() # Sanity chec...
def get_album_info(self, result): """Returns an AlbumInfo object for a discogs Release object.""" artist, artist_id = self.get_artist([a.data for a in result.artists]) album = re.sub(r" +", " ", result.title) album_id = result.data["id"] # Use `.data` to access the tracklist directly instead of the ...
https://github.com/beetbox/beets/issues/2302
/data/Music/Unsorted/New Stuff/Para One - 2003 - Paraone - Iris - Le Sept - Flynt - Lyricson (Maxi) [CD - FLAC] (6 items) Finding tags for album "Paraone - Iris - Le sept - Flynt - Lyricson - Paraone - Iris - Le Sept - Flynt - Lyricson". Candidates: 1. The Kenny Clarke - Francy Boland Big Band - Paris Jazz Concert: TNP...
IndexError
def match(self, item): if self.field not in item: return False timestamp = float(item[self.field]) date = datetime.utcfromtimestamp(timestamp) return self.interval.contains(date)
def match(self, item): timestamp = float(item[self.field]) date = datetime.utcfromtimestamp(timestamp) return self.interval.contains(date)
https://github.com/beetbox/beets/issues/1938
user configuration: ~/.config/beets/config.yaml data directory: ~/.config/beets plugin paths: /usr/local/bin/wlg Sending event: pluginload inline: adding item field multidisc artresizer: method is (2, (6, 9, 3)) thumbnails: using IM to write metadata thumbnails: using GIO to compute URIs library database: /net/nfs4/ser...
KeyError
def _is_hidden_osx(path): """Return whether or not a file is hidden on OS X. This uses os.lstat to work out if a file has the "hidden" flag. """ file_stat = os.lstat(beets.util.syspath(path)) if hasattr(file_stat, "st_flags") and hasattr(stat, "UF_HIDDEN"): return bool(file_stat.st_flags &...
def _is_hidden_osx(path): """Return whether or not a file is hidden on OS X. This uses os.lstat to work out if a file has the "hidden" flag. """ file_stat = os.lstat(path) if hasattr(file_stat, "st_flags") and hasattr(stat, "UF_HIDDEN"): return bool(file_stat.st_flags & stat.UF_HIDDEN) ...
https://github.com/beetbox/beets/issues/2168
Traceback (most recent call last): File "/usr/bin/beet", line 9, in <module> load_entry_point('beets==1.3.19', 'console_scripts', 'beet')() File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1266, in main _raw_main(args) File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1253, in _raw_ma...
UnicodeDecodeError
def _is_hidden_win(path): """Return whether or not a file is hidden on Windows. This uses GetFileAttributes to work out if a file has the "hidden" flag (FILE_ATTRIBUTE_HIDDEN). """ # FILE_ATTRIBUTE_HIDDEN = 2 (0x2) from GetFileAttributes documentation. hidden_mask = 2 # Retrieve the attrib...
def _is_hidden_win(path): """Return whether or not a file is hidden on Windows. This uses GetFileAttributes to work out if a file has the "hidden" flag (FILE_ATTRIBUTE_HIDDEN). """ # FILE_ATTRIBUTE_HIDDEN = 2 (0x2) from GetFileAttributes documentation. hidden_mask = 2 # Retrieve the attrib...
https://github.com/beetbox/beets/issues/2168
Traceback (most recent call last): File "/usr/bin/beet", line 9, in <module> load_entry_point('beets==1.3.19', 'console_scripts', 'beet')() File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1266, in main _raw_main(args) File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1253, in _raw_ma...
UnicodeDecodeError
def _is_hidden_dot(path): """Return whether or not a file starts with a dot. Files starting with a dot are seen as "hidden" files on Unix-based OSes. """ return os.path.basename(path).startswith(b".")
def _is_hidden_dot(path): """Return whether or not a file starts with a dot. Files starting with a dot are seen as "hidden" files on Unix-based OSes. """ return os.path.basename(path).startswith(".")
https://github.com/beetbox/beets/issues/2168
Traceback (most recent call last): File "/usr/bin/beet", line 9, in <module> load_entry_point('beets==1.3.19', 'console_scripts', 'beet')() File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1266, in main _raw_main(args) File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1253, in _raw_ma...
UnicodeDecodeError
def is_hidden(path): """Return whether or not a file is hidden. `path` should be a bytestring filename. This method works differently depending on the platform it is called on. On OS X, it uses both the result of `is_hidden_osx` and `is_hidden_dot` to work out if a file is hidden. On Windows,...
def is_hidden(path): """Return whether or not a file is hidden. This method works differently depending on the platform it is called on. On OS X, it uses both the result of `is_hidden_osx` and `is_hidden_dot` to work out if a file is hidden. On Windows, it uses the result of `is_hidden_win` to wo...
https://github.com/beetbox/beets/issues/2168
Traceback (most recent call last): File "/usr/bin/beet", line 9, in <module> load_entry_point('beets==1.3.19', 'console_scripts', 'beet')() File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1266, in main _raw_main(args) File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 1253, in _raw_ma...
UnicodeDecodeError
def sort(self, objs): # TODO: Conversion and null-detection here. In Python 3, # comparisons with None fail. We should also support flexible # attributes with different types without falling over. def key(item): field_val = item.get(self.field, "") if self.case_insensitive and isinstanc...
def sort(self, objs): # TODO: Conversion and null-detection here. In Python 3, # comparisons with None fail. We should also support flexible # attributes with different types without falling over. def key(item): field_val = getattr(item, self.field) if self.case_insensitive and isinstan...
https://github.com/beetbox/beets/issues/1734
$ beet ls -- -- Traceback (most recent call last): File "/home/asampson/.local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.16', 'console_scripts', 'beet')() File "/home/asampson/beets/beets/ui/__init__.py", line 1207, in main _raw_main(args) File "/home/asampson/beets/beets/ui/__init__.py", line 1197, i...
AttributeError
def key(item): field_val = item.get(self.field, "") if self.case_insensitive and isinstance(field_val, unicode): field_val = field_val.lower() return field_val
def key(item): field_val = getattr(item, self.field) if self.case_insensitive and isinstance(field_val, unicode): field_val = field_val.lower() return field_val
https://github.com/beetbox/beets/issues/1734
$ beet ls -- -- Traceback (most recent call last): File "/home/asampson/.local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.16', 'console_scripts', 'beet')() File "/home/asampson/beets/beets/ui/__init__.py", line 1207, in main _raw_main(args) File "/home/asampson/beets/beets/ui/__init__.py", line 1197, i...
AttributeError
def is_page_candidate(self, url_link, url_title, title, artist): """Return True if the URL title makes it a good candidate to be a page that contains lyrics of title by artist. """ title = self.slugify(title.lower()) artist = self.slugify(artist.lower()) sitename = re.search("//([^/]+)/.*", self...
def is_page_candidate(self, url_link, url_title, title, artist): """Return True if the URL title makes it a good candidate to be a page that contains lyrics of title by artist. """ title = self.slugify(title.lower()) artist = self.slugify(artist.lower()) sitename = re.search("//([^/]+)/.*", self...
https://github.com/beetbox/beets/issues/1673
Traceback (most recent call last): File "/usr/local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.14', 'console_scripts', 'beet')() File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 1140, in main _raw_main(args) File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", lin...
sre_constants.error
def __init__(self): super(DuplicatesPlugin, self).__init__() self.config.add( { "format": "", "count": False, "album": False, "full": False, "strict": False, "path": False, "keys": ["mb_trackid", "mb_albumid"], ...
def __init__(self): super(DuplicatesPlugin, self).__init__() self.config.add( { "format": "", "count": False, "album": False, "full": False, "strict": False, "path": False, "keys": ["mb_trackid", "mb_albumid"], ...
https://github.com/beetbox/beets/issues/1457
$ beet dup Warning: top-level configuration of `color` is deprecated. Configure color use under `ui`. See documentation for more info. Traceback (most recent call last): File "/usr/local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.14', 'console_scripts', 'beet')() File "/usr/local/lib/python2.7/site-pac...
AttributeError
def commands(self): def _dup(lib, opts, args): self.config.set_args(opts) album = self.config["album"].get(bool) checksum = self.config["checksum"].get(str) copy = self.config["copy"].get(str) count = self.config["count"].get(bool) delete = self.config["delete"].get(b...
def commands(self): def _dup(lib, opts, args): self.config.set_args(opts) fmt = self.config["format"].get() album = self.config["album"].get(bool) full = self.config["full"].get(bool) strict = self.config["strict"].get(bool) keys = self.config["keys"].get() ch...
https://github.com/beetbox/beets/issues/1457
$ beet dup Warning: top-level configuration of `color` is deprecated. Configure color use under `ui`. See documentation for more info. Traceback (most recent call last): File "/usr/local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.14', 'console_scripts', 'beet')() File "/usr/local/lib/python2.7/site-pac...
AttributeError
def _dup(lib, opts, args): self.config.set_args(opts) album = self.config["album"].get(bool) checksum = self.config["checksum"].get(str) copy = self.config["copy"].get(str) count = self.config["count"].get(bool) delete = self.config["delete"].get(bool) fmt = self.config["format"].get(str) ...
def _dup(lib, opts, args): self.config.set_args(opts) fmt = self.config["format"].get() album = self.config["album"].get(bool) full = self.config["full"].get(bool) strict = self.config["strict"].get(bool) keys = self.config["keys"].get() checksum = self.config["checksum"].get() copy = se...
https://github.com/beetbox/beets/issues/1457
$ beet dup Warning: top-level configuration of `color` is deprecated. Configure color use under `ui`. See documentation for more info. Traceback (most recent call last): File "/usr/local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.14', 'console_scripts', 'beet')() File "/usr/local/lib/python2.7/site-pac...
AttributeError
def write(self, path=None, tags=None): """Write the item's metadata to a media file. All fields in `_media_fields` are written to disk according to the values on this object. `path` is the path of the mediafile to wirte the data to. It defaults to the item's path. `tags` is a dictionary of ad...
def write(self, path=None, tags=None): """Write the item's metadata to a media file. All fields in `_media_fields` are written to disk according to the values on this object. `path` is the path of the mediafile to wirte the data to. It defaults to the item's path. `tags` is a dictionary of ad...
https://github.com/beetbox/beets/issues/1404
user configuration: /home/user/.config/beets/config.yaml data directory: /home/user/.config/beets plugin paths: Sending event: pluginload library database: /home/user/.beets-data/musiclibrary.blb library directory: /home/user/Music Sending event: library_opened Modifying 13 items. 10 Years - The Autumn Effect - Fault ...
AttributeError
def authenticate(self, c_key, c_secret): # Get the link for the OAuth page. auth_client = Client(USER_AGENT, c_key, c_secret) try: _, _, url = auth_client.get_authorize_url() except CONNECTION_ERRORS as e: self._log.debug("connection error: {0}", e) raise beets.ui.UserError("comm...
def authenticate(self, c_key, c_secret): # Get the link for the OAuth page. auth_client = Client(USER_AGENT, c_key, c_secret) _, _, url = auth_client.get_authorize_url() beets.ui.print_("To authenticate with Discogs, visit:") beets.ui.print_(url) # Ask for the code and validate it. code = b...
https://github.com/beetbox/beets/issues/1417
Successfully installed beets discogs-client pyacoustid enum34 mutagen munkres unidecode musicbrainzngs pyyaml requests six oauthlib audioread Cleaning up... (env)jwyant@bigbox ~/code/beets $ ./env/bin/beet import ~/.music-incoming/flac Traceback (most recent call last): File "./env/bin/beet", line 9, in <module> load_e...
discogs_client.exceptions.HTTPError
def _getters(cls): getters = plugins.item_field_getters() getters["singleton"] = lambda i: i.album_id is None # Filesize is given in bytes getters["filesize"] = lambda i: i.try_filesize() return getters
def _getters(cls): getters = plugins.item_field_getters() getters["singleton"] = lambda i: i.album_id is None # Filesize is given in bytes getters["filesize"] = lambda i: os.path.getsize(syspath(i.path)) return getters
https://github.com/beetbox/beets/issues/1326
$ beet im /dunehd/Musica\ pendiente/Madonna\ –\ Rebel\ Heart\ \[Deluxe\ Edition\ 2015\]\(MP3\ 320\ Kbps\)/ /dunehd/Musica pendiente/Madonna – Rebel Heart [Deluxe Edition 2015](MP3 320 Kbps)/Track List (25 items) Correcting tags from: Madonna - Rebel Heart Deluxe To: Madonna - Rebel Heart (Super Deluxe Edition) URL: ht...
OSError
def _getters(cls): getters = plugins.item_field_getters() getters["singleton"] = lambda i: i.album_id is None getters["filesize"] = Item.try_filesize # In bytes. return getters
def _getters(cls): getters = plugins.item_field_getters() getters["singleton"] = lambda i: i.album_id is None # Filesize is given in bytes getters["filesize"] = lambda i: i.try_filesize() return getters
https://github.com/beetbox/beets/issues/1326
$ beet im /dunehd/Musica\ pendiente/Madonna\ –\ Rebel\ Heart\ \[Deluxe\ Edition\ 2015\]\(MP3\ 320\ Kbps\)/ /dunehd/Musica pendiente/Madonna – Rebel Heart [Deluxe Edition 2015](MP3 320 Kbps)/Track List (25 items) Correcting tags from: Madonna - Rebel Heart Deluxe To: Madonna - Rebel Heart (Super Deluxe Edition) URL: ht...
OSError
def try_filesize(self): """Get the size of the underlying file in bytes. If the file is missing, return 0 (and log a warning). """ try: return os.path.getsize(syspath(self.path)) except (OSError, Exception) as exc: log.warning("could not get filesize: {0}", exc) return 0
def try_filesize(self): try: return os.path.getsize(syspath(self.path)) except (OSError, Exception) as exc: log.warning("could not get filesize: {0}", exc) return 0
https://github.com/beetbox/beets/issues/1326
$ beet im /dunehd/Musica\ pendiente/Madonna\ –\ Rebel\ Heart\ \[Deluxe\ Edition\ 2015\]\(MP3\ 320\ Kbps\)/ /dunehd/Musica pendiente/Madonna – Rebel Heart [Deluxe Edition 2015](MP3 320 Kbps)/Track List (25 items) Correcting tags from: Madonna - Rebel Heart Deluxe To: Madonna - Rebel Heart (Super Deluxe Edition) URL: ht...
OSError
def _process_item(item, lib, copy=False, move=False, delete=False, tag=False, fmt=""): """Process Item `item` in `lib`.""" if copy: item.move(basedir=copy, copy=True) item.store() if move: item.move(basedir=move, copy=False) item.store() if delete: item.remove(del...
def _process_item( item, lib, copy=False, move=False, delete=False, tag=False, format="" ): """Process Item `item` in `lib`.""" if copy: item.move(basedir=copy, copy=True) item.store() if move: item.move(basedir=move, copy=False) item.store() if delete: item.r...
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def commands(self): def _dup(lib, opts, args): self.config.set_args(opts) fmt = self.config["format"].get() album = self.config["album"].get(bool) full = self.config["full"].get(bool) keys = self.config["keys"].get() checksum = self.config["checksum"].get() co...
def commands(self): def _dup(lib, opts, args): self.config.set_args(opts) fmt = self.config["format"].get() album = self.config["album"].get(bool) full = self.config["full"].get(bool) keys = self.config["keys"].get() checksum = self.config["checksum"].get() co...
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def _dup(lib, opts, args): self.config.set_args(opts) fmt = self.config["format"].get() album = self.config["album"].get(bool) full = self.config["full"].get(bool) keys = self.config["keys"].get() checksum = self.config["checksum"].get() copy = self.config["copy"].get() move = self.confi...
def _dup(lib, opts, args): self.config.set_args(opts) fmt = self.config["format"].get() album = self.config["album"].get(bool) full = self.config["full"].get(bool) keys = self.config["keys"].get() checksum = self.config["checksum"].get() copy = self.config["copy"].get() move = self.confi...
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def tmpl_time(s, fmt): """Format a time value using `strftime`.""" cur_fmt = beets.config["time_format"].get(unicode) return time.strftime(fmt, time.strptime(s, cur_fmt))
def tmpl_time(s, format): """Format a time value using `strftime`.""" cur_fmt = beets.config["time_format"].get(unicode) return time.strftime(format, time.strptime(s, cur_fmt))
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def get_format(fmt=None): """Return the command tempate and the extension from the config.""" if not fmt: fmt = config["convert"]["format"].get(unicode).lower() fmt = ALIASES.get(fmt, fmt) try: format_info = config["convert"]["formats"][fmt].get(dict) command = format_info["comm...
def get_format(format=None): """Return the command tempate and the extension from the config.""" if not format: format = config["convert"]["format"].get(unicode).lower() format = ALIASES.get(format, format) try: format_info = config["convert"]["formats"][format].get(dict) comman...
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def should_transcode(item, fmt): """Determine whether the item should be transcoded as part of conversion (i.e., its bitrate is high or it has the wrong format). """ if config["convert"]["never_convert_lossy_files"] and not ( item.format.lower() in LOSSLESS_FORMATS ): return False ...
def should_transcode(item, format): """Determine whether the item should be transcoded as part of conversion (i.e., its bitrate is high or it has the wrong format). """ if config["convert"]["never_convert_lossy_files"] and not ( item.format.lower() in LOSSLESS_FORMATS ): return False...
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def convert_item(self, dest_dir, keep_new, path_formats, fmt, pretend=False): command, ext = get_format(fmt) item, original, converted = None, None, None while True: item = yield (item, original, converted) dest = item.destination(basedir=dest_dir, path_formats=path_formats) # When ...
def convert_item(self, dest_dir, keep_new, path_formats, format, pretend=False): command, ext = get_format(format) item, original, converted = None, None, None while True: item = yield (item, original, converted) dest = item.destination(basedir=dest_dir, path_formats=path_formats) #...
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def convert_on_import(self, lib, item): """Transcode a file automatically after it is imported into the library. """ fmt = self.config["format"].get(unicode).lower() if should_transcode(item, fmt): command, ext = get_format() fd, dest = tempfile.mkstemp("." + ext) os.close(fd...
def convert_on_import(self, lib, item): """Transcode a file automatically after it is imported into the library. """ format = self.config["format"].get(unicode).lower() if should_transcode(item, format): command, ext = get_format() fd, dest = tempfile.mkstemp("." + ext) os.cl...
https://github.com/beetbox/beets/issues/1300
C:\Users\100557855>beet duplicates Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", line 953, in main _raw_main(args) File "c:\users\100557855\src\bee...
TypeError
def authenticate(self, c_key, c_secret): # Get the link for the OAuth page. auth_client = Client(USER_AGENT, c_key, c_secret) _, _, url = auth_client.get_authorize_url() beets.ui.print_("To authenticate with Discogs, visit:") beets.ui.print_(url) # Ask for the code and validate it. code = b...
def authenticate(self, c_key, c_secret): # Get the link for the OAuth page. auth_client = Client(USER_AGENT, c_key, c_secret) _, _, url = auth_client.get_authorize_url() beets.ui.print_("To authenticate with Discogs, visit:") beets.ui.print_(url) # Ask for the code and validate it. code = b...
https://github.com/beetbox/beets/issues/1299
Apply, More candidates, Skip, Use as-is, as Tracks, Group albums, Enter search, enter Id, aBort? a Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", li...
socket.error
def candidates(self, items, artist, album, va_likely): """Returns a list of AlbumInfo objects for discogs search results matching an album and artist (if not various). """ if not self.discogs_client: return if va_likely: query = album else: query = "%s %s" % (artist, alb...
def candidates(self, items, artist, album, va_likely): """Returns a list of AlbumInfo objects for discogs search results matching an album and artist (if not various). """ if not self.discogs_client: return if va_likely: query = album else: query = "%s %s" % (artist, alb...
https://github.com/beetbox/beets/issues/1299
Apply, More candidates, Skip, Use as-is, as Tracks, Group albums, Enter search, enter Id, aBort? a Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.11', 'console_scripts', 'beet')() File "c:\users\100557855\src\beets\beets\ui\__init__.py", li...
socket.error
def commands(self): def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib...
def commands(self): def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib...
https://github.com/beetbox/beets/issues/1297
scrubbing: C:\Users\100557855\Desktop\Music\Above &amp; Beyond\TriΓÇÉState\01 TriΓÇÉ State.mp3 Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.10', 'console_scripts', 'beet')() File "C:\Python27\lib\site-packages\beets\ui\__init__.py", line ...
IOError
def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib.items(ui.decargs(args)): self._log.info...
def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib.items(ui.decargs(args)): self._log.info...
https://github.com/beetbox/beets/issues/1297
scrubbing: C:\Users\100557855\Desktop\Music\Above &amp; Beyond\TriΓÇÉState\01 TriΓÇÉ State.mp3 Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.10', 'console_scripts', 'beet')() File "C:\Python27\lib\site-packages\beets\ui\__init__.py", line ...
IOError
def commands(self): def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib...
def commands(self): def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib...
https://github.com/beetbox/beets/issues/1297
scrubbing: C:\Users\100557855\Desktop\Music\Above &amp; Beyond\TriΓÇÉState\01 TriΓÇÉ State.mp3 Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.10', 'console_scripts', 'beet')() File "C:\Python27\lib\site-packages\beets\ui\__init__.py", line ...
IOError
def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib.items(ui.decargs(args)): self._log.info...
def scrub_func(lib, opts, args): # This is a little bit hacky, but we set a global flag to # avoid autoscrubbing when we're also explicitly scrubbing. global scrubbing scrubbing = True # Walk through matching files and remove tags. for item in lib.items(ui.decargs(args)): self._log.info...
https://github.com/beetbox/beets/issues/1297
scrubbing: C:\Users\100557855\Desktop\Music\Above &amp; Beyond\TriΓÇÉState\01 TriΓÇÉ State.mp3 Traceback (most recent call last): File "C:\Python27\Scripts\beet-script.py", line 9, in <module> load_entry_point('beets==1.3.10', 'console_scripts', 'beet')() File "C:\Python27\lib\site-packages\beets\ui\__init__.py", line ...
IOError
def parse_query_string(s, model_cls): """Given a beets query string, return the `Query` and `Sort` they represent. The string is split into components using shell-like syntax. """ # A bug in Python < 2.7.3 prevents correct shlex splitting of # Unicode strings. # http://bugs.python.org/issue...
def parse_query_string(s, model_cls): """Given a beets query string, return the `Query` and `Sort` they represent. The string is split into components using shell-like syntax. """ # A bug in Python < 2.7.3 prevents correct shlex splitting of # Unicode strings. # http://bugs.python.org/issue...
https://github.com/beetbox/beets/issues/1290
Traceback (most recent call last): File "/usr/local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.10', 'console_scripts', 'beet')() File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 945, in main _raw_main(args) File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line...
ValueError
def is_lyrics(text, artist=None): """Determine whether the text seems to be valid lyrics.""" if not text: return badTriggersOcc = [] nbLines = text.count("\n") if nbLines <= 1: log.debug("Ignoring too short lyrics '{0}'".format(text)) return 0 elif nbLines < 5: ba...
def is_lyrics(text, artist=None): """Determine whether the text seems to be valid lyrics.""" if not text: return badTriggersOcc = [] nbLines = text.count("\n") if nbLines <= 1: log.debug("Ignoring too short lyrics '{0}'".format(text.decode("utf8"))) return 0 elif nbLines ...
https://github.com/beetbox/beets/issues/1135
fetching Elephanz Stereo Traceback (most recent call last): File "/Users/flap/bin/beet", line 20, in <module> beets.ui.main() File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 937, in main _raw_main(args) File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 927, in _raw_main subcommand.func(lib, suboptions, su...
UnicodeEncodeError
def scrape_lyrics_from_html(html): """Scrape lyrics from a URL. If no lyrics can be found, return None instead. """ from bs4 import SoupStrainer, BeautifulSoup if not html: return None def is_text_notcode(text): length = len(text) return ( length > 20 ...
def scrape_lyrics_from_html(html): """Scrape lyrics from a URL. If no lyrics can be found, return None instead. """ from bs4 import SoupStrainer, BeautifulSoup if not html: return None def is_text_notcode(text): length = len(text) return ( length > 20 ...
https://github.com/beetbox/beets/issues/1135
fetching Elephanz Stereo Traceback (most recent call last): File "/Users/flap/bin/beet", line 20, in <module> beets.ui.main() File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 937, in main _raw_main(args) File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 927, in _raw_main subcommand.func(lib, suboptions, su...
UnicodeEncodeError
def get_lyrics(self, artist, title): """Fetch lyrics, trying each source in turn. Return a string or None if no lyrics were found. """ for backend in self.backends: lyrics = backend(artist, title) if lyrics: log.debug("got lyrics from backend: {0}".format(backend.__name__)) ...
def get_lyrics(self, artist, title): """Fetch lyrics, trying each source in turn. Return a string or None if no lyrics were found. """ for backend in self.backends: lyrics = backend(artist, title) if lyrics: if isinstance(lyrics, str): lyrics = lyrics.decode("...
https://github.com/beetbox/beets/issues/1135
fetching Elephanz Stereo Traceback (most recent call last): File "/Users/flap/bin/beet", line 20, in <module> beets.ui.main() File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 937, in main _raw_main(args) File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 927, in _raw_main subcommand.func(lib, suboptions, su...
UnicodeEncodeError
def fetch_url(url): """Retrieve the content at a given URL, or return None if the source is unreachable. """ r = requests.get(url) if r.status_code == requests.codes.ok: return r.text else: log.debug("failed to fetch: {0} ({1})".format(url, r.status_code)) return None
def fetch_url(url): """Retrieve the content at a given URL, or return None if the source is unreachable. """ try: return urllib.urlopen(url).read() except IOError as exc: log.debug("failed to fetch: {0} ({1})".format(url, unicode(exc))) return None
https://github.com/beetbox/beets/issues/1135
fetching Elephanz Stereo Traceback (most recent call last): File "/Users/flap/bin/beet", line 20, in <module> beets.ui.main() File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 937, in main _raw_main(args) File "/Users/flap/Dev/beets/beets/ui/__init__.py", line 927, in _raw_main subcommand.func(lib, suboptions, su...
UnicodeEncodeError
def write_item_mtime(item, mtime): """Write the given mtime to an item's `mtime` field and to the mtime of the item's file. """ if mtime is None: log.warn( "No mtime to be preserved for item '{0}'".format( util.displayable_path(item.path) ) ) ...
def write_item_mtime(item, mtime): """Write the given mtime to an item's `mtime` field and to the mtime of the item's file. """ if mtime is None: log.warn( "No mtime to be preserved for item {0}".format( util.displayable_path(item.path) ) ) ...
https://github.com/beetbox/beets/issues/911
$ beet import -L /beets/src/media/library/Younger Brother (2011) - Vaccine (9 items) Tagging: Younger Brother - Vaccine URL: http://musicbrainz.org/release/7da3a7d8-0240-4ebd-bab6-44a1a72504fe (Similarity: 100.0%) (CD, 2011, US, SCI Fidelity Records) Traceback (most recent call last): File "/beets/bin/beet", line 20, ...
KeyError
def record_import_mtime(item, source, destination): """Record the file mtime of an item's path before its import.""" mtime = os.stat(util.syspath(source)).st_mtime item_mtime[destination] = mtime log.debug( "Recorded mtime {0} for item '{1}' imported from '{2}'".format( mtime, util.d...
def record_import_mtime(item, source, destination): """Record the file mtime of an item's path before import.""" if source == destination: # Re-import of an existing library item? return mtime = os.stat(util.syspath(source)).st_mtime item_mtime[destination] = mtime log.debug( ...
https://github.com/beetbox/beets/issues/911
$ beet import -L /beets/src/media/library/Younger Brother (2011) - Vaccine (9 items) Tagging: Younger Brother - Vaccine URL: http://musicbrainz.org/release/7da3a7d8-0240-4ebd-bab6-44a1a72504fe (Similarity: 100.0%) (CD, 2011, US, SCI Fidelity Records) Traceback (most recent call last): File "/beets/bin/beet", line 20, ...
KeyError
def update_album_times(lib, album): if reimported_album(album): log.debug( "Album '{0}' is reimported, skipping import of added dates" " for the album and its items.".format(util.displayable_path(album.path)) ) return album_mtimes = [] for item in album.items...
def update_album_times(lib, album): album_mtimes = [] for item in album.items(): mtime = item_mtime[item.path] if mtime is not None: album_mtimes.append(mtime) if config["importadded"]["preserve_mtimes"].get(bool): write_item_mtime(item, mtime) ...
https://github.com/beetbox/beets/issues/911
$ beet import -L /beets/src/media/library/Younger Brother (2011) - Vaccine (9 items) Tagging: Younger Brother - Vaccine URL: http://musicbrainz.org/release/7da3a7d8-0240-4ebd-bab6-44a1a72504fe (Similarity: 100.0%) (CD, 2011, US, SCI Fidelity Records) Traceback (most recent call last): File "/beets/bin/beet", line 20, ...
KeyError
def update_item_times(lib, item): if reimported_item(item): log.debug( "Item '{0}' is reimported, skipping import of added date.".format( util.displayable_path(item.path) ) ) return mtime = item_mtime.pop(item.path, None) if mtime: item...
def update_item_times(lib, item): mtime = item_mtime[item.path] if mtime is not None: item.added = mtime if config["importadded"]["preserve_mtimes"].get(bool): write_item_mtime(item, mtime) item.store() del item_mtime[item.path]
https://github.com/beetbox/beets/issues/911
$ beet import -L /beets/src/media/library/Younger Brother (2011) - Vaccine (9 items) Tagging: Younger Brother - Vaccine URL: http://musicbrainz.org/release/7da3a7d8-0240-4ebd-bab6-44a1a72504fe (Similarity: 100.0%) (CD, 2011, US, SCI Fidelity Records) Traceback (most recent call last): File "/beets/bin/beet", line 20, ...
KeyError
def convert(x): if isinstance(x, unicode): return x elif isinstance(x, BASESTRING): return x.decode("utf8", "ignore") else: self.fail("must be a list of strings", view, True)
def convert(self, value, view): if isinstance(value, bytes): value = value.decode("utf8", "ignore") if isinstance(value, STRING): if self.split: return value.split() else: return [value] else: try: value = list(value) except TypeEr...
https://github.com/beetbox/beets/issues/887
sombra/somasis:~/MusicIncoming/ λ beet -v imp Blank\ Banshee\ -\ Blank\ Banshee\ * user configuration: /home/somasis/.config/beets/config.yaml Sending event: pluginload Sending event: library_opened data directory: /home/somasis/.config/beets library database: /home/somasis/Music/library.blb library directory: /home/so...
UnicodeDecodeError
def convert(x): if isinstance(x, unicode): return x elif isinstance(x, BASESTRING): return x.decode("utf8", "ignore") else: self.fail("must be a list of strings", view, True)
def convert(self, value, view): if not isinstance(value, self.typ): self.fail( "must be a {0}, not {1}".format( self.typ.__name__, type(value).__name__, ), view, True, ) return value
https://github.com/beetbox/beets/issues/887
sombra/somasis:~/MusicIncoming/ λ beet -v imp Blank\ Banshee\ -\ Blank\ Banshee\ * user configuration: /home/somasis/.config/beets/config.yaml Sending event: pluginload Sending event: library_opened data directory: /home/somasis/.config/beets library database: /home/somasis/Music/library.blb library directory: /home/so...
UnicodeDecodeError
def art_for_album(album, paths, maxwidth=None, local_only=False): """Given an Album object, returns a path to downloaded art for the album (or None if no art is found). If `maxwidth`, then images are resized to this maximum pixel size. If `local_only`, then only local image files from the filesystem are...
def art_for_album(album, paths, maxwidth=None, local_only=False): """Given an Album object, returns a path to downloaded art for the album (or None if no art is found). If `maxwidth`, then images are resized to this maximum pixel size. If `local_only`, then only local image files from the filesystem are...
https://github.com/beetbox/beets/issues/887
sombra/somasis:~/MusicIncoming/ λ beet -v imp Blank\ Banshee\ -\ Blank\ Banshee\ * user configuration: /home/somasis/.config/beets/config.yaml Sending event: pluginload Sending event: library_opened data directory: /home/somasis/.config/beets library database: /home/somasis/Music/library.blb library directory: /home/so...
UnicodeDecodeError
def convert_item(dest_dir, keep_new, path_formats, command, ext, pretend=False): while True: item = yield dest = item.destination(basedir=dest_dir, path_formats=path_formats) # When keeping the new file in the library, we first move the # current (pristine) file to the destination. ...
def convert_item(dest_dir, keep_new, path_formats, command, ext, pretend=False): while True: item = yield dest = item.destination(basedir=dest_dir, path_formats=path_formats) # When keeping the new file in the library, we first move the # current (pristine) file to the destination. ...
https://github.com/beetbox/beets/issues/878
Traceback (most recent call last): File "/bin/beet", line 9, in <module> load_entry_point('beets==1.3.6', 'console_scripts', 'beet')() File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 967, in main _raw_main(args) File "/usr/lib/python2.7/site-packages/beets/ui/__init__.py", line 958, in _raw_main subc...
beets.mediafile.FileTypeError
def _build_m3u_filename(basename): """Builds unique m3u filename by appending given basename to current date.""" basename = re.sub(r"[\s,/\\'\"]", "_", basename) date = datetime.datetime.now().strftime("%Y%m%d_%Hh%M") path = normpath( os.path.join( config["importfeeds"]["dir"].a...
def _build_m3u_filename(basename): """Builds unique m3u filename by appending given basename to current date.""" basename = re.sub(r"[\s,'\"]", "_", basename) date = datetime.datetime.now().strftime("%Y%m%d_%Hh%M") path = normpath( os.path.join( config["importfeeds"]["dir"].as_f...
https://github.com/beetbox/beets/issues/610
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/beet", line 9, in <module> load_entry_point('beets==1.3.3', 'console_scripts', 'beet')() File "/Users/drbob/Development/beets/beets/ui/__init__.py", line 946, in main _raw_main(args) File "/Users/drbob/Development/beets/beets...
IOError
def save_history(self): """Save the directory in the history for incremental imports.""" if self.is_album and self.paths and not self.sentinel: history_add(self.paths)
def save_history(self): """Save the directory in the history for incremental imports.""" if self.is_album and not self.sentinel: history_add(self.paths)
https://github.com/beetbox/beets/issues/570
Traceback (most recent call last): File "/usr/local/bin/beet", line 9, in <module> load_entry_point('beets==1.3.3', 'console_scripts', 'beet')() File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line 946, in main _raw_main(args) File "/usr/local/lib/python2.7/dist-packages/beets/ui/__init__.py", line ...
TypeError
def do_i_hate_this(cls, task, action_patterns): """Process group of patterns (warn or skip) and returns True if task is hated and not whitelisted. """ if action_patterns: for query_string in action_patterns: query = None if task.is_album: query = get_query...
def do_i_hate_this(cls, task, action_patterns): """Process group of patterns (warn or skip) and returns True if task is hated and not whitelisted. """ if action_patterns: for query_string in action_patterns: query = None if task.is_album: query = get_query...
https://github.com/beetbox/beets/issues/411
Traceback (most recent call last): File "/usr/local/bin/beet", line 8, in <module> load_entry_point('beets==1.3.0', 'console_scripts', 'beet')() File "/Library/Python/2.7/site-packages/beets-1.3.0-py2.7.egg/beets/ui/__init__.py", line 776, in main _raw_main(args) File "/Library/Python/2.7/site-packages/beets-1.3.0-py2....
AttributeError
def import_task_choice_event(self, session, task): skip_queries = self.config["skip"].as_str_seq() warn_queries = self.config["warn"].as_str_seq() if task.choice_flag == action.APPLY: if skip_queries or warn_queries: self._log.debug("[ihate] processing your hate") if self.do...
def import_task_choice_event(self, session, task): skip_queries = self.config["skip"].as_str_seq() warn_queries = self.config["warn"].as_str_seq() if task.choice_flag == action.APPLY: if skip_queries or warn_queries: self._log.debug("[ihate] processing your hate") if self.do...
https://github.com/beetbox/beets/issues/411
Traceback (most recent call last): File "/usr/local/bin/beet", line 8, in <module> load_entry_point('beets==1.3.0', 'console_scripts', 'beet')() File "/Library/Python/2.7/site-packages/beets-1.3.0-py2.7.egg/beets/ui/__init__.py", line 776, in main _raw_main(args) File "/Library/Python/2.7/site-packages/beets-1.3.0-py2....
AttributeError
def do_i_hate_this( cls, task, genre_patterns, artist_patterns, album_patterns, whitelist_patterns ): """Process group of patterns (warn or skip) and returns True if task is hated and not whitelisted. """ hate = False try: genre = task.items[0].genre except: genre = "" if...
def do_i_hate_this( cls, task, genre_patterns, artist_patterns, album_patterns, whitelist_patterns ): """Process group of patterns (warn or skip) and returns True if task is hated and not whitelisted. """ hate = False try: genre = task.items[0].genre except: genre = "" if...
https://github.com/beetbox/beets/issues/411
Traceback (most recent call last): File "/usr/local/bin/beet", line 8, in <module> load_entry_point('beets==1.3.0', 'console_scripts', 'beet')() File "/Library/Python/2.7/site-packages/beets-1.3.0-py2.7.egg/beets/ui/__init__.py", line 776, in main _raw_main(args) File "/Library/Python/2.7/site-packages/beets-1.3.0-py2....
AttributeError
def batch_fetch_art(lib, albums, force, maxwidth=None): """Fetch album art for each of the albums. This implements the manual fetchart CLI command. """ for album in albums: if album.artpath and not force: message = "has album art" else: # In ordinary invocations, ...
def batch_fetch_art(lib, albums, force, maxwidth=None): """Fetch album art for each of the albums. This implements the manual fetchart CLI command. """ for album in albums: if album.artpath and not force: message = "has album art" else: # In ordinary invocations, ...
https://github.com/beetbox/beets/issues/508
Tindersticks - Chocolate (from mpc) lyrics426 ['Tindersticks', ' ', 'Chocolate'] ('lib943', [u'Tindersticks', u' ', u'Chocolate']) ('lib859', [u'Tindersticks', u' ', u'Chocolate']) ('lib800', u'Tindersticks') ('lib778', u'Tindersticks') ('lib800', u' ') ('lib778', u' ') Traceback (most recent call last): File "/usr/loc...
AssertionError
def dump(mydb, f, **options): # type: (canmatrix.CanMatrix, typing.IO, **typing.Any) -> None # create copy because export changes database db = copy.deepcopy(mydb) dbf_export_encoding = options.get("dbfExportEncoding", "iso-8859-1") ignore_encoding_errors = options.get("ignoreEncodingErrors", "") ...
def dump(mydb, f, **options): # type: (canmatrix.CanMatrix, typing.IO, **typing.Any) -> None # create copy because export changes database db = copy.deepcopy(mydb) dbf_export_encoding = options.get("dbfExportEncoding", "iso-8859-1") ignore_encoding_errors = options.get("ignoreExportEncodingErrors", ...
https://github.com/ebroecker/canmatrix/issues/496
canconvert --deleteZeroSignals --ignoreEncodingErrors --cutLongFrames=8 -vv file.arxml file.dbf ... ... Traceback (most recent call last): File "/usr/local/bin/canconvert", line 11, in <module> load_entry_point('canmatrix==0.9.1', 'console_scripts', 'canconvert')() File "/usr/local/lib/python3.8/site-packages/click/cor...
LookupError