Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create Django Project in PyDev

I am running Eclipse Kepler 4.3 with PyDev 3.0 on Ubuntu 12.04 LTE. I have default Python 2.7 installed. I have installed Django with:

sudo pip install django

I have installed PyDev from update site and configured interpreter with Quick Auto-Config. I can see /usr/local/lib/python2.7/dist-packages path in Libraries section where Django is installed.

I can create normal PyDev projects successfully and I can see django package in System Libs. But when I try to create PyDev Django project, 'Next' and 'Finish' buttons are disabled. So I can't create the project. I am not seeing any error but the buttons stay disabled for any project name.

Is this a PyDev bug or a mistake in interpreter configuration? Can anyone suggest how to resolve it?

Update: I have just got it working. If I create a simple PyDev project and keep it in workspace. After that I can create PyDev Django projects successfully. But if I delete simple PyDev project, it stops working again. So for a workaround, I have created a dummy PyDev project and kept it in my workspace. However, it would be good if someone can suggest a proper solution.

like image 284
Paryank Kansara Avatar asked Dec 02 '13 09:12

Paryank Kansara


1 Answers

As stated by Fabio above, it was a bug in PyDev. It has now been corrected (thanks Fabio)

To make it working:

  1. Add Pydev Nightly builds to your update sites
  2. Upgrade to build 3.2.1 (stable versions 3.2.0.x or lower do not include the fix)

It worked for me

Env:

  • Ubuntu 13.10
  • Eclipse 4.2.2
  • Python interpreters 2.7 & 3.3
like image 118
dargil Avatar answered Oct 12 '22 09:10

dargil