Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-15-2012, 02:03 PM   #1
se6git
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.
se6git is offline   Reply With Quote
Old 11-15-2012, 03:53 PM   #2
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,551
Quote:
Now, I have uninstalled and reinstalled both via the Riverbank installer and MacPorts versions.

Is the executable in your PATH? In your Terminal, enter the following command and show us the results:

echo $PATH

Trevor
trevor is online now   Reply With Quote
Old 11-16-2012, 12:02 AM   #3
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,941
Quote:
Originally Posted by se6git
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.

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
hayne is offline   Reply With Quote
Old 11-16-2012, 03:05 AM   #4
se6git
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.
se6git is offline   Reply With Quote
Old 11-16-2012, 11:46 AM   #5
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,551
Quote:
Originally Posted by se6git
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.

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
If I issue the command which sed, I get

Code:
% which sed
/sw/bin/sed
It tells me the that the version installed by fink in /sw/bin gets called, in this case because it's first in my PATH.

Trevor
trevor is online now   Reply With Quote
Old 11-19-2012, 11:19 AM   #6
se6git
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/
se6git is offline   Reply With Quote
Old 11-23-2012, 03:52 AM   #7
se6git
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.
se6git is offline   Reply With Quote
Old 11-28-2012, 07:22 AM   #8
se6git
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.
se6git is offline   Reply With Quote
Reply

Tags
pyqt4, python, spyder

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:41 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.