Skip to content

Instantly share code, notes, and snippets.

@jimk
Created April 30, 2012 23:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jimk/2563701 to your computer and use it in GitHub Desktop.
Save jimk/2563701 to your computer and use it in GitHub Desktop.
Installing the Eric IDE for Python on OS X Lion
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!
@dslwz2008
Copy link

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.

@baiyuxiong
Copy link

I got the same error.
After : brew install QScintilla2
python install.py shows errors :
Checking dependencies
Python Version: 2.7.9
Found PyQt5
Sorry, please install QScintilla2 and
its PyQt5/PyQt4 wrapper.
Error: cannot import name Qsci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment