[Eric] eric5 on Mac OS X 10.6.8 - QWidget error

Ronan Maron ronanm2 at gmail.com
Sat Jan 21 02:52:36 GMT 2012


Hello,

I installed eric5 on my Mac following this tutorial: http://goo.gl/rDQ89
When I try to launch eric5, it stops and shows this message:
"QWidget: Must construct a QApplication before a QPaintDevice"

Here is the shell script for installation:

# beginning of shell script
# SIP
ftp 
http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.13.1.tar.gz
tar -xvzpf sip-4.13.1.tar.gz
cd sip-4.13.1
export MACOSX_DEPLOYMENT_TARGET=10.6
python3.2 configure.py -n  --arch=x86_64 -s MacOSX10.6.sdk
make
sudo make install
cd ..

# QScintilla
ftp 
http://www.riverbankcomputing.co.uk/static/Downloads/QScintilla2/QScintilla-gpl-2.6.tar.gz
tar -xvzpf QScintilla-gpl-2.6.tar.gz
cd QScintilla-gpl-2.6
cd Qt4
qmake qscintilla.pro -spec macx-g++
make sudo make install
cd ../..

# PyQt
sudo ports install py32-pyqt4

# QScintilla Python bindings
cd QScintilla-gpl-2.6/Python
python3.2 configure.py
make
sudo make install
cd ..
cd ..

# Eric
ftp 
http://sourceforge.net/projects/eric-ide/files/eric5/stable/5.1.8/eric5-5.1.8.tar.gz/download
ftp 
http://sourceforge.net/projects/eric-ide/files/eric5/stable/5.1.8/eric5-i18n-fr-5.1.8.tar.gz/download
tar -xvzpf eric5-5.1.8.tar.gz
tar -xvzpf eric5-i18n-fr-5.1.8.tar.gz
cd eric5-5.1.8
sudo python3.2 install.py
sudo python3.2 install-i18n.py
# end of shell script

I had to use MacPorts to install PyQt. I think the error comes from 
that. But I can't install it from source.

Does anyone know how to run eric5 on Mac OS X 10.6.8?
Does anyone know how to install PyQt from source?

In advance, thank you.

Ronan


More information about the Eric mailing list