Opened 8 years ago

Closed 8 years ago

#49797 closed defect (fixed)

pyqt5 doesn't expose QtSVG support

Reported by: j.ellerbroek@… Owned by: mamoll (Mark Moll)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: py-pyqt5

Description

After upgrading to El Capitan (fresh install), pyqt5, doesn’t support loading of SVG images anymore. I have made two test scripts, one C++ and one Python to test SVG support with QImageReader::supportedImageFormats() (see attached). The results are that the C++ version does report SVG(z) support, but the Python version doesn't. The list of supported image formats is otherwise the same.

Attachments (2)

qttest.cpp (351 bytes) - added by j.ellerbroek@… 8 years ago.
C++ test file
qttest.py (175 bytes) - added by j.ellerbroek@… 8 years ago.
Python test file

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by j.ellerbroek@…

Attachment: qttest.cpp added

C++ test file

Changed 8 years ago by j.ellerbroek@…

Attachment: qttest.py added

Python test file

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Keywords: pyqt5 svg removed
Owner: changed from macports-tickets@… to mmoll@…
Port: py-pyqt5 added; py27-pyqt5 removed

In the future, please Cc the port maintainers (port info --maintainers py27-pyqt5), if any.

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Summary: pygt5 doesn't expose QtSVG supportpyqt5 doesn't expose QtSVG support

comment:3 Changed 8 years ago by mamoll (Mark Moll)

I can't even install qt5; the installation of qt5-qtwebengine fails. I need to file a bug report for that first. In the meantime, can you check whether this is helpful: https://www.riverbankcomputing.com/pipermail/pyqt/2015-July/036199.html?

comment:4 Changed 8 years ago by j.ellerbroek@…

Good tip! The following fixes my problem:

export DYLD_FRAMEWORK_PATH=/opt/local/libexec/qt5/lib/

I wonder though why this is only the case for the qtsvg lib, and why this wasn't a problem before. Did the libs move to a different directory compared to previous versions of Qt?

comment:5 Changed 8 years ago by mamoll (Mark Moll)

Cc: mcalhoun@… added

CC-ing the qt5-qtsvg maintainer to check whether this is something that should be fixed in that port...

comment:6 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

After r143113, svg started showing up for me.
Has the problem been fixed for others as well?

comment:7 Changed 8 years ago by mamoll (Mark Moll)

Resolution: fixed
Status: newclosed

Yes, thanks!

Note: See TracTickets for help on using tickets.