Guest User

PyQt4 import error on Mac OSX

a guest
Feb 19th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
  2. [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
  3. Type "help", "copyright", "credits" or "license" for more information.
  4.  
  5. >>> from PyQt4.QtGui import *
  6. Traceback (most recent call last):
  7.   File "<stdin>", line 1, in <module>
  8. Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
  9. [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
  10. Type "help", "copyright", "credits" or "license" for more information.
  11. ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/PyQt4/QtGui.so, 2): no suitable image found.  Did find:
  12.     /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/PyQt4/QtGui.so: mach-o, but wrong architecture
Advertisement
Add Comment
Please, Sign In to add comment