10 comments on “PyQt and Pydev in Eclipse on Snow Leopard

    • Fabio,

      thank you so much for the info and the links.
      I tried running your code in Idle. It didn’t crash

      IDLE 2.6.1      
      >>> from PyQt4.QtCore import *
      >>> QSignalMapper
      <class 'PyQt4.QtCore.QSignalMapper'>
      >>> import inspect
      >>> inspect.ismodule(QSignalMapper)



  1. I tried this using PyQT 4.6.2 (the latest available on the Riverbank site). I got through the PyQT ‘make’ step. The compilation errors out after a while, saying that /Library/Frameworks/Python.framework/Python is missing the architecture x86_64. The compiler then spits out a long list of missing symbols. Do you have any idea what may be going wrong for me?

    • Jeff,

      is your Mac capable of running 64bit applications? (Do you have a Core 2 Duo or later CPU)
      If yes, which version of Python are you running?

      I upgraded to sip 4.9.3 and PyQt 4.6.2 after reading your comment. Using the same settings as before, they both installed without problems.


  2. Herrson,

    I have a Macbook Pro, Core 2 Duo. The version info that shows up in Terminal when I start Python is, “Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin”. I believe that is the Snow Leopard installed version of Python, but I might be mistaken.

    • Hi Jeff.

      You are not mistaken, that is the version that ships with Snow Leopard. Then I have no idea why it doesn’t build.

      Please note that I have updated the post today. My setup doesn’t work either.


  3. Well, I got it to compile. I reinstalled XCode and it worked. I’m not getting the Python interpreter crash with PyQt4 that Fabio is describing on his linked blog pages. I haven’t tried to do much in Eclipse yet, though. It may still all go south on me.

    • Nice :-)

      I would really like to hear about your experiences when you get to try out Eclipse a bit more. Especially since I thought things were ok when I started out, and then later found out it was not.



  4. Here are some early results from using PyDev with the latest PyQt and SIP

    If I create a PyDev project in Eclipse by pointing to an existing project folder (freshly sync’d from Git) and tell PyDev to create a ‘src’ folder (even though one already exists in the parent project folder) I get massive numbers of import errors and a project that will not run.

    If I blow away that PyDev project and recreate it, again pointing it at the existing project folder, but tell it to not create the ‘src’ folder (because one already exsists), the project creates successfully, all of my Python source code is available, and the project does not have errors. It appears to run correctly, too.

Leave a Reply

Your email address will not be published. Required fields are marked *

− three = 0

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>