Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833099 - dev-python/matplotlib-3.5.1 fails tests: ImportError: Cannot load backend 'QtAgg'
Summary: dev-python/matplotlib-3.5.1 fails tests: ImportError: Cannot load backend 'Qt...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-11 01:59 UTC by Jonathan Lovelace
Modified: 2022-02-11 17:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,9.23 KB, text/plain)
2022-02-11 01:59 UTC, Jonathan Lovelace
Details
dev-python:matplotlib-3.5.1:20220211-013850.log.gz (dev-python:matplotlib-3.5.1:20220211-013850.log.gz,67.36 KB, application/gzip)
2022-02-11 02:02 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
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