After seting up a new fresh environment which is installed from source, the test test_dag_drawer_checks_filename_correct_format in test_dag_drawer.py is failing while running the tests using tox -epy312.
According to the failure message and from what I understand, it is due to pillow missing as a dependency.
Log tail
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "[REDACTED]/qiskit/test/python/visualization/test_dag_drawer.py", line 54, in test_dag_drawer_checks_filename_correct_format
dag_drawer(self.dag, filename="aaabc")
File "[REDACTED]/qiskit/qiskit/utils/lazy_tester.py", line 165, in out
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "[REDACTED]/qiskit/qiskit/utils/lazy_tester.py", line 164, in out
self.require_now(feature)
File "[REDACTED]/qiskit/qiskit/utils/lazy_tester.py", line 221, in require_now
raise MissingOptionalLibraryError(
qiskit.exceptions.MissingOptionalLibraryError: "The 'pillow' library is required to use 'dag_drawer'. You can install it with 'pip install pillow'."
Environment
What is happening?
After seting up a new fresh environment which is installed from source, the test
test_dag_drawer_checks_filename_correct_format
intest_dag_drawer.py
is failing while running the tests usingtox -epy312
.According to the failure message and from what I understand, it is due to
pillow
missing as a dependency.Log tail
How can we reproduce the issue?
On a blank environment
What should happen?
All tests should pass
Any suggestions?
Add the decorator
@unittest.skipUnless(_optionals.HAS_PIL, "PIL not installed")
to the testtest_dag_drawer_checks_filename_extension