After hours of trial and error I found installing Qt4 and then PyQt4 under 
EPD enables me to use EPD with Spyder. To give proper credit, several of 
the steps below borrowed from tips that were found online.

Following steps are done on Ubuntu 12.04 LTS, EPD 7.3-2 (64-bit) with 
Python 2.7.3, and Spyder 2.1.11

0. If you have installed Spyderlib from Ubuntu Software Center, uninstall 
it, and make sure all shortcuts to it are deleted.

1. Install EPD. Assume it is installed to /home/epd/. Add /home/epd/bin to 
$PATH. There are many ways to do so, but the one I chose is:
Create a new file epd.sh under /etc/profile.d/

sudo nano /etc/profile.d/epd.sh

add there

export PATH=/home/epd/bin:$PATH

and give right on executable

sudo chmod a+x /etc/profile.d/epd.sh


2. Install PyQt4 under EPD python:

(1) Download, unpack/decompress, make, and install Qt4 to have "qmake" and 
related libraries. I used version 4.8.4.

Download link: http://qt-project.org/downloads
Installation instruction: http://qt-project.org/doc/qt-4.8/install-x11.html

Before running ./configure, make sure the following command is executed 
first, otherwise there may be a failure "Basic XLib functionality test 
failed"

sudo apt-get install libx11-dev libfreetype6-dev libavahi-gobject-dev 
libSM-dev libXrender-dev libfontconfig-dev libXext-dev

The other 3 commands I used to make and install Qt4 (see installation 
instruction for full detail):

sudo ./configure
sudo make
sudo make install

The step of making Qt4 make take very long (a couple hours).

(2) Download, unpack/decompress, make, and install sip:

Download link: http://www.riverbankcomputing.com/software/sip/
Installation instruction: 
http://www.riverbankcomputing.com/static/Docs/sip4/installation.html

The 3 key commands used:

sudo /home/epd/bin/python configure.py
sudo make
sudo make install

(3) Download and install PyQt4:

Download link: http://www.riverbankcomputing.com/software/pyqt/download
Installation instruction: 
http://www.riverbankcomputing.com/static/Docs/PyQt4/html/installation.html

Note: even if you have configured PATH properly for locating qmake (e.g. by 
adding /usr/local/Trolltech/Qt-4.8.4/bin to the file /etc/profile.d/epd.sh 
which was created in step 1 above), somehow you may still need to specify 
the path to find qmake for configure.py, i.e. you should use

sudo /home/epd/bin/python configure.py -q 
/usr/local/Trolltech/Qt-4.8.4/bin/qmake

The remaining 2 key commands are, again,

sudo make
sudo make install


3. Download and install Spyder:
Download link: http://code.google.com/p/spyderlib/downloads/list

To install:
sudo /home/epd/bin/python setup.py install

To run:
/home/epd/bin/python /home/epd/bin/spyder&

Make a shortcut of this command for fast launch later.

4. If you had installed Spyderlib from Ubuntu Software Center and 
uninstalled, now check again to make sure under Spyder "Tools", 
"Preferences", "Console", "Advanced settings", "PYTHONSTARTUP 
replacement" is pointing to the startup script under Spyderlib in EPD 
(/home/epd/lib/python2.7/site-packages/spyderlib/scientific_startup.py), 
NOT the old Spyder under /usr/...

Enjoy!!

On Monday, September 26, 2011 7:11:51 PM UTC-7, Brian Hanna wrote:
>
> Hi all, 
>
> I've just gotten spyder to run on our RHEL6 systems! Looks great, but 
> unfortunately it segfaults on exit. 
>
> I have: 
> epd-7.1-2-rh5-x86_64 (which includes PySide-1.0.5 in site-packages and 
> Qt-4.7.3 in lib) 
> spyder-2.0.12 
> sip-4.12.4 
>
> Without understanding PySide and Qt were part of EPD, I had also 
> downloaded and installed: 
>
> Qt-4.7.4 (from Nokia) 
> PyQt-x11-gpl-4.8.5 
>
> With PyQt installed with my EPD, I had a strange segfault with a 
> backtrace including Qt cores from BOTH PySide and PyQT... it would 
> crash right after the splash screen. 
>
> I moved PyQt aside within EPD site-packages, and now spyder runs with 
> PySide... but segfaults on exit. I've only done minimal testing so 
> far. 
>
> I'm hearing PySide is not stable yet, and others have seen this 
> segfault on exit. (Apparently it has been patched in PySide already.) 
> I'd like to try running spyder with just PyQt. 
>
> Any suggestions on how to control what spyder picks for Qt bindings 
> and libraries? 
>
> Thanks, 
>
> Brian

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/spyderlib/-/RPcRkwtueXkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to