You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugEither a bug report, or a bug fix. Let's hope for the latter!FeedbackWaiting on the submitter for answersmacOSstaleUh oh! Seems this work is abandoned, and the PR is about to close.
The imports from the matplotlib QT backend are not working on MacOS (e.g. FigureCanvasQTAgg_ or NavigationToolbar2QT from matplotlib.backends.backend_qt5agg ). I use those classes in a plugin to draw diagrams on a canvas.
The imports work fine in the Windows versions though.
There seems to be a library missing in the recent MacOS versions (?)
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg
Traceback (most recent call last):
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/matplotlib-3.3.0-py3.8-macosx-10.13.0-x86_64.egg/matplotlib/backends/backend_qt5agg.py", line 10, in <module>
from .backend_agg import FigureCanvasAgg
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/matplotlib-3.3.0-py3.8-macosx-10.13.0-x86_64.egg/matplotlib/backends/backend_agg.py", line 35, in <module>
from PIL import Image
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/Pillow-7.2.0-py3.8-macosx-10.13.0-x86_64.egg/PIL/Image.py", line 94, in <module>
from . import _imaging as core
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 793, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: dlopen(/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/Pillow-7.2.0-py3.8-macosx-10.13.0-x86_64.egg/PIL/_imaging.cpython-38-darwin.so, 2): Library not loaded: /opt/X11/lib/libxcb.1.dylib
Referenced from: /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/Pillow-7.2.0-py3.8-macosx-10.13.0-x86_64.egg/PIL/_imaging.cpython-38-darwin.so
Reason: image not found
Steps to reproduce the issue
Python console in QGIS (MacOS)
type: from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg
thank you for the fast response! The imports work with the linked nightly build 👍.
the output of the otool command:
/Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/Pillow-7.2.0-py3.8-macosx-10.13.0-x86_64.egg/PIL/_imaging.cpython-38-darwin.so:
@rpath/libjpeg.9.dylib (compatibility version 14.0.0, current version 14.0.0)
@rpath/libopenjp2.7.dylib (compatibility version 7.0.0, current version 2.3.1)
@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
@rpath/libtiff.5.dylib (compatibility version 11.0.0, current version 11.0.0)
/opt/X11/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.
While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.
BugEither a bug report, or a bug fix. Let's hope for the latter!FeedbackWaiting on the submitter for answersmacOSstaleUh oh! Seems this work is abandoned, and the PR is about to close.
What is the bug or the crash?
The imports from the matplotlib QT backend are not working on MacOS (e.g. FigureCanvasQTAgg_ or NavigationToolbar2QT from matplotlib.backends.backend_qt5agg ). I use those classes in a plugin to draw diagrams on a canvas.
The imports work fine in the Windows versions though.
There seems to be a library missing in the recent MacOS versions (?)
Steps to reproduce the issue
Versions
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: