The PyDev plugin can not find python 3.4 - eclipse

I have been using eclipse 3.8+PyDev+python 3.3 on ubuntu 13. Recently I upgraded ubuntu to 14.04. It seems that ubuntu 14.04 comes with new python 3.4, so, during upgrading, the old python 3.3 is removed and new python 3.4 is installed. Then, the PyDev plugin of my eclipse can not find the python 3.3 in its original dir and an error is report, as well as many red crossings, as the image below shows.
But the installation of Python 3.4 is correct because I can import pickle or random modules without difficulty in IDLE which uses python 3.4:
I have already upgraded the PyDev to latest 3.4.1. Could you please tell me how to reconfigure Python interpreter (including how to locate it) in eclipse so that PyDev can correctly locate where the Python 3.4 is? Thank you very much.

OK, I have solved the problem by myself:
(1)Right click the project name, choose "Properties" in the popup menu. This will open the "Properties for" dialog box.
(2) In this box, select "PyDev-Interpreter/Grammar" item on the left panel and click the "click here to configure an interpreter not listed" link on the right.
(3) In the popup "Python Interpreters" dialog box, click "New..." button on the right of the window and type in the path to python 3.4 executable. In my system, it's /usr/bin/python3.4.
(4) Then click OK and wait for the eclipse to finish its configuration work. At this point the most important part of reconfiguration is done. Then move the new Python3.4 to the top, remove python 3.3 interpreter if you want, and ...
(5) Don't forget to restart eclipse. Tata ...
Some 3rd party python packages such as pymongo are still problematic. But they are not within the scope of discussion of this thread. That's it.

Related

PyDev not working in Eclipse

I recently had to reset my PC and I get this error after relaunching Eclipse:
No editor descriptor for id org.python.pydev.editor.PythonEditor
I tried searching for a solution but others like
here have been caused by upgrading Eclipse. I'm new to Eclipse and programming in general. Any help will be appreciated. Thank you.
Update Java 11 now required for PyDev. Rest of answer preserved as still relevant.
Two things to check:
Check that you are running Java 7 or greater and newish Eclipse. From PyDev requirements:
Requirements
Java 7: Important: If you don't have java 7, the update process may
appear to succeed, but PyDev will simply not show in the target
installation. See PyDev does not appear after install! below for
details on how to fix that. At least one of:
Python (2.2 or newer) Jython (2.2 or newer) IronPython (2.6 or newer)
and
Eclipse (3.8/4.3 onwards) Note if using Eclipse standalone: Python and
IronPython require only the Platform Runtime Binary (download around
45-50 MB), and Jython also requires JDT.
Make sure you have PyDev appears properly installed:
Help menu
Installation Details
Plug-ins tab
type pydev in the filter box (see below)
check that PyDev is installed
If PyDev is not installed, and you have met the requirements, try installing it again from http://pydev.org/updates Update Site:
Help menu
Install New Software
Put http://pydev.org/updates in the Work With box and press Enter (see screenshot below)
Select PyDev in the list
Complete the wizard
Restart Eclipse when prompted, and voila (I hope!) you have PyDev working again.
If your problem is not resolved with the above, please provide more details in the question
Currently (January 2022) the update the eclipse to the newest https://download.eclipse.org/releases/2021-12/ and https://download.eclipse.org/releases/latest helped, but also Java 11 (I'm using Oracle Java at Ubuntu 18) was required. At the webpage of PyDev the minimal versions are given.

PyDev not showing up in Eclipse

