pydev

PyDev: Jython modules & Java classes in the same project

I come from a Java world and am totally new to Jython. Is it possible to create a project in Eclipse with both Jython and Java classes on the same project? I tried to do so -writing a simple Java class and using it in Jython module- and everything went fine during coding. But when I try to run the project I get: Traceback (most recen...

Tell pydev to exclude an entire package from analysis?

Today I'm on a mission to remove little red X's from my django project in pydev. Mostly, this involves fixing import problems with pydev. I'm using South for database migrations. South (if you don't know) generates python modules, and pydev doesn't like them. I don't want to edit the south code since it's generated. Is there a way to...

pydev doesn't find python library after installation

Hi, I'm using Django and PyDev/Eclipse. I just installed django-treebeard with setup.py install and it got installed in my site-packages directory C:\Python26\Lib\site-packages. I can successfully import it in the python shell with import treebeard. However PyDev complains that it cannot resolve it when I try to import it. Unfortunate...

Mac OS X: Trouble with Local Django + PyDev install working with remote MySQL

I've got PyDev installed in Eclipse. I'm trying to play with Django. I'm got a remote MySQL database set up. I would really like to not install MySQL on my MacBook. Trying to set up the MySQL plugin for python, I get (djangotest)jeebus:MySQL-python-1.2.3 blah$ python setup.py clean sh: mysql_config: command not found Traceback (most r...

Change hotkey for autocomplete selection

In Eclipse, I find it pretty annoying that Enter is the hotkey that selects an item from the Content Assist/Autocomplete list. Especially in PyDev where there is no end-of-line semicolon, pressing enter for a new line will instead give me whatever is selected in the Autocomplete list. Tab is a much better selection hotkey since I'm not...

Get warning for python string literals not prefixed with 'u'

To follow best practices for Unicode in python, you should prefix all string literals of characters with 'u'. Is there any tool available (preferably PyDev compatible) that warns if you forget it? ...

How to add python "libraries" to Eclypse and pydev

Hi, I am trying to learn how to use Abaqus Scripting. I just downloaded Eclipse and added the pydev plugin. Everything seems to work fine. What I want to do now is to add all the built-in Abaqus libraries or modules. I would like, for example, the IDE to display the class members and methods when I press the ".". I would like to see ...

How come I can import a python library in the shell but not in PyDev?

I'm trying to use the mdb library. I installed it with apt-get (python-mdb), and I can use it fine in the shell. But I can't get my code to run with it inside PyDev. In both cases I'm using python2.6. ...

Whats the shortcut to Debug in PyDev using Eclipse

The shortcut key is F11 to start debugging. But issue is that I have to be on that file and then hit F11 to start debugging. Eg. my file to launch the application is "launch.py" and "example.py". example.py is open in the editor whereas launch.py is not. Now, if I hit F11 it will try to launch the application using "example.py" and t...

How To Make Eclipse Pydev Plugin Recognize Newly Installed Python Modules?

So I just installed SubnetTree (http://www.icir.org/robin/pysubnettree/) and if I open the Python interactive interpreter I can successfully import it without any error messages. I use it in one of my programs and can successfully run it without a hitch. However, Eclipse marks the import as an error, and this is a problem as I use Eclips...

Eclipse content assist: accepting the selection with the . or ( keys

When using Visual Studio, I can accept an Intellisense selection by hitting either the . or the ( keys, as well as the enter key. I would like to configure Eclipse to do the same with its Content Assist feature, but I can't see any way to do so. Is this possible? In case it matters, I am specifically referring to Eclipse Helios with Pyd...

PyDev in Eclipse seems not supporting incremental find

Eclipse Galileo + PyDev 1.5.4 Looks like under PyDev environment, the incremental find is not working. Can anyone confirm this, please? Thanks. ...

How do I get rid of the Eclipse Find/Replace Bar

For searching a document, I like using the floating Find/Replace window that pops up. Lately, however, hitting command-F pulls up this Find/Replace bar at the bottom of the editor window. I suppose I wouldn't mind it so much, except instead of selecting the text to search it puts the insertion point after whatever I've searched for befor...

PyDev bugs with imports

Hello all, I am using PyDev/Eclipse for several monthes and I get ever and ever the same bugs with imports: PyDev underline in red an import and say Unresolved import xxx ; Found at yyy. When I click on yyy eclispe find and open the implementation of the module. (PyDev just inform me that it can't find the module xxx and in the same mes...

Can't hit breakpoints for user generated actions when debugging jython code with PyDev in Eclipse

I'm implementing a GUI application in Jython, using Eclipse and PyDev plugin. The problem is that I have a hard time using the builtin debugger. When I start a debug session it just stops. Of course this should be expected as the program just creates a JFrame and then it's finished. So any breakpoints I put for different events .e.g. ...

Eclipse + Pydev not breaking on external library source breakpoints

I've got a project (A) which references code in a different project (B). I've linked the two by adding B into the External Libraries list in A. So PyDev PYTHONPATH now has Source Folders as project A's source, and External Libraries contains B's source path. The problem I'm having is that breakpoints set in B are ignored, and the code d...

Problem with running a program on Pydev in Eclipse

Hello, I need your help, I'm using Eclipse and Pydev plugin as python IDE. I have configured and set environment variables, libraries etc etc I created a project, and a module. When I write these lines and run the program, it gives an error: `a = 3 b = 4.6 print "%d is the value of a, %.2f is the value of b" %(a, b)` and the error m...

interactive matplolib through eclipse

is it possible to have an interactive session through pydev for using matplotlib? The problem is that I cannot get shell access to drive the charts as the interpretor halts after the show() command. I would like to have an interactive session through pydev. Interactive sessions are well described by the matplotlib manual here: http://ma...

How to setup springpython with Jython and Eclipse/PyDev?

I'm having trouble setting up SpringPython with PyDev and Jython I've installed Spring python by: jython setup.py install and the setup installed the library to my jython installation successfully. See!: In my PyDev project i've selected the jython interpreter and have c:\jython2.5.1\Lib\site-packages in my Library paths: My ...

"import numpy" results in error in one eclipse workspace, but not in another

Whenever I try importing numpy in my new installation of Eclipse and Pydev, I get the following error: Traceback (most recent call last): File "Q:\temp\test.py", line 1, in <module> import numpy File "C:\Python26\lib\site-packages\numpy\__init__.py", line 132, in <module> import add_newdocs File "C:\Python26\lib\site-packa...