public
Created

Installing the Eric IDE for Python on OS X Lion

  • Download Gist
eric_on_lion.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
You'll find that getting QT to play nicely on Lion is less than intuitive and painful much less getting all of the Eric IDE pre-requisites working, as well. In a effort to ease your pains, here's the steps that I went through:
 
btw, these instructions are assuming you have an Intel Mac (I doubt Lion supports PowerPC, though).
 
Xcode
- What developer hasn't installed Xcode on his Mac, yet?!?
- Xcode has the build tools that everything needs so you'll need this.
 
Python
- I think the OS X version of Python will work but I used python2.7 from Homebrew
- You can figure this part out for yourself <= I'm too lazy!
 
Qt 4.8.1 <= as of this writing
- Download the SDK from here: http://qt-project.org/downloads
- I used the Online SDK installer but the Offline installer will probably work too.
- Just install the pkg like you normally would but be patient since this WILL take a while.
 
SIP
- Don't ask me what this is, just install it because you need it.
- Download it from here: http://www.riverbankcomputing.co.uk
- tar -xvzf sip-<some version number>.tar.gz
- cd sip-<some version number>
- export MACOSX_DEPLOYMENT_TARGET=10.7
- python configure.py -n --arch=x86_64 -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
- make
- sudo make install
 
QScintilla - Qt4
- Don't ask me what this is, just install it because you need it.
- Download it from here: http://www.riverbankcomputing.co.uk
- tar -xvzf QScintilla-<some version number>.tar.gz
- cd QScintilla-<some version number>
- cd Qt4
- /Users/<username>/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake qscintilla.pro -spec /Users/<username>/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/macx-g++
- make
- sudo make install
 
PyQt
- This is used to bind python to the Qt framework
- Download it from here: http://www.riverbankcomputing.co.uk
- tar -xvzf PyQt-mac-<some version number>.tar.gz
- cd PyQt-mac-<some version number>
- export QTDIR=/Users/<username>/QtSDK
- python configure.py -q /Users/<username>/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake -a --use-arch=x86_64
- accept the license
- make
- sudo make install
 
QScintilla - python
- cd QScintilla-<some version number>
- cd Python
- python configure.py
- make
- sudo make install
 
Eric (finally)
- Download eric4 here: http://eric-ide.python-projects.org/eric-download.html
- eric5 is for python3.x and nobody really uses python3, right?
- tar -xvzf eric4-<some version number>.tar.gz
- cd eric4-<some version number>
- sudo python install.py
- and finally:
- eric4 <= hooray!

hello,
I am following your instructions to install eric4 on my mac os x 10.7.
Everything is fine exept the last step.When I input python install.py in eric4-4.5.6 folder,I always got the following error:
Checking dependencies
Python Version: 2.7.3
Found PyQt4
Found QtHelp
Sorry, please install QScintilla2 and
it's PyQt4 wrapper.
Error: cannot import name Qsci

There is no error during the installation of QScintilla2, so I don't konw what the problem is.
Thank you for your help.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.