Opened 13 years ago

Closed 13 years ago

#29857 closed defect (invalid)

Incompatible library version: libQtGui.4.dylib requires version 45.0.0 or later, but libpng12.0.dylib provides version 44.0.0

Reported by: thomas.haymore@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: michaelld (Michael Dickens), mamoll (Mark Moll)
Port: qt4-mac py26-pyside libpng

Description

Installed PySide through macports with dependencies, but when import module in python, get following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PySide/QtGui.so, 2): Library not loaded: /opt/local/lib/libpng12.0.dylib
  Referenced from: /opt/local/lib/libQtGui.4.dylib
  Reason: Incompatible library version: libQtGui.4.dylib requires version 45.0.0 or later, but libpng12.0.dylib provides version 44.0.0

I have already tried:

sudo port selfupdate
sudo port upgrade outdated

and

sudo port -n upgrade --force libpng

All with no effect. I'm using a Mac 10.6.

Change History (5)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

libpng was upgraded to 1.4 a long time ago. See #29831 for some steps you can try.

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Cc: michaelld@… added
Port: qt4-mac py26-pyqt4 libpng added

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Cc: mmoll@… added
Port: py26-pyside added; py26-pyqt4 removed

comment:4 Changed 13 years ago by thomas.haymore@…

Here's what ended up happening (in addition to steps above):

  1. When I tried to uninstall libpng, I discovered I had two versions installed, 1.2 and 1.4.
  2. I tried uninstalling only 1.2 and forcing 1.4 to upgrade, but that didn't work
  3. Uninstalled everything, libpng, qt4, and py26-pyside
  4. reinstalled qt4 and py26-pyside and dependents
  5. everything seems to work fine now

Thanks for the help.

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Ok, glad you got it working.

Note: See TracTickets for help on using tickets.