The following forum message was posted by dbbh at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3918340:

Im having a similar problem with PyDev PyQt4. When i try to run my script (from
PyQt4 import QtGui) i get the following error: Traceback (most recent call
last):
  File "/Users/henriques/EclipseProjects/python/HelloWorld/src/main.py", line
8, in <module>
    from PyQt4 import QtGui
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python
2.7/site-packages/PyQt4/QtGui.so, 2): Symbol not found: _PyCapsule_Import
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Py
Qt4/QtGui.so
  Expected in: flat namespace
 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-package
s/PyQt4/QtGui.so

The import is ok but any functions from the QtGui namespace gives an error 
(symbol
not found). I have tried the following things: run directly from python shell
(it works); add /lib and /lib/site-packages (where pyqt is), add only
/lib/site-packages, add /lib/site-packages and /lib/site-packages/PyQt4/, add
only /lib/site-packages/PyQt4/.
Im currently using /lib /lib/site-packages. Other imports like scipy works fine.
I have also tried to enable/disable code analysis.
Im currently using python 2.7 with PyQt4 (latest version) with Eclipse Hellios
and up to date PyDev. (Snow Leopard x86_64). I have build my libraries with
the i386 arch and they work fine with python shell (terminal).

Thanks in advance.


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to