PyDev Auto-Complete Doesn't Work - python

Today I reinstalled my OS (Ubuntu 11.10) and installed Django and PyDev.
I ran one of my programs that import Django framework. It works, but PyDev doesn't detect my project, Django, Simple Django Captcha and most Python libraries.
What can I do to fix this problem?
Actually, I must say I configured my PYTHONPATH in PyDev, too.

New versions of PyDev should have Django integration. Try looking here.
Also, it might help defining those libraries as Forced Builtins. I had to use it to get PyQt auto-complete working.

I had the some problem when I upgraded my Ubuntu, it was fixed when i installed the aptana studio package fully.

Related

Eclipse - Installed PyDev and nothing changed

This isn't my first time using Eclipse or installing PyDev but this is the first time it both succeeded and failed.
It succeeded because it installed, it shows up as being installed and installation went on fine without a problem.
It failed because nothing has shown up, there is no Python perspective, no PyDev views in the view list, no new projects under PyDev, no PyDev preferences. It is as if it is not actually installed at all.
The only thing I did differently is extract the latest eclipse to a folder called ~/eclipse and create a short cut to run it there (the latest Eclipse), usually I use apt-get to install eclipse, realise it's an old version (C++11 stuff missing) then upgrade and do this. Somehow PyDev is usually carried forward.
I'm not sure how it can list it as being installed but have this error, I'd appreciate any help you guys can offer.
I bet it's the problem of 3.x version of PyDev. It demands java 7.
2 solutions are possible:
Install java 7. re-run the Eclipse, Pydev should function well now. OR
Install last 2.x version of PyDev.
To do it
1) Remove PyDev : In Eclipse About window click Installation Details
button below. You will see controls for removing plug-ins.
2) Install 2.x version of PyDev:
Eclipse Help->Install New Software.
REMOVE CHECKBOX "Show only the latest version" located at the bottom of the dialog.
Choose Pydev update site from the list and in the appeared list of PyDev versions choose latest in 2.x branch.
The problem is really that sometimes even installing java 7, Eclipse does not get it.
In http://pydev.org/download.html, there's a section called: PyDev does not appear after install!
Try to follow it to see if it fixes your problem (i.e.: making Eclipse find java 7).
Another option would be using PyDev standalone (i.e.: LiClipse). Although it's commercial, it should come with all the requisites builtin (so, no hassles to install) and is updated whenever PyDev itself is updated.

Is there any way to set eclipse up for both Python and Ruby?

Can you set up eclipse for both Python and Ruby? I currently have it set up for java and python with PyDev. But when I try to install Aptana 3 plugin for ruby it won't let me saying that there is a conflicting dependency which I guess means I can have it set up for one or the other but not both? Anyone manage to set up eclipse for Java, Python and Ruby?
Trying to install Aptana plugins into an existing Eclipse installation usually doesn't work, in my experience. Instead, you could try installing the Eclipse DLTK which provides, among other things, a Ruby development environment.

If django is installed using pypm, would pydev detect it?

i have recently asked a question
I rechecked and it seems that pydev does not detect django either, but i can import django in activepython interpreter. so if i installed django using pypm would pydev detect it?
PyDev currently doesn't pick additions to the PYTHONPATH automatically, so, you have to re-configure your interpreter within PyDev (even if only the PYTHONPATH changed).
See: http://pydev.org/manual_101_interpreter.html

install pydev without rights to eclipse installation

My apologies if this has already been asked and answered. I don't know enough about eclipse & pydev setup to know what to search for.
I'd like to use pydev, but can't modify the existing installation of eclipse. Do I need to install my own eclipse so that I can then install pydev into it, or is there a way to install pydev off to the side such that I can then use it with the existing eclipse?
The best solution I found was multiple installations: eclipse is not that big (~250mb I think), but it's quite slow, so you'll want to have as little plugins as possible.
Something that worked quite nicely for me when I was using Pydev with Eclipse as a non-privileged user on a shared computer was to install Eclipse+Pydev on a flash drive. You have the added advantage of being able to work from any computer while having your usual settings.

Using pydev with Eclipse on OSX

I setup PyDev with this path for the python interpreter
/System/Library/Frameworks/Python.framework/Versions/2.5/Python
since the one under /usr/bin were alias and Eclipse won't select it. I can run my python script now but cannot run the shell as an external tool. The message I get is
variable references empty selection ${resource_loc}
Same if I use {container_loc}
Any thoughts ?
Sunit
I installed the Python.org version as well, this is a must.
I finally got PyDev working in Eclipse by pointing the interpreter to:
/Library/Frameworks/Python.framework/Versions/2.6/bin/python
manually. If you don't do it manually (by using the Autoconfig) it seems to not find the right version.
Common practice seems to be to install an up-to-date Python 2.5 from python.org and use that instead of the system installation. I saw that recommended here and there when I got started on Mac OS X.
It installs under /Library (as opposed to /System/Library) so the system Python is intact. Pydev has /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python as its configured Python interpreter and all is well.
Can't state for sure that your trouble is due only to using the system's Python installation; in any case this way I have no trouble. Also, this way when you fiddle with your development environment (install things in site-packages, upgrade Python), anything that uses the system Python is sure to be unaffected.
I know this is a ancient post... but, in case of some newbee like me to get the better answer.
I just using "Eclipse Marketplace" from the "Help" menu and search for keyword "python" or "PyDev" to get PyDev, and get it successfully installed.
AND, you should add PyDev to the top-right dock.
For the instance, my eclipse on my laptop's OSX is (Version: Indigo Service Release 2 Build id: 20120216-1857).
Have fun, folks! :)
I believe ${resource_loc} or ${container_loc} (without any argument) are based on the current selection in your workbench when you are launching your script.
So are you selecting the right resource when selecting that script through the "external tool" runner ?
At least, click on the project name before you run one of the external programs.
Note: it works with a selection in the Navigator or Package Explorers views (the latest might not be available in PyDev environment though)

Categories

Resources