I just installed Eclipse Kepler (after an issue with a faulty update in Juno) and tried to install PyDev using the Install New Software option in Eclipse. Basically just following memory/online tutorials. After installing I can't see it in my Preferences pane. Any ideas why that might be so?
Thanks.
Yes, I have Java 7 installed.
UPDATE: A lot of users have suggested numerous solutions to this problem. There may be more than one correct answer below. See what helps you...
Too much!
After wasting 4 hours trying to install PyDev 3, I moved back to 2.8.2 and used the drop in technique instead of Add new software and it now works!
Download 2.8.2 from sourceforge
http://sourceforge.net/projects/pydev/files/pydev/
Uninstall PyDev.
Simply unzip the contents into the dropins folder below eclipse.
Restart eclipse.
After struggling with this problem for some days I wanted to share my solution to the problem - inspired by the above posts (kudo's to them).
My Configuration:
MacBook Air (intel) with OS X 10.9
Eclipse: Kepler SR1 installed (zip file extracted in the Applications folder)
My situation:
Tried to install PyDev via Eclipse Help --> Install new software...
Installation was succesfull, but PyDev didn't show up anywhere in Eclipse.
My solution:
In Eclipse go to Help --> Install new software...
Uncheck "Show only the latest versions of available software"
Select PyDev the usual way, but install the latest 2.x version instead of the 3.x version
Apparently PyDev 3.0 does not work with the default OS X configuration of Eclipse, Java and Python (don't exactly know why, though...)
I just figured it out.
You will need JDK rather than a JRE.
Download it here first:JDK Download
Install it.
Explore /Applications/eclipse/Eclipse.app/Contents/MacOS (where you put your Eclipse)
Open eclipse.ini
add
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
You will change the version according to your situation.
Enjoy!
It happened to me too, but using Debian stable (wheezy, in my case).
I solved installing doing:
# apt-get install openjdk-7-jdk
After this, I checked that I had two alternatives of Java JDK:
# update-java-alternatives -l
And the output was:
java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64
java-1.7.0-openjdk-amd64 1051 /usr/lib/jvm/java-1.7.0-openjdk-amd64
Finally, I did:
# update-java-alternatives -s java-1.7.0-openjdk-amd64
After that, I removed pydev plugin from Eclipse, reboot Eclipse, install pydev (using Marketplace), reboot Eclipse, and now it works.
Credits:
http://vas.davimas.name/2013/07/switching-between-openjdk-v6-and-v7-in.html and Richard's answer, above
Most likely you do not have java 7 or > eclipse 3.7 installed on your machine it is a requirement of pyDev 3 see here http://pydev.blogspot.co.uk/2013/11/pydev-30.html
The PyDev.org website states (http://pydev.org/manual_101_install.html) --
"""
Important requisite
PyDev now requires java 7 in order to run. If you don't have java 7, the update
process may appear to succeed, but PyDev will simply not show in the target
installation. Please double-check if you're using a java 7 vm in
about > installation details > configuration
before trying to install PyDev.
"""
This problem started to appear in my Eclipse after I removed the Java 7 runtime from my system (because the Java code I am building needs to run on an older version of Java, but that's unrelated). After I realized that I had lost PyDev, I reinstalled Java 7 and PyDev is working fine now.
Another option would be to rollback to the previous version of PyDev that does not require Java 7, but it would require a manual installation of PyDev and I would lose the convenience of automated updates. The best way forward, it seems, to run run Eclipse on Java 7 and switch those Java projects that need to depend explicitly on Java 6 to that JDK/JRE.
How I was able to get pydev to work in mac/eclipse is download the latest JDK as mention 100 times above install it and then do the following.
open eclipse choose preferences > java > installed JREs
click on "Search..." button it will auto populate the JDK 1.7 you just installed
Click ok
have a beer!
-Cheers!
Solved.
OSX Mavericks 10.9, Eclipse Keplar 4.3.2, PyDev 3.4
Problem: PyDev not showing up under Ecplise > preferences
Solution: Download, install and point Ecplise to JDK 1.7
Unistall PyDev
Under Eclipse > preferences > Installed JREs you probably only see Java SE 6
Download and install JDK 1.7 from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
open terminal and run "/usr/libexec/java_home -v 1.7"
this will return the directory in which JDK 1.7 reside, something like /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
Under Eclipse > preferences > Installed JREs click "add", select "MacOS X VM", click "next"
in JRE Home paste your version of /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home, give it a name and click "Finish"
Restart Eclipse and re-install PyDev.
Voila!
I had the same issue on Luna and found my mistake.
After checking the author in "Do you trust these certificates?" page, and I was able to successfully install pydev.
The page lets you proceed without checking it, and no error occurs and it was where I totally missed. Maybe it is useful for someone.
You can move back to 2.x.x:
Eclipse -> About Eclipse then click "Installation Details" button.
From "Installation History" tab choose last installation.
Click Revert button.
You will go back to chosen installation.
I managed to get the following to work with Eclipse IDE for Java Developers 4.4.1 Luna on OS X 10.9.5 Mavericks:
Download and install the latest version of the JDK (currently Java SE 8u25) from http://www.oracle.com/technetwork/java/javase/downloads/index.html. (Not the JRE!)
Navigate to /Applications/eclipse/Eclipse.app/Contents/MacOS (or wherever you have Eclipse installed) and open eclipse.ini.
Append the following to the bottom of the file (be sure to replace the version number with yours):
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java
Download the latest version of PyDev (currently 3.8.0) from SourceForge at http://sourceforge.net/projects/pydev/files/pydev/.
Unzip its contents to /Applications/eclipse/dropins (or wherever you have Eclipse installed) and restart Eclipse.
Hope this helps anyone who's still having the issue. Special thanks to Mohammed Lokhandwala and braineo.
Aha , It is solved just now.I show it in the following.
First , I use MyEclipse with jdk1.8,maybe some people dont know that Eclipse (or MyEclipse) has its own jvm , what is not "jdk" you downloaded and installed and the "built-in jvm" is default. You can check this out by clicking like this " Windows-->preferences-->Java-->Installed JREs" And I found my MyEclipse used the default jdk1.6 .Then I click "add" to build path of my installed jdk1.8 .
Second , I opened the configuration file named "myeclipse.ini" and check this in the following.
binary/com.sun.java.jdk.win32.x86_64_1.6.0.u43/bin/javaw.exe
Third , I replaced it with new path . Check the following out. It is new path.
D:/jdk/java/jdk1.8/bin/javaw.exe
Last , restart it .And you can find "PyDev" in "Preference".
Happy Coding with Python!
PS:Pycharm is good,and you can get it for free if you are a student or a teacher. click here
I was experiencing the same problem using java 1.7.0_101.
Updated to 1.8.0_91 and "voilá"! PyDev finally appeared.
After trying all of the listed ways to work with 1.7 I was still seeing error message when Eclipse tried to open the editors and navigators on startup. But when I created a new project it worked. Then I tried just closing all editors and reopening them and they too work. The navigator had also set itself to working set and showed nothing. When I switched that to projects it also started working.
The same thing happened to me. This is how i fixed it.
Click on "install new software" - it's under help.
Click on " what is already installed"
Uninstall PyDev
Reinstall PyDev BUT instead of the 3.3XX version, install the latest 2.XX version (i.e click on the drop down menu and select the latest 2.XX version)
It worked for me!
So I tired many of the suggestion above, and I think what finally got it to work is instal the JDK from: http://www.oracle.com/technetwork/java/javase/downloads/index.html. You might also need to uninstall the pydev plugin and reinstall it again. But after install the JDK 8, I got the Pydev to show up under preference.
menu Help > Install New Software...
don't fill "works with" but click on Add...
In the next screen, add the update site of PyDev and PyDev Extensions:
Name : PyDev and PyDev Extensions
Location: http://pydev.org/updates
and go on...
pydev 3 is buggy! Use 2.8 and you should be fine.
I also had this problem, wanted to use python3.4 as interpreter and it wasn't compatible with pydev 2.8 so after a few trials I found out that if you install pydev 2.5 everything works fine !! (At least on Eclipse Kepler).
I know this thread is old but I thought I might contribute my solution because none of the suggestions above worked for my Mac running Yosemite [10.10.2]. I hope this will be helpful to someone else. Despite updating to the latest JDK my mac kept reporting a wrong version. It turns out the symlink was point to the old version and fixing that issue got my pydev/eclipse working.
Find out the current default Java version
Java -version
Get installed versions
/usr/libexec/java_home -V
Navigate to the following folder and delete the current symlink
cd /System/Library/Frameworks/JavaVM.framework/Versions/
rm CurrentJDK
Create a new symlink pointing it to the newer installation substituting 'new-version' with appropriate version from 2 above. i.e jdk1.8.0_40.jdk
ln -s /Library/Java/JavaVirtualMachines/<new-version>/Contents/ CurrentJDK
Confirm your default version
Java -version
Restart.
Happy coding.. :)
I had to uninstall pyDev 3 and install 2.8 to get this working with Eclipse (V 4.4) and Yosemite (V 10.10)
The easiest way is just getting http://www.liclipse.com/ which has everything setup from the start... if you don't want to go that route (as LiClipse is commercial) you may want to try to specify the java 7 install manually:
Grabbed from http://pydev.org/download.html:
Well, the main issue at this time is that PyDev requires Java 7 in order to run. So, if you don't want to support PyDev by going the LiClipse route (which is mostly a PyDev standalone plus some goodies), you may have to go through some loops to make sure that you're actually using Java 7 to run Eclipse/PyDev (as explained below).
All OSes
Make sure you download/install the latest Java 7 JRE or JDK, try restarting to see if it got it automatically.
I.e.: in help > about > installation details > configuration check if it's actually using the java 7 version you pointed at.
If it didn't get it automatically, follow the instructions from:
http://wiki.eclipse.org/Eclipse.ini to add the -vm argument to eclipse.ini on "Specifying the JVM" to specify the java 7 vm.
Note on Mac OS: You can use the command "/usr/libexec/java_home -v 1.7" to get the base path for the JVM (though you also need to append "/bin/java" to the output of said command to the -vm arg in eclipse.ini).
Solution
Using standard Eclipse installation method:
In Install New Software, Add a new site to Work With. I called my entry PyDev Old and entered the Location:
https://dl.bintray.com/fabioz/pydev/old/site.xml
That has PyDev for Eclipse versions 2.8.2 to 4.5.3
Details
I am working with Indigo (3.7) and so need a version of PyDev that is older than 3.0.0. My JDK is 7 as noted elsewhere in this question. The option for Show only the latest versions of available software is turned off.
The standard advice for getting PyDev is to use http://pydev.org/updates and turn off the only latest option. That now only lists PyDev 5.
I had the same issue!
Just update all three SWs to the latest version and it will solve the problem.
Do like this:
update Eclipse to Luna Service Release 2 (4.4.2) 64-bit, then
PyDev - Python IDE for Eclipse 5.1.2 from Eclipse Marketplace and then
download and update the Java SE Development Kit 8u92 64-bit
It should work well now!
I had the same issue in Eclipse 4.4. Had to use a previous version of PyDev. It simply seems to be a matter of using the correct Java JRE/JDK and PyDev for the version of Eclipse you're running.
From http://www.pydev.org/
Release 5.2.0
Important PyDev now requires Java 8 and Eclipse 4.5 onwards.
PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8.
See: update sites page (http://www.pydev.org/update_sites/index.html) for the update site of older versions of PyDev.
Oct 2016:
Installed fresh new copy of Java JDK 1.8.0_102 took care of the incompatible OSX JRE 1.6
Installed fresh copy of Eclipse Neon 4.6.1
Followed pydev manual: http://www.pydev.org/manual_101_install.html
all working fine now...
First install and setup following applications as these are mentioned in above answers:
Jave (version 8 or greater)
Eclipse(version Neon/Oxygen or greater)
PyDev in Eclipse
Now go through following steps:
Eclipse -> Window -> Perspective -> Open Perspective -> Other..
Select PyDev in the list.
Click Open.
Now you are all set.
Cheers!!!
Make sure you install the 64-bit version of Eclipse if you can. If so you should be able to use the latest version of Pydev without any problem.

PyDev fails to install on Eclipse for Mac

I am attempting to install PyDev in Eclipse for Mac (OSX version 10.8.3). After installing PyDev I go to preferences to configure it for use, and it does not appear on the list. If I go back to help > install new software and click "What is already installed?" PyDev does not appear on the list. I have attempted reinstalling PyDev (many times), restarting Eclipse, restarting my Mac, and have searched for any problems similar to mine, but have come up with nothing. I have Python 3.3 installed, and also Python 2.6 (installed 2.6 when a guide told me 2.6 is the build used by the project).
Any help would be greatly appreciated. Have a nice day!
Greg Anthony
I think I just solved the problem.
I tried to install PyDev, got a long way through to a dialog with a progress bar that seemed to be about the last step.
A dialog box asking me to approve a certificate popped up behind the progress-bar dialog, when it was about half-way along. I clicked OK and both dialogs immediately disappeared.
PyDev was not installed.
I did it again, but this time looked at the certificate dialog. You have to tick the certificate, and then click OK. Installation continued.
Now I have PyDev.
YMMV, good luck.

code completion do not work in Nodeclipse 0.4

Are there something that I messed up, when installing Nodeclipse 0.4 so I can not do code completion since my code is worked.
EDIT:
as you can see at picture,
- the red one is Node mode in Eclipse Kepler which enable after Nodeclipse installed
- the blue one is Java EE IDE in Eclipse which I use as to installed Nodeclipse
- the yellow one is Node code in Eclipse which default exist if I chose the example
- the green is Node code class representative.
if I press CTRL+Space in console., there is not any code completion showed up which should showed up cause I already have JsHint v. 0.9.6
if I follow instructions of installation.. then..
I got this list.. (note: the disables means I already installed it.)
then.. I got this message..
ANOTHER ADDITIONAL EDIT:
as the comment of Nodeclipse developer,
if I reproduced but to installed JSHint alone then it goes with this message..
Thanks,
Ahmad
There is work in progress on content assist for Node.js modules
Content assist for Eclipse JSDT based Editor
fork with work in progress:
https://github.com/Enide/nodeclipse-1/compare/Nodeclipse:master...master
(source: nodeclipse.org)
Code completion is depending on what code you have. Could you please share your snippet?
Version 0.4 has Eclipse JSDT standard functions. Node.js specific libraries support is not yet implemented.
Opened issue for new feature is #50 support for node.js style module definitions
console is defined inside node.js, and as such is not yet supported.
For second part of the question (about installation using Enide .p2f file):
if I follow instructions of installation.. then..
some update sites like StartExplore are not stable and often unavailable
So if there is problem installiing, The recommendation would be to install less plugins in one time (only 1 at a time, for example)
(Then there is way to know what exact plugin update site is unavailable at this time)
For nodeclipse itself latest Eclipse (Like 4.2.2 IDE for Java EE Developers) is recommended & enough.

Eclipse failed to response under Fedora 12

i tried fedora12 yesterday, but i find eclipse doesn't work. at first i thought this problem is related to SELinux, but after i turn off selinux, i still can't
create a project, i press the "next" or "finish" button, there is no response. well the "cancel" button works. there is no error popup, or error logs.
i tried eclipse -debug -console; but there is no log output when i click the button. it is so weird, is this happened to anyone before?
environment: fedora12, JDK 1.6.0_17, eclipse Galileo.
computer: t400.
This is a bug due to a change introduced in GTK 2.18, see Bug 291257. The current workaround is to export GDK_NATIVE_WINDOWS=true before to run Eclipse. I actually use the following startup script:
#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla/
export ECLIPSE_HOME=/opt/IBM/eclipse
export GDK_NATIVE_WINDOWS=true
$ECLIPSE_HOME/eclipse $*
I can't install plugins from update sites, either.
In a blank eclipse install, adding a new update site (es: jboss tools) using the keyboard works; also, it's possible to select a release to install from the available software list.
The new plugin gets installed, but won't appear in perspectives (es: jboss devel) after restart.
After that, adding new update sites and trying to install their releases won't work, the available software list remains empty.
Using Fedora 12 Eclipse 3.5..
By the way, "Fedora Eclipse" rpm is screwed at the moment, it won't install a single file
SOLUTION:
Eclipse 3.6 fix those problems http://download.eclipse.org/eclipse/downloads/
Just add helios update site
There seems to be an incompatability with gtk/gdk shipped with F12. You can tell eclipse to use the native GDK and it should correct these problems:
GDK_NATIVE_WINDOWS=1 ./eclipse
You can also add -DGDK_NATIVE_WINDOWS=1 to your eclipse.ini file. That should help if you switch workspaces.
it's a bug, the keyboard works. try it.