[MacPorts] #36268: py27-pyqt4 @4.9.4 fails to upgrade

MacPorts noreply at macports.org
Fri Sep 21 11:34:41 PDT 2012


#36268: py27-pyqt4 @4.9.4 fails to upgrade
-------------------------------+-------------------------
  Reporter:  nonstop.server@…  |      Owner:  michaelld@…
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.1.2
Resolution:                    |   Keywords:
      Port:  py27-pyqt4        |
-------------------------------+-------------------------

Comment (by nonstop.server@…):

 Replying to [comment:11 michaelld@…]:

 Output of the otool list:
 {{{
 % otool -L
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/PyQt4/QtGui.so
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/PyQt4/QtGui.so:
         /opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui
 (compatibility version 4.8.0, current version 4.8.3)
         /opt/local/Library/Frameworks/QtCore.framework/Versions/4/QtCore
 (compatibility version 4.8.0, current version 4.8.3)
         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
 version 7.4.0)
         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.7)
 }}}
 Maybe using this tip will help you to get debugging working on 10.7. I
 archived it for future use, although I never actually implemented it
 myself.
 source: [http://blog.odnous.net/2011/06/frequently-overlooked-and-
 practical.html][[BR]]
 {{{
 Quick tip: Qt4 debugging with (i)pdb / pudb

 Since Qt4 has its own event loop it's not that easy to debug PyQt4
 applications using standard tools.
 Python support for QtCreator is nowhere near. To be able to use your
 favourite Python debugger (pdb/ipdb/pudb)
 prepare the following snippet and call it every time you want to pause the
 execution:

  1 def debug():
  2    from PyQt4.QtCore import pyqtRemoveInputHook
  3    pyqtRemoveInputHook()
  4    # Load either ipdb.
  5    from ipdb import set_trace
  6    # Or pdb.
  7    # from pdb import set_trace
  8    # Or pudb.
  9    # from pudb import set_trace
 10    # Enter debugging mode.
 11    set_trace()

 Your debugger will show up when the execution reaches debug() call.
 It's somewhat crude way of debugging since there are IDEs that allow you
 to debug PyQt4
 application in usual step-in/-over/-out way.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/36268#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list