How to properly install the official tutorial for configuring the Pydev plugin in Eclipse, and how to resolve the error problem:

Source: Internet
Author: User

Official tutorials;

1

1

This manual assumes so you have already has Python and/or Jython and/or IronPython installed in your machine, As well as Eclipse.

Manual Topics:

Installing

    • From update site and zips
    • Uninstalling

Configuring the Interpreter

    • Specify the Python interpreter and system PYTHONPATH
    • Choose the modules to be dynamically analyzed (forced builtins)

Creating a project

    • Create the Project
    • Specify referenced projects

Further configuring your project

    • Specify folders containing the sources (added to the project PYTHONPATH)
    • Specify additional external folders to being added to the project PYTHONPATH

Creating your first Python module

    • Checking code-completion

Running/debugging Your Program

Configuring Eclipse Essentials

    • Auto-refresh

Tips for programming with PyDev

Further info on:

      • Working with Turbogears:http://pydev.blogspot.com/2006/07/configuring-pydev-to-work-with.html
      • Working with Django:pydev Django
      • Editing Django templates:http://pydev.blogspot.com/2010/08/django-templates-editor.html
      • Google App engine:http://pydev.blogspot.com/2009/05/pydev-146-released-google-app-engine-on.html
      • Working with Blender:http://airplanes3d.net/pydev-000_e.xml

1

Note for users with Liclipse

PyDev already comes preinstalled in liclipse, so, this step can be skipped (note that if liclipse are used, PyDev cannot be Installed or update separately, as it must always be updated as a whole).

Important Requisite

PyDev now requires Java 7 on order to run. If you don't have Java 7, the update process could appear to succeed, but PyDev'll simply not show in the target Installat Ion. Double-check if you ' re using a Java 7 VMS in about > Installation details > configuration before trying to ins Tall PyDev.

Eclipse 3.8 onwards is required for the latest versions of PyDev (if you need to use an earlier version of Eclipse, stick to PyDev 2.8.x).

Before starting the Install

The first thing to choose before the install was a folder where you had permissions to write (otherwise, remember to Insta ll Eclipse running as an Administrator and remember to run as a Administrator whenever any plugin needs to be updated).

Also, it seems Eclipse 3.6.0 have some issues installing in GKFX locations (in any OS). An example of such a location would is the program Files directory on Windows (see:https://bugs.eclipse.org/bugs/show_bug . cgi?id=322929), so, least 3.6.1 if planning to install Eclipse/pydev on a shared location.

PyDev Certificate

PyDev is built with a self-signed certificate, which means if installed a dialog would be opened to ask if you trust The certificate (which should is OK for most users).

Now, if you don ' t want this dialog to appear, it's possible to import the certificate before starting the installation Pro Cess (this was actually a requirement for those, want to install PyDev from the command line because of a bug in the Ec Lipse P2 Director).

The first step for this is downloading the PyDev certificate.

The second step is discovering the Java being used in Eclipse:go to help > About > Installation details and Loo K for ' Java.home '

Then to actually import it, in the command line, go to the Eclipse ' java.home ' directory and execute

Bin/keytool.exe-import-file Pydev_certificate.cer-keystore Lib/security/cacerts

Note If you never do anything here, your password when requested should is Changeit

Reference:http://download.oracle.com/javase/1.4.2/docs/tooldocs/solaris/keytool.html#cacerts

Installing with the Update site

Note:instructions is targeted at Eclipse 3.5 onwards

To install PyDev and PyDev Extensions using the Eclipse Update Manager, you need to use the > install New Soft Ware ... Menu (note that in older versions, this would is the ' Find and Install ' menu).

In the next screens, add the update site (s) you want to work with (see below for a list with the available update site S).

Available Update Sites

Main:

    • Http://pydev.org/updates

Nightly builds:

    • http://pydev.org/nightly

After entering the update sites, select the update site you entered or select ' All available sites ' and add a filter for P Ydev, so-it shows the contents of all the update sites that has PyDev, then select-what-want to install and clic K ' Next '.

Then, uncheck the "Contact all" update sites during install to find required software ' and press ' Next ' a Gain to confirm your selection.

And finally, read the license agreement and if you accept, select the Accept radio button and click ' Finish '.

At this point, Eclipse should automatically download the plugin contents and present you to a dialog asking if you want to Restart (to which you should say Yes).

Possible issue on Download

If you had any problem at the point with a message such as:

An error occurred while collecting items to be installed
No repository found containing:
org.python.pydev/osgi.bundle/1.4.7.2843
No repository found containing:
org.python.pydev.ast/osgi.bundle/1.4.7.2843

That's might indicate that's mirror you selected are having some network problem at that time, so, please follow the same s Teps with another mirror.

Installing with the zip file

The available locations for the Zip files is:

    • SourceForge Download

After downloading the zip file:

Eclipse 3.4 onwards

Extract the contents of the zip file in the eclipse/dropins folder and restart Eclipse.

Before Eclipse 3.4

Extract the contents of the zip file on top of Eclipse, making sure the Plugins folder was extracted on top of the ecli Pse/plugins folder and the features are on top of the eclipse/features folder. After this, restart eclipse with the '-clean ' flag, so that eclipse finds out is about it.

Checking the installation

You can verify if it's correctly installed going to the menu ' window > Preferences ' and checking if there are A PyDev item under that.

PyDev does not appear after install!

Well, the main issue at this time are 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 could have a to go through some loops to make sure this you ' re actually using Java 7 to run Eclipse/pydev (as explained B Elow).

All OSes

Make sure your 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 ver Sion 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 in "specifying the JVM" to specify the Java 7 V M.

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).

Uninstalling

Follow the instructons below if at any time you wish to stop using the PyDev plugin (or any other Eclipse plugin):

Eclipse 3.5 onwards

If you installed with the update site, go to the menu Help > About > Installation details then on the I nstalled Software tab, select the plugins you want to uninstall and click Uninstall.

If you installed with the zip file, just remove the Com.python.pydev and Org.python.pydev features and plugins from the DR Opins folder.

Before Eclipse 3.4

Go to the menu help > Software updates > Manage configuration, select the plugin and click ' Disable ', then, You had to restart Eclipse, go to the same place again and then click on ' Remove ' (note so you had a button in the The Me Nu that enables-see the ' disabled ' features).

Common Install problemswindows vista/7 UAC (User Access Control)

Eclipse 3.3 had issues with the Windows UAC, so, Eclipse must is run as Administrator to install a plugin on Eclipse 3.3.

Corrupted install

Eclipse sometimes is not able to correctly get the plugin from the update site but would do no checking on whether it is R eally correct (no MD5 checking), and when this happens, you'll usually get a classnotfoundexception (similar to the Exampl E below).

When that's happens, you should uninstall it and reinstall again with the update site ... if that still fails, you c Ould try to get the zip files, as it would at least give you a warning if it is corrupt.

Note that the chance of the files being corrupt in the server are pretty low, as that's something that ' s always checked in A new release†"If you ' re suspicious about it, please ask in the forum, so that it can be double-checked.

Also, there had been reports with that error where the only solution that had been consistent has been removing all Previous versions of Pydev and then installing the latest version.

EXAMPLE

Unable to create the due to an internal error. Reason for the Failure:the editor class could isn't be instantiated. This usually indicates the editor's class name is mistyped in Plugin.xml.

Java.lang.ClassNotFoundException:org.python.pydev.editor.PyEdit
At
Org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (bundleloader.java:405)
At
Org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (bundleloader.java:350)
At
Org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass (abstractclassloader.java:78)
At Java.lang.ClassLoader.loadClass (classloader.java:235) at
Org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass (bundleloader.java:275)
...

1:error problem (unreachable):

http://www.pydev.org/updates/

Http://image.mamicode.com/info/201511/20180110171703872920.png

Http://image.mamicode.com/info/201511/20180110171703905144.png

#9楼 2015-11-29 23:53 | xgqfrms
error!
Support (0) objection (0)Modify Delete

#10楼 2015-11-29 23:56 | xgqfrms

solution to the error problem : Change the URL of the Py-dev link;

https://dl.bintray.com/fabioz/pydev/latest/

1

Eclipse Configuration Pydev Plugin

http://www.pydev.org/
Http://www.pydev.org/download.html

Http://www.pydev.org/manual_101_install.html

https://dl.bintray.com/fabioz/pydev/latest/

https://www.python.org/downloads/windows/

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

How to properly install the official tutorial for configuring the Pydev plugin in Eclipse, and how to resolve the error problem:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.