Skip to content

Commit

Permalink
Fix pillow import in optionals (Qiskit/qiskit#7774)
Browse files Browse the repository at this point in the history
* Change optionals import for pillow

* Text change and co-author

Co-authored-by: Jake Lishman <[email protected]>

* Remove release note

Co-authored-by: Jake Lishman <[email protected]>
  • Loading branch information
enavarro51 and jakelishman authored Mar 14, 2022
1 parent b11d9d7 commit d98f0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit_algorithms/utils/optionals.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _nlopt_callback(available):
callback=_nlopt_callback,
msg="See the documentation of 'qiskit.algorithms.optimizer.nlopts' for installation help",
)
HAS_PIL = _LazyImportTester({"PIL": ("Image",)}, name="pillow", install="pip install pillow")
HAS_PIL = _LazyImportTester("PIL.Image", name="pillow", install="pip install pillow")
HAS_PYDOT = _LazyImportTester("pydot", install="pip install pydot")
HAS_PYLATEX = _LazyImportTester(
{
Expand Down

0 comments on commit d98f0b3

Please sign in to comment.