Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#35636 closed defect (invalid)

py27-pyqt4 @4.9.1_0 failures loading webkit plugins

Reported by: dustin@… Owned by: michaelld (Michael Dickens)
Priority: Low Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: py27-pyqt4

Description

The following reduced Python script:

import sip
sip.setapi('QVariant', 2)
from PyQt4 import QtWebKit
from PyQt4.QtNetwork import QNetworkRequest, QNetworkAccessManager
from PyQt4.QtCore import QByteArray, QUrl
from PyQt4.QtGui import QApplication

app = QApplication(['test'])
page = QtWebKit.QWebPage(app)
main_frame = page.mainFrame()
body = QByteArray()
request = QNetworkRequest(QUrl("http://www.ywlcs.org"))

main_frame.load(request, QNetworkAccessManager.GetOperation, body)
while True:
    app.processEvents()

fails with

objc[32791]: Class WebCoreMovieObserver is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore. One of the two will be used. Which one is undefined.
objc[32791]: Class WebCoreSharedBufferData is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore. One of the two will be used. Which one is undefined.
objc[32791]: Class WebVideoFullscreenWindow is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined.
objc[32791]: Class WebVideoFullscreenController is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined.
objc[32791]: Class WebVideoFullscreenHUDWindowController is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined.
objc[32791]: Class WebVideoFullscreenHUDWindow is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined.
objc[32791]: Class WebWindowFadeAnimation is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined.
objc[32791]: Class WebWindowScaleAnimation is implemented in both /opt/local/lib/libQtWebKit.4.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined.
2012-08-12 09:17:52.130 python[32791:903] Error loading /Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin/Contents/MacOS/npgtpo3dautoplugin:  dlopen(/Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin/Contents/MacOS/npgtpo3dautoplugin, 262): no suitable image found.  Did find:
        /Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin/Contents/MacOS/npgtpo3dautoplugin: mach-o, but wrong architecture
2012-08-12 09:17:52.147 python[32791:903] Error loading /Library/Internet Plug-Ins/Silverlight.plugin/Contents/MacOS/agcore:  dlopen(/Library/Internet Plug-Ins/Silverlight.plugin/Contents/MacOS/agcore, 262): no suitable image found.  Did find:
        /Library/Internet Plug-Ins/Silverlight.plugin/Contents/MacOS/agcore: mach-o, but wrong architecture
2012-08-12 09:17:52.159 python[32791:903] Error loading /Users/dustin/Library/Internet Plug-Ins/WebEx.plugin/Contents/MacOS/WebEx:  dlopen(/Users/dustin/Library/Internet Plug-Ins/WebEx.plugin/Contents/MacOS/WebEx, 262): no suitable image found.  Did find:
        /Users/dustin/Library/Internet Plug-Ins/WebEx.plugin/Contents/MacOS/WebEx: mach-o, but wrong architecture
2012-08-12 09:17:52.467 python[32791:903] Error loading /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin:  dlopen(/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin, 265): no suitable image found.  Did find:
        /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: no matching architecture in universal wrapper
2012-08-12 09:17:52.470 python[32791:903] Error loading /Library/Internet Plug-Ins/googletalkbrowserplugin.plugin/Contents/MacOS/googletalkbrowserplugin:  dlopen(/Library/Internet Plug-Ins/googletalkbrowserplugin.plugin/Contents/MacOS/googletalkbrowserplugin, 262): no suitable image found.  Did find:
        /Library/Internet Plug-Ins/googletalkbrowserplugin.plugin/Contents/MacOS/googletalkbrowserplugin: mach-o, but wrong architecture
plugin,NP_Initialize start
plugin,NP_Initialize end
plugin,NP_GetEntryPoints start
Private_Initialize
plugin,NP_GetEntryPoints end
2012-08-12 09:17:52.611 python[32791:903] Error loading /Library/Internet Plug-Ins/iPhotoPhotocast.plugin/Contents/MacOS/iPhotoPhotocast:  dlopen(/Library/Internet Plug-Ins/iPhotoPhotocast.plugin/Contents/MacOS/iPhotoPhotocast, 262): no suitable image found.  Did find:
        /Library/Internet Plug-Ins/iPhotoPhotocast.plugin/Contents/MacOS/iPhotoPhotocast: no matching architecture in universal wrapper
2012-08-12 09:17:52.624 python[32791:903] Error loading /Users/dustin/Library/Internet Plug-Ins/Unity Player.plugin/Contents/MacOS/Unity Player:  dlopen(/Users/dustin/Library/Internet Plug-Ins/Unity Player.plugin/Contents/MacOS/Unity Player, 262): no suitable image found.  Did find:
        /Users/dustin/Library/Internet Plug-Ins/Unity Player.plugin/Contents/MacOS/Unity Player: no matching architecture in universal wrapper

It sounds like there are two problems: first, duplicate libs between MacPorts and OS X, and second, inability to load plugins.

If I load a page that doesn't require plugins, it seems to work OK.

This is on Snow Leopard.

Change History (6)

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

Owner: changed from macports-tickets@… to michaelld@…

comment:2 Changed 12 years ago by michaelld (Michael Dickens)

The duplicate library issue is OK generally, so long as the "otool -L" version is correct for whatever is being loaded. I think this is demonstrated by what you wrote: pages load OK if they don't require plugins.

comment:3 Changed 12 years ago by michaelld (Michael Dickens)

As for the plugins not loading, the log your posted says "mach-o, but wrong architecture" for all of them. Maybe you recently moved from 32-bit to 64-bit, or PPC to Intel, but without re-installing the plugins for the current architecture? MacPorts can only work within its constraints, and we cannot control what the user already has installed -- e.g., in "/Library/Frameworks/" or "/Library/Internet Plug-Ins/". I would recommend that you re-install whatever internet browser plugins you desire to use, for the current architecture.

comment:4 Changed 12 years ago by michaelld (Michael Dickens)

Resolution: invalid
Status: newclosed

I'm closing this ticket as "cannot fix". If you feel this is incorrect then reopen and provide me with more info on the issue.

comment:5 Changed 12 years ago by dustin@…

No argument on closing invalid.

I didn't change architectures here - this is a stock (if old) Snow Leopard system. But for my purposes I don't need plugins, so that's fine too.

comment:6 Changed 12 years ago by michaelld (Michael Dickens)

OK; thanks for getting back. When I have time I'll try loading a webpage with plugins on my 10.8 box to see if it works. I don't even have py*-pyqt4 installed on it yet, since there are other issues with qt4-mac that I have to resolve first!

Note: See TracTickets for help on using tickets.