|
|
#1 |
|
Prospect
Join Date: Feb 2008
Posts: 19
|
Spyder and PyQt
Got to the point of resignation on this one but I'll ask anyway.
Trying to get Spyder to work on Lion but keep getting: Please check Spyder installation requirements: PyQt4 4.4+ (or PySide 1.0+) is required. Now, I have uninstalled and reinstalled both via the Riverbank installer and MacPorts versions. Ive also installed PySide. I've updated the Python path, prayed, burnt chicken feathers, sacrificed virgins etc. but nothing helps. Does anybody have a clue what is going on here? I'm not a total novice but neither am I a geek so please, for the sake of my fragile sanity, keep the techno babble to the absolutely necessary. |
|
|
|
|
|
#2 | |||||||||||||||||||
|
Moderator
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,551
|
Is the executable in your PATH? In your Terminal, enter the following command and show us the results: echo $PATH Trevor
__________________
How to ask questions the smart way |
|||||||||||||||||||
|
|
|
|
|
#3 | |||||||||||||||||||||||
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,941
|
The message mentions specific versions of PyQt and PySide - do you have those versions installed? Do you perhaps also have some other (older?) versions of these libraries installed? Maybe Spyder is finding the older version before the newer one.
__________________
hayne.net/macosx.html |
|||||||||||||||||||||||
|
|
|
|
|
#4 |
|
Prospect
Join Date: Feb 2008
Posts: 19
|
Well, the version isn't the same, its 4.7 at least (have to check later). I did put the port install on the path but I suspect that there is an older version somewhere, or at least the memory of an older version somewhere causing issues. I read about this problem a few weeks ago on my last attempt to get Spyder working (I need a break after fighting with Qt4 issues - a not very long but very dull story). The advice was total uninstall and zap all memory of Qt4 and PyQt. Unfortunately the advice rapidly moved into a level of geekspeak beyond my comprehension and so I'm not sure if I got all possible traces of the older, developer version of PyQt out of my system.
Will try to reset and rewrite the Python path anew this evening (CET) and see if a clean flush helps. Thanks for the help so far. |
|
|
|
|
|
#5 | |||||||||||||||||||||||
|
Moderator
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,551
|
The which command can tell you what executable gets called. For example, I've got two versions of sed installed on my computer: Code:
% locate /bin/sed /sw/bin/sed /usr/bin/sed Code:
% which sed /sw/bin/sed Trevor
__________________
How to ask questions the smart way |
|||||||||||||||||||||||
|
|
|
|
|
#6 |
|
Prospect
Join Date: Feb 2008
Posts: 19
|
Seems to be some permission error. I can launch a sort of functional Spyder if I use sudo but the console throws up:
Traceback (most recent call last): File "spyder.py", line 1101, in plugin_focus_changed self.variableexplorer.set_shellwidget(shell) AttributeError: 'VariableExplorer' object has no attribute 'set_shellwidget' whenever I try to do anything in Spyder. I can check the PyQt4 instal if I launch Python with sudo: Mon Nov 19 18:10:19 | $ sudo python Password: Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 import QtCore >>> print QtCore.PYQT_VERSION_STR 4.9.4 >>> but I can't see why the permissions shouldn't work: Mon Nov 19 18:09:13 | $ cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/PyQt4/ Mon Nov 19 18:10:17 | $ ls total 77128 drwxrwxr-x 43 root admin 1462 Nov 19 18:00 ./ drwxrwxr-x 647 root admin 21998 Nov 19 18:00 ../ -rwxr-xr-x 1 root admin 12744 Jun 28 20:29 Qt.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtCore.so* -rwxr-xr-x 1 root admin 8496 Jun 28 20:29 QtDeclarative.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtDesigner.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtGui.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtHelp.so* -rwxr-xr-x 1 root admin 8496 Jun 28 20:29 QtMultimedia.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtNetwork.so* -rwxr-xr-x 1 root admin 12576 Jun 28 20:29 QtOpenGL.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtScript.so* -rwxr-xr-x 1 root admin 8496 Jun 28 20:29 QtScriptTools.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtSql.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtSvg.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtTest.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtWebKit.so* -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 QtXml.so* -rwxr-xr-x 1 root admin 8496 Jun 28 20:29 QtXmlPatterns.so* -rw-r--r-- 1 root admin 1111 Jun 28 20:29 __init__.py -rw-r--r-- 1 root admin 168 Nov 1 18:45 __init__.pyc -rwxr-xr-x 1 root admin 16708432 Jun 28 20:29 _qt.so* -rw-r--r-- 1 root admin 3304 Jun 28 15:30 libQt.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libQtCore.a -rw-r--r-- 1 root admin 1248 Jun 28 15:30 libQtDeclarative.a -rw-r--r-- 1 root admin 1208 Jun 28 15:30 libQtGui.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libQtHelp.a -rw-r--r-- 1 root admin 1240 Jun 28 15:30 libQtMultimedia.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libQtNetwork.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libQtOpenGL.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libQtScript.a -rw-r--r-- 1 root admin 1248 Jun 28 15:30 libQtScriptTools.a -rw-r--r-- 1 root admin 1208 Jun 28 15:30 libQtSql.a -rw-r--r-- 1 root admin 1208 Jun 28 15:30 libQtSvg.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libQtTest.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libQtWebKit.a -rw-r--r-- 1 root admin 1208 Jun 28 15:30 libQtXml.a -rw-r--r-- 1 root admin 1248 Jun 28 15:30 libQtXmlPatterns.a -rw-r--r-- 1 root admin 22454272 Jun 28 15:30 lib_qt.a -rw-r--r-- 1 root admin 1224 Jun 28 15:30 libphonon.a -rwxr-xr-x 1 root admin 8480 Jun 28 20:29 phonon.so* -rw-r--r-- 1 root admin 14063 Jun 28 20:29 pyqtconfig.py drwxr-xr-x 15 root admin 510 Nov 19 18:00 uic/ |
|
|
|
|
|
#7 |
|
Prospect
Join Date: Feb 2008
Posts: 19
|
Given up and am using TextWrangler and iPython. Both work and I can achieve almost all I wanted from Spyder. The only thing I really miss is the variable display, which, on my Ubuntu machine at least, is better than Matlab.
I'm sure I will survive this hardship. |
|
|
|
|
|
#8 |
|
Prospect
Join Date: Feb 2008
Posts: 19
|
Hmmm. Making another attempt, don't know why, maybe I've become addicted to the pain.
So trying to install again. Had to install sip again, even though I already had it, but the PyQt configure.py file insists it doesn't exist: Wed Nov 28 14:17:04 | $ python configure.py Error: This version of PyQt requires SIP v4.14.0 or later Wed Nov 28 14:17:18 | $ sip -V 4.14.1 Wed Nov 28 14:17:23 | $ As you can see, sip exists and the version number is good. So, now that I have had my fix of pain for this round I can go back to ignoring Qt4, Nokia, Riverside and everything else. |
|
|
|
![]() |
| Tags |
| pyqt4, python, spyder |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|