Installing PyDev on Eclipse - python

for the past few days I've been having trouble trying to install the PyDev plugin for Eclipse. I keep getting a the repository error as follows:
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://pydev.org/updates/plugins/org.python.pydev_2.5.0.2012040618.jar.
Read timed out
This has happened the last 3 or 4 days and I can't figure out why.

this sounds like a networking problem.
I found myself failed to install BPEL plugin on eclipse.
What I do is copying the plugins from my friend's computer and put it on my eclipse plugin directory. The plugin directory location in linux is something like:
/home/gofrendi/.eclipse/155965261/plugins
while on windows, the plugin directory location is something like:
C:\Documents and Settings\gofrendi\My Documents\eclipse-jee-indigo-SR2-win32\plugins
Just copy everything with com.python or org.python prefix

It shouldn't be a problem in the PyDev update site (just tested it here and got no other complains). So, in this situation, you can try just getting the .zip installation from sourceforge ( see url at the end of http://pydev.org/download.html ) or you can download Aptana Studio 3 ( which comes with PyDev preinstalled -- http://pydev.org/download.html also has links for that ).

Related

Autocompletion not working in virtual environment pycharm

I am currently working on a Django Project and installed djangorestframework on my installed apps. My pip freeze file you can see below:
Django==1.9.2
django-filter==0.12.0
djangorestframework==3.3.2
djangorestframework-jwt==1.7.2
eventbrite==3.3.3
Markdown==2.6.5
Pygments==2.1
PyJWT==1.4.0
requests==2.9.1
wheel==0.24.0
My project python interpreter is also pointing to the right directory
But the issue is auto completion feature is not working for djangorestframework, as you can see below. Pycharm is not recognizing my imports here.
I have also enabled Django Support in Pycharm.
Could anyone suggest me what should I do to enable autocompletion here? Thank you
Okay my issue is resolved
1 - Go to `file --> Invalidate Caches/Restart`
2- Wait for Pycharm to build new indexes
3- Then try to import your python modules.
It worked for me :)

Guidance needed: Error in Downloading Python for Eclipse Juno

I tried to download Python for Eclipse Juno via http://pydev.org/updates
I keep getting the error:
An error occurred while installing the items
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Install,
operand=null --> [R]org.tigris.subversion.clientadapter.feature.feature.jar 1.8.3, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallFeatureAction).
The artifact file for org.eclipse.update.feature,org.tigris.subversion.clientadapter.feature,1.8.3 was not found.
I cannot find a solution. Could someone guide me a little.
Did you checked the option "Contact all update sites during install to find required software" ? (in the available software page)
You can try to manually install it :
download from http://sourceforge.net/projects/pydev/files/pydev/
Extract the contents of the zip file in the eclipse/dropins folder and restart Eclipse.
If it's still not working, you can try removing/adding back the Eclipse Project Update site (to have the metadata recalculated)
And try unchecking the above option

Can't install PyDev eclipse plugin

I am having the following errors when I try and install PyDev on eclipse indigo
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.python.pydev,3.4.1.201403181715.
Error reading signed
content:C:\Users\Md\AppData\Local\Temp\signatureFile3601630487889967036.jar
An error occurred while processing the signatures for the file: C:\Users\Md\AppData\Local\Temp\signatureFile3601630487889967036.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.analysis,3.4.1.201403181715.
It goes on with similar error log for a fairly long list.
Any ideas?
Make sure that the PyDev version is the same as your installed Python version.
so if you have Python 2.7 installed, PyDev 3 will give you errors like that.
Open Eclipse -> Go to Help -> Install New Software...
Type the following URL on Work with text field:
http://pydev.org/updates
Check and click Next button
Proceed next steps by the guidance of eclipse
After successful installation: Go to Window | Preferences -- PyDev is enlisted at the left side

Error while adding IronPython 2.7 in as interpreter to pydev in eclypse juno windows 8

I have iron Python 2.7 installed in:
C:\Program Files (x86)\IronPython 2.7
Iv'e added it to my environment variables as follows
path: [...] ;C:\Program Files (x86)\IronPython 2.7\
When I try to add it as an interpreter in pydev i get the following:
"Error getting info on interpreter"
And in the error log:
org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 35; The entity name must immediately follow the '&' in the entity reference.
When googling solutions i found a suggestion to make sure i have no environment variables
containing older versions of python (done)
otherwise only solutions for macOS (where this seems to be a common issue)
This problem is not specific to Iron python- the same thing happens when i try the same with python 3.3.2
Issue fixed buy re-installing pydev from a different repository
initially was installed from http://pydev.org/updates repository. reinstalling from this repository did not help- maybe a temporary issue.
reinstalled from http://pydev.org/nightly repository- this did the trick.
Note- the "contact all update sites during install to find required software" was unchecked.

Django with VS2010 gives me "ImportError: No module named django.core.management" when running

I'm trying to follow this tutorial and I'm getting the following error:
ImportError: No module named django.core.management
I'm completely new to python. I believe Visual studio is using a version of python I already had installed in c:\Python27, could that be causing a problem?
Someone mentioned in a link I found that they had to copy the 'django' folder to the project folder, but I don't know where that would be. I don't even know what the error means really unless there's a missing package (like dll or assembly in .NET?), but I don't know what paths python would use to try to find a package or even what one would look like.
I see there's a PYTHONPATH environment variable that I don't have declared, should I declare that? Should it point to the C:\Python27 directory?
First, do you have checked your "Python Environment" in your project folder? It may seems like...
Here you may find your django with version. If you dont find it then compile setup.py from django folder again with desire python version. And then right click on "Python Environments" from your project and click on "Add/Remove Python Environments" to select python version.
Ok with a lot of fooling around I found this directory:
%LOCALAPPDATA%\Microsoft\Web Platform Installer\installers\PythonDetectInstalls
In a mangled sub-folder there is a powershell script DetectPythonInistalls.ps1 that has these two lines for checking if python is installed already:
$regKey = "hklm:SOFTWARE\Python\PythonCore\$pythonVersion\InstallPath";
$correctRegKey = "hklm:SOFTWARE\Wow6432Node\Python\PythonCore\$pythonVersion\InstallPath";
Uninstalling all my pythons did not remove these keys. After removing these registry keys with regedit, WPI allowed me to install its own version of python 2.7 and all the other goodies to go with the Windows Azure Python SDK and it worked.

Categories