[Python-modules-team] Bug#955672: python-apptools: FTBFS: ERROR: Failure: ModuleNotFoundError (No module named 'matplotlib')

Lucas Nussbaum lucas at debian.org
Fri Apr 3 20:42:07 BST 2020


Source: python-apptools
Version: 4.5.0-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200402 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> xvfb-run -a dh_auto_test
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build; python3.7 -m nose -v 
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> Failure: ModuleNotFoundError (No module named 'matplotlib') ... ERROR
> Failure: ModuleNotFoundError (No module named 'matplotlib') ... ERROR
> Failure: ModuleNotFoundError (No module named 'matplotlib') ... ERROR
> file copy ... ok
> file creation ... ok
> file deletion ... ok
> file properties ... ok
> folder copy ... ok
> folder creation ... ok
> nested folder creation ... ok
> folder deletion ... ok
> folder properties ... ok
> test_attaching_single_project (apptools.logger.agent.tests.test_attachments.AttachmentsTestCase) ... ok
> test_attaching_workspace (apptools.logger.agent.tests.test_attachments.AttachmentsTestCase) ... ok
> test_create_email_message (apptools.logger.plugin.tests.test_logger_service.LoggerServiceTestCase) ... ok
> test_create_email_message_with_user_data (apptools.logger.plugin.tests.test_logger_service.LoggerServiceTestCase) ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_callback ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_len ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_resize ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_items ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_idempotency ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_keys_values ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_clear ... ok
> apptools.lru_cache.tests.test_lru_cache.test_cache_get ... ok
> apptools.lru_cache.tests.test_lru_cache.test_updated_event ... ok
> bind ... ok
> bind with make contexts ... ok
> create sub-context ... ok
> default object and state factories. ... ok
> single context destroy sub-context ... ok
> list bindings ... ok
> list names ... ok
> lookup ... ok
> context rebind ... ok
> rebind with make contexts ... ok
> rename a context ... ok
> rename an object ... ok
> test retrieving the names of bound objects ... ok
> context unbind ... ok
> bind ... ok
> bind with make contexts ... ok
> create sub-context ... ok
> default object and state factories. ... ok
> single context destroy sub-context ... ok
> list bindings ... ok
> list names ... ok
> lookup ... ok
> context rebind ... ok
> rebind with make contexts ... ok
> rename a context ... ok
> rename an object ... ok
> test retrieving the names of bound objects ... ok
> context unbind ... ok
> bind ... ok
> bind with make contexts ... ok
> create sub-context ... ok
> default object and state factories. ... ok
> single context destroy sub-context ... ok
> get attributes ... ok
> list bindings ... ok
> list names ... ok
> lookup ... ok
> context rebind ... ok
> rebind with make contexts ... ok
> rename a context ... ok
> rename an object ... ok
> test retrieving the names of bound objects ... ok
> get and set attributes ... ok
> context unbind ... ok
> bind ... ok
> bind with make contexts ... ok
> create sub-context ... ok
> default object and state factories. ... ok
> single context destroy sub-context ... ok
> list bindings ... ok
> list names ... ok
> lookup ... ok
> context rebind ... ok
> rebind with make contexts ... ok
> rename a context ... ok
> rename an object ... ok
> test retrieving the names of bound objects ... ok
> context unbind ... ok
> bind ... ok
> bind with make contexts ... ok
> create sub-context ... ok
> default object and state factories. ... ok
> single context destroy sub-context ... ok
> list bindings ... ok
> list names ... ok
> lookup ... ok
> context rebind ... ok
> rebind with make contexts ... ok
> rename a context ... ok
> rename an object ... ok
> test retrieving the names of bound objects ... ok
> context unbind ... ok
> pyfs context bind ... ok
> pyfs context create sub-context ... ok
> single context destroy sub-context ... ok
> get attributes ... ok
> initialization of an existing context ... ok
> initialization with empty environmentt ... ok
> pyfs context lookup ... ok
> get the name of a context within its namespace. ... ok
> pyfs context rebind ... ok
> multi-context rename ... ok
> get and set attributes ... ok
> pyfs context unbind ... ok
> Test if absolute paths are set corectly. ... ok
> Test if pickler works correctly with FilePaths. ... ok
> Test if relative paths are set correctly. ... ok
> Failure: SkipTest (spickle is not supported with Python3) ... SKIP: spickle is not supported with Python3
> Test if dump can take a str as file ... ok
> Test if get_pure_state is called first. ... ok
> test_get_state_on_tuple_with_numeric_references (apptools.persistence.tests.test_state_pickler.TestDictPickler) ... ok
> Test to check has_instance correctness. ... ok
> Test if classic classes can be pickled. ... ok
> Test if traited classes can be pickled. ... ok
> Test if reference cycles are handled when setting the state. ... ok
> Test if the state can be saved like the object itself. ... ok
> Test some of the features of the set_state method. ... ok
> Test if classic classes' state can be set. ... ok
> Test if traited classes' state can be set. ... ok
> Test if classic classes can be unpickled. ... ok
> Test if traited classes can be unpickled. ... ok
> Test the get_version function. ... ok
> Test if the registry is reload safe. ... ok
> Test if update method calls the handlers in order. ... ok
> instance scope preferences path ... ok
> explicit preferences ... ok
> load and save ... ok
> nested set in trait change handler ... ok
> preference binding ... ok
> test_trait_name_different_to_preference_name (apptools.preferences.tests.preference_binding_test_case.PreferenceBindingTestCase) ... ok
> class scope preferences path ... ok
> default values ... ok
> instance scope preferences path ... ok
> nested set in trait change handler ... ok
> no preferences path ... ok
> preference not in file ... ok
> preferences node changed ... ok
> Test with real life unicode values ... ok
> scoped preferences ... ok
> sync trait ... ok
> unevaluated strings ... ok
> add listener ... ok
> clear ... ok
> default values ... ok
> empty path ... ok
> flush ... ok
> get and set bool ... ok
> get and set float ... ok
> get and set int ... ok
> get and set list of int ... ok
> get and set list of str ... ok
> get and set str ... ok
> get inherited ... ok
> keys ... ok
> load ... ok
> load with filename trait set ... ok
> node ... ok
> node exists ... ok
> node names ... ok
> package global default preferences ... ok
> remove ... ok
> remove listener ... ok
> save ... ok
> set with same value ... ok
> load from file ... ok
> load from filename ... ok
> load multiple files ... ok
> save ... ok
> add listener ... ok
> clear ... ok
> default values ... ok
> empty path ... ok
> flush ... ok
> get and set bool ... ok
> get and set float ... ok
> get and set int ... ok
> get and set list of int ... ok
> get and set list of str ... ok
> get and set str ... ok
> get inherited ... ok
> keys ... ok
> load ... ok
> load with filename trait set ... ok
> node ... ok
> node exists ... ok
> node names ... ok
> package global default preferences ... ok
> remove ... ok
> remove listener ... ok
> save ... ok
> set with same value ... ok
> test_ability_to_specify_primary_scope (apptools.preferences.tests.scoped_preferences_test_case.ScopedPreferencesTestCase) ... ok
> add listener ... ok
> add listener in specific scope. ... ok
> builtin scopes ... ok
> clear ... ok
> clear in specific scope ... ok
> default lookup order ... ok
> default values ... ok
> empty path ... ok
> flush ... ok
> get and set bool ... ok
> get and set float ... ok
> get and set in specific scope ... ok
> get and set int ... ok
> get and set list of int ... ok
> get and set list of str ... ok
> get and set str ... ok
> get inherited ... ok
> keys ... ok
> keys in specific scope ... ok
> load ... ok
> load with filename trait set ... ok
> lookup order ... ok
> node ... ok
> node exists ... ok
> node exists ... ok
> node in specific scope ... ok
> node names ... ok
> node names in specific scope ... ok
> non existent scope ... ok
> package global default preferences ... ok
> remove ... ok
> remove in specific scope ... ok
> remove listener ... ok
> remove listener in specific scope. ... ok
> save ... ok
> set with same value ... ok
> Test the clear method. ... ok
> Is the object imported and created if unknown? ... ok
> Test if a list item is changed does the change get recorded. ... ok
> Can classes not using traits be handled? ... ok
> Does the object path update when a list has changed? ... ok
> Does recording work correctly. ... ok
> See if recordable function calls are handled correctly. ... ok
> Does recording work right when a trait is replaced. ... ok
> Test if recorder trait is set and private traits are ignored. ... ok
> Test if saving tape to file works. ... ok
> Test if setting script_id at registration time works. ... ok
> Does the get_unique_id method work. ... ok
> Test the write_script_id_in_namespace method. ... ok
> test_list_selection (apptools.selection.tests.test_list_selection.TestListSelection) ... ok
> test_list_selection_of_numpy_array_items (apptools.selection.tests.test_list_selection.TestListSelection) ... ok
> test_list_selection_of_sequence_items (apptools.selection.tests.test_list_selection.TestListSelection) ... ok
> test_list_selection_with_invalid_selected_items (apptools.selection.tests.test_list_selection.TestListSelection) ... ok
> test_add_selection_id_conflict (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_add_selection_provider (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_connect_listener (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_connect_listener_then_add_remove_provider (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_disconnect_listener (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_disconnect_unknown_listener (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_get_selection (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_get_selection_id_not_registered (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_ignore_missing (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_remove_selection_provider (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_selection_id_not_registered (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> test_set_selection (apptools.selection.tests.test_selection_service.TestSelectionService) ... ok
> Validates that the class mapping framework detects infinite ... ok
> test_unpickled_class_mapping (apptools.sweet_pickle.tests.class_mapping_test_case.ClassMappingTestCase) ... ok
> Validates that clearing the registry gives us a new registry. ... ok
> Validates that the registry is starting empty for each test. ... ok
> Validates that the getter returns the same global registry ... ok
> Validates that only existing setstate methods are called when ... ok
> Validates that the registered state functions are used when ... ok
> apptools.sweet_pickle.tests.two_stage_unpickler_test_case.test_generic ... ok
> apptools.sweet_pickle.tests.two_stage_unpickler_test_case.test_toy_app ... ok
> Validates the behavior of the add_mapping function. ... ok
> Validates the behavior of the add_mapping_to_class function. ... ok
> Validates the behavior of the add_mappings function. ... ok
> Validates the behavior of the add_state_function function. ... ok
> Validates the behavior of the add_state_function_for_class function. ... ok
> Validates the behavior of the merge_updater function. ... ok
> Validates that the registry is starting empty for each test. ... ok
> an adapter registered on one of an object's base classes. ... ok
> an adapter registered on an object's actual class. ... ok
> simple factory ... ok
> ignore an adapter on an object's actual class. ... ok
> ignore an adapter registered on a derived class. ... ok
> instance adapter ... ok
> no adapter available ... ok
> no adapter required ... ok
> post hook ... ok
> pre hook ... ok
> test pre hook on an inherited method ... ok
> type manager hierarchy ... ok
> unregister an adapter. ... ok
> unregister instance adapter ... ok
> test_abc (apptools.type_registry.tests.test_lazy_registry.TestLazyRegistry) ... ok
> test_deferred_push (apptools.type_registry.tests.test_lazy_registry.TestLazyRegistry) ... ok
> test_greedy_push (apptools.type_registry.tests.test_lazy_registry.TestLazyRegistry) ... ok
> test_lookup_instance (apptools.type_registry.tests.test_lazy_registry.TestLazyRegistry) ... ok
> test_mro (apptools.type_registry.tests.test_lazy_registry.TestLazyRegistry) ... ok
> test_abc (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_deferred_push (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_greedy_push (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_lookup_all (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_lookup_instance (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_mro (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_pop_by_name_from_name (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_pop_by_name_from_type (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_pop_by_type_from_name (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_pop_by_type_from_type (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_stack_abc (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_stack_mixed_type_and_name (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_stack_type (apptools.type_registry.tests.test_type_registry.TestTypeRegistry) ... ok
> test_1_command_pushed (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_define_macro (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_empty_command_stack (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_empty_stack_is_clean (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_make_clean (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_make_dirty (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_n_command_pushed (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_non_empty_stack_is_dirty (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_push_undo_save_redo_is_dirty (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_save_push_save_undo_is_clean (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_save_push_undo_is_clean (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_undo_1_command (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_undo_macro (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_undo_n_command (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_undo_redo_1_command (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> test_undo_unnamed_command (apptools.undo.tests.test_command_stack.TestCommandStack) ... ok
> 
> ======================================================================
> ERROR: Failure: ModuleNotFoundError (No module named 'matplotlib')
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in loadTestsFromName
>     addr.filename, addr.module)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.7/imp.py", line 234, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.7/imp.py", line 171, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 696, in _load
>   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
>   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/tests/test_dict_node.py", line 6, in <module>
>     from .utils import open_h5file, temp_h5_file, temp_file
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/tests/utils.py", line 5, in <module>
>     from ..utils import open_h5file
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/utils.py", line 3, in <module>
>     from .file import H5File
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/file.py", line 8, in <module>
>     from .table_node import H5TableNode
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/table_node.py", line 2, in <module>
>     from pandas import DataFrame
>   File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 182, in <module>
>     import pandas.testing
>   File "/usr/lib/python3/dist-packages/pandas/testing.py", line 7, in <module>
>     from pandas.util.testing import (
>   File "/usr/lib/python3/dist-packages/pandas/util/testing.py", line 18, in <module>
>     from matplotlib.cbook import MatplotlibDeprecationWarning
> ModuleNotFoundError: No module named 'matplotlib'
> -------------------- >> begin captured logging << --------------------
> numexpr.utils: INFO: NumExpr defaulting to 4 threads.
> --------------------- >> end captured logging << ---------------------
> 
> ======================================================================
> ERROR: Failure: ModuleNotFoundError (No module named 'matplotlib')
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in loadTestsFromName
>     addr.filename, addr.module)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.7/imp.py", line 234, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.7/imp.py", line 171, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 696, in _load
>   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
>   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/tests/test_file.py", line 8, in <module>
>     from ..file import H5File
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/file.py", line 8, in <module>
>     from .table_node import H5TableNode
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/table_node.py", line 2, in <module>
>     from pandas import DataFrame
>   File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 182, in <module>
>     import pandas.testing
>   File "/usr/lib/python3/dist-packages/pandas/testing.py", line 7, in <module>
>     from pandas.util.testing import (
>   File "/usr/lib/python3/dist-packages/pandas/util/testing.py", line 18, in <module>
>     from matplotlib.cbook import MatplotlibDeprecationWarning
> ModuleNotFoundError: No module named 'matplotlib'
> 
> ======================================================================
> ERROR: Failure: ModuleNotFoundError (No module named 'matplotlib')
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in loadTestsFromName
>     addr.filename, addr.module)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.7/imp.py", line 234, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.7/imp.py", line 171, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 696, in _load
>   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
>   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build/apptools/io/h5/tests/test_table_node.py", line 3, in <module>
>     from pandas import DataFrame
>   File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 182, in <module>
>     import pandas.testing
>   File "/usr/lib/python3/dist-packages/pandas/testing.py", line 7, in <module>
>     from pandas.util.testing import (
>   File "/usr/lib/python3/dist-packages/pandas/util/testing.py", line 18, in <module>
>     from matplotlib.cbook import MatplotlibDeprecationWarning
> ModuleNotFoundError: No module named 'matplotlib'
> 
> ----------------------------------------------------------------------
> Ran 326 tests in 0.830s
> 
> FAILED (SKIP=1, errors=3)
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_apptools/build; python3.7 -m nose -v 
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.7 3.8" returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/04/02/python-apptools_4.5.0-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Python-modules-team mailing list