Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 833099

Summary: dev-python/matplotlib-3.5.1 fails tests: ImportError: Cannot load backend 'QtAgg'
Product: Gentoo Linux Reporter: Jonathan Lovelace <kingjon3377>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: UNCONFIRMED ---    
Severity: normal CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-python:matplotlib-3.5.1:20220211-013850.log.gz

Description Jonathan Lovelace 2022-02-11 01:59:59 UTC
Created attachment 764819 [details]
emerge-info.txt

=dev-python/matplotlib-3.5.1 fails its tests (with USE=test and PYTHON_TARGETS=python3_9 being the only enabled flags shown by emerge -pv) fails its test phase with the following:

<string>:1: MatplotlibDeprecationWarning:                                                                                     
The test function was deprecated in Matplotlib 3.5 and will be removed two minor releases later. Use pytest instead.          
Traceback (most recent call last):                                                                                            
  File "<string>", line 1, in <module>                                                                                        
  File "/var/tmp/portage/dev-python/matplotlib-3.5.1/work/matplotlib-3.5.1-python3_9/build/test-lib/matplotlib/_api/deprecatio
n.py", line 205, in wrapper                                                                                                   
    return func(*args, **kwargs)                                                                                              
  File "/var/tmp/portage/dev-python/matplotlib-3.5.1/work/matplotlib-3.5.1-python3_9/build/test-lib/matplotlib/__init__.py", line 1230, in test                                                                                                             
    old_backend = get_backend()                                                                                               
  File "/var/tmp/portage/dev-python/matplotlib-3.5.1/work/matplotlib-3.5.1-python3_9/build/test-lib/matplotlib/__init__.py", l
ine 1170, in get_backend                                                                                                      
    return rcParams['backend']                                                                                                
  File "/var/tmp/portage/dev-python/matplotlib-3.5.1/work/matplotlib-3.5.1-python3_9/build/test-lib/matplotlib/__init__.py", l
ine 671, in __getitem__                                                                                                       
    from matplotlib import pyplot as plt                                                                                      
  File "/var/tmp/portage/dev-python/matplotlib-3.5.1/work/matplotlib-3.5.1-python3_9/build/test-lib/matplotlib/pyplot.py", lin
e 2230, in <module>                                                                                                           
    switch_backend(rcParams["backend"])                                                                                       
  File "/var/tmp/portage/dev-python/matplotlib-3.5.1/work/matplotlib-3.5.1-python3_9/build/test-lib/matplotlib/pyplot.py", lin
e 275, in switch_backend                                                                                                      
    raise ImportError(                                                                                                        
ImportError: Cannot load backend 'QtAgg' which requires the 'qt' interactive framework, as 'headless' is currently running
Comment 1 Jonathan Lovelace 2022-02-11 02:02:06 UTC
Created attachment 764820 [details]
dev-python:matplotlib-3.5.1:20220211-013850.log.gz