Saturday, October 31, 2009

How to integrate Pydev in Eclipse for Ubuntu Karmic Koala

I'm an avid Vi user. For any of my tasks on Linux, I prefer the powerful command prompt and the Vi editor. That was more than sufficient for all my tasks earlier. However,the last month, I've taken up the task of writing some solid python code and managing the code as it moved upto 5+ files was turning out to be a problem. The solution : Eclipse-pydev package: http://pydev.org/
This is an Eclipse plugin that will allow Python development in Eclipse.
The eclipse-pydev package was available until Ubuntu Jaunty and in Karmic, this package has been removed :
http://ubuntuforums.org/showthread.php?t=1307755
https://bugs.launchpad.net/ubuntu/+source/eclipse-pydev/+bug/450031
https://bugs.launchpad.net/ubuntu/+source/eclipse-pydev/+bug/135556

The following steps show how to install the Pydev package on Eclipse for Karmic. Remember, the package is not available officially in Ubuntu Karmic and if you run into any troubles, you can only post in the Ubuntu forums and hope for help (which I'm sure, you'll receive and a good one, as I did)
For this, it is necessary that you run Eclipse as a super-user for once. After the plugin installation is complete, you can use Eclipse as a normal-user
After launching Eclipse as a super-user

1. Click Help -> Install New Software
2. Click "Add"
3. Add Name: Pydev and Location: http://pydev.org/updates and Click "OK".
4. Now you should see two options as shown here. Select only "Pydev" and follow the screen shots


5. Restart Eclipse and you should now be able to develop Python code in Eclipse :)
Leave a comment in here if you see something different!

10 comments:

LimitCracker said...

I had problem when i was not logged in as root but it worked like a charm when i did.
Thank you

Ravindra Rajaram said...

Great to know that it worked for you!

-Ravindra.

Unknown said...

Thank you very much, worked exactly as you described!

Yasir Iqbal said...

Can we run the Pydev on terminal window. Or the X windows server is must for the Pydev

Ravindra Rajaram said...

I'm gonna take an educated guess and say that X Windows is necessary.
PyDev is an Eclipse IDE plugin, which absolutely needs an X service

-Ravindra

Anahita said...

Awesome help! Thanks!

Anahita said...

Awesome help! Thanks!

Anahita said...

Awesome help! Thanks!

Bill said...

instead of saying the pydev was unsigned, I had to click that I was accepting the signed pydev.

omrehman said...

Very useful Thank you :)