pydev

pydev and the src directory vs. scm

Hi, I'm trying to transition to eclipse+pydev but am having a problem importing projects under scm. My old projects (and also projects on github) don't have the "src" parent directory that pydev seems to really like. If I use egit or subclipse to import/check out the project, the pydev environment is incomplete. If I externally check o...

Pydev hangs up when I try to debug jython

Am running Eclipse Build id: 20100218-1602 with Pydev 1.60. My code executes under python and jython, and also debugs fine under python. But when I try to debug under jython I get the message pydev debugger: starting --and then everything hangs. It looks like a couple processes are running in the debug screen but no code is display...

How to get started with a bare-bones Eclipse + PyDev

I am planning to move from SPE to Eclipse + PyDev for better code completion. I think SPE's code completion is rather weird. Anyway, how should I get started with Eclipse + PyDev? I browsed http://www.eclipse.org and I found that Eclipse is made up of some base/core system and plugins are added for more functionality. I also stumbled up...

Getting Django to work with Eclipse

I'm new to python and django but wanted to start following some tutorials. I installed python, then django, and then the pydev plugin for eclipse. I created a new django project and tried running it. In eclipse I set up a run configuration for manage.py with argument runserver and it said "Validating Models" but never said anything el...

No such file or directory in Pydev

I have a file in my project directory that I want to run a script on: myproject\file1 The script is in myproject\src\script. When I go to run configurations -> arguments tab and put file1, I get an: IOError: No such file or directory: 'file1' What am I doing wrong? ...

Eclipse: Debug script that expects command line parameters

I have a python script I am trying to debug in eclipse. I can execute it, breakpoint all that jazz, but this specific script requires a handful of command line parameters. Is it possible to setup my dev environment in eclipse to put these parameters in? Right now my program is just generating the line to execute, like: script.py -aword...

Good tutorials on Python unit testing in Eclipse

I'm looking for a good tutorial on Python unit testing in Eclipse, particularly using PyDev. I am working on a fairly large project using Eclipse. I've built several test suites that are working nicely, but I'm intrigued by the large number of additional unit testing features in PyDev. I've tried to work with them some, but it's gon...

How to configure Eclipse for PyDev? Python doesn't appear in Preferences window.

I'm trying to install PyDev in Eclipse 3.6 on Windows 7. I have Python 2.7 successfully installed. I installed PyDev through Eclipse, and restarted. When attempting to configure Eclipse to find my installed Python, (Window -> Preferences) the list that appears does not contain Python. (See image below.) If I go back to Help -> Ins...

Idle's Code Context in Eclipse

I find the Code Context option of IDLE to be extremely useful when working on big projects. I wanted to know if there is a similar feature for Eclipse? Edit: I would like this feature in CDT and/or PyDev. Example image: http://i38.tinypic.com/95sb39.jpg ...

eclipse, django, pydev - slow update with the script?

It's weird. Let say I make a minor change in my view or urls file. I do "Run as -> PyDev: Django", and it takes several times to update it.... and most of the time I have keep doing it.... I cleaned the cache and all that, but doesn't help. I am using the development server, anyone has experience in this? Thanks!! Edit It seems lik...

Python PyDev, Prevent carriage returns from input()

EDIT-4 I've gotten my sitecustomize.py to execute, but it tosses up an error. Here's the code for it. The error is: Error in sitecustomize; set PYTHONVERBOSE for traceback: RuntimeError: maximum recursion depth exceeded while calling a Python object I'm not terribly advanced with Python yet, so I figured I'd comment out only the l...

Favorite Google App Engines Tips and Features

When starting with any new major library or system, I go to StackOverflow for the "What should I know?" questions. The answers might be subjective, but the advice usually saves me many hours of trouble. So far, I have burned a number of hours on Google App Engine tripping over the same issues that more experienced developers here alrea...

Pydev can't find matplotlib modules

I just installed matplotlib on my windows 7 Python 2.6.5 machine with the win32 installer . I've tried some examples from the matplotlib site to test the installation, under Idle everthing works fine but Pydev 1.9 (Eclipse 3.6) cant find any of the sub modules. e.g import matplotlib doesn't cause any errors but from matplotlib.path ...

How to use pydev extension point in eclipse?

For example: add own functional in pydev package explorer, use pydev python code parser. ...

Refactoring a function definition

Hi, I am using Pydev on Eclipse to write python code. I am new to Pydev and to Eclipse. I love the feature where by I can use rightClick -> Refactoring -> Rename... to rename a variable. I was wondering if there is something similar to change a function everywhere in the project, if I change its definition. For example, suppose I ini...

How can I get Eclipse / PyDev to ignore alternatives to cls?

I have inherited some code that uses klass instead of PyDev's preferred cls: def func(klass): # do something that doesn't reference klass return True PyDev issues a warning that there is an unused parameter klass, which it wouldn't do if we used the parameter cls. Is there an easy way to let PyDev know that klass is the same ...

Set comprehensions don't work on Pydev (Python)

{x for x in range(10)} works perfectly on IDLE, but when I try this in eclipse (with Pydev plugin) I get a syntax error: Undefined variable: x Is it because Pydev doesn't support set comprehensions or something? What can I do to make this work? (This was just one example that doesn't work. All set comprehensions don't work for me...

Problem running Pydev

Hi everyone, I am trying Django recently in Ububtu. So started using a developement environment, which is Pydev in Eclipse. I've installed all, but while configuring window>preferences>pydev>interpreter-python there are these problems I have: What files in Linux should be selected? Every time I select a file from /usr/lib/python2.6/disk...

Using Django in Eclipse

Hi, I am trying to use Django in Eclipse, but I have no idea how to import Django in Pydev project lists. The 'New Project' just has 'Pydev projec'. Some help please Thank you ...

what's the keyboard shortcut to toggle breakpoint in pydev using eclipse

I think i'm missing the elephant in the room but for the life of me i can't find the keyboard shortcut to setting a breakpoint in eclipse when using the pydev plugin. Things that i've already tried: Ctrl-Shift-B: does nothing. Ctrl-F10: brings up the breakpoint context menu where you can select to add breakpoint, remove etc... i don't...