Thursday, 26 November 2015

Install PyDev in Eclipse on Ubuntu

First Step:


Then



after that

Then



Step 2.

Now Setting For Interpreter


Go to Window--> Preferences--> PyDev--> Interpreters--> Python Interpreter --> Quick Auto-Config--> apply--> ok

Step 3.

TO Import a project

New-Project-PyDev-PyDev Django project--Give Project name--next
then



 here select database Engine like mysql, postgis etc
then database name like--> mydb
database host like -->> localhost
db username and password
then click on finish


Step 3.

Now right click on project and import the project do want to import. you can also drag that project(to which u want to import) at eclipse project.

Step 4.

It will create Model Import error. so to solve the Model import errors got to 
1.) window-preferences-PyDev-interpreter-
2.) here under System On path. import the libraries of that imported project.
3.) click on New Folder option. and add ur all apps(only apps not project) to it and also go to the environment of that project and select 

4.) Local-lib-python-site packages then add them to the eclipse interpreter. 



------------------------------------------------------------------------------------------------------------------------------

Q. C programs debugging.

------------------------------------------------------------------------------------------------------------------------

Q. Launched failed. Binary not found.
Ans :
The following are the things you need to make sure they are set:
  1. Window > Preferences > C/C++ > New CDT project wizard > Makefile Project > Binary Parsers
    a) Set it to PE Windows Parser if you are on windows.
    b) Set it to Cygwin PE Parser if you are using Cygwin
    c) Elf parser for ubuntu
  2. Window > Preferences > C/C++ > Build > Environment
    Now click on "select" and select "Path" variable so that you add you path variables in Eclipse.
Now its all done!
All you have to do is write a test program and press Ctrl+B (Build all; there is a button on menu bar) and after that click "Run".
http://stackoverflow.com/questions/9407430/launch-failed-binary-not-found-eclipse-for-c-in-windows
-------------------------------------------------------------------------------------------------------