pydev

In Eclipse PyDev is there a way to exclude arbitrary file-types from the Pydev Package explorer?

If you click on the icon resembling a downard-pointing triangle in the PyDev Package Explorer and then select "Customize View", The "Available Customizations" pop-down allows the user to select which of a standard set of files are visible in the package explorer. That's great if you wish to exlude or include certain standard types of f...

Command not defined in Python - Real basics, but confused!

Hi, I have written this short script (which I've stripped away some minor detail for size) and I'm getting a very simple error, yet, I don't understand why! I'm very new to Python, so maybe someone can explain the issue and why it's not working? The error seems to fall when I wish to print the full custom serial write string back to t...

pydev and twisted framework

It seems like my Eclipse PyDev does not recognize that Twisted is installed on my system. I can't make auto suggest working. Does anyone know how to solve it? ...

Unit Testing / Eclipse / Command Line

I have project with the following layout (Python 2.4.3) root +--- src +--- xyz +--- __init__.py +--- C1.py +--- C2.py +--- test +--- xyz +--- __init__.py +--- CXMock.py +--- C1Test.py +--- C2Test.py So i'm writing a un...

Pydev relative path

Hello, I installed eclipse with pydev plugin. I need to run my existing project on eclipse. But there are relative paths to the files inside my code. I expect from eclipse to append relative paths to the project's default directory. Instead, it appends the relative path to the directory where Eclipse is installed. I could not find a way...

Lines of Code in Eclipse PyDev Projects

I'm wondering if anyone has had any luck using the Eclipse Metrics Plugin with Projects that are not in Java (specifically I'm trying to generate code metrics for a couple of PyDev Projects). I've read through the walk-through for the Metrics project but it indicates that I should be in the Java Perspective before accessing the Properti...

How do I suppress "unused in wild import" warning in pydev?

The question is in the title. ...

Can i put java files in a folder in a pydev project?

Hi guys, I have a .java and .class file which i put under a folder inside my pydev project in Eclipse (because im primarily using python). Inside my python script i wanted to call the java class file using os.system. os.system('java -mx1500m D:\\projects\\socialsense\\src\\ss\\samplefile\\test') However it says that my class file is...

Eclipse using multiple Python interpreters with execnet

Hi there, I'm using the execnet package to allow communication between Python scripts interpreted by different Python interpreters. The following code (test_execnet.py): import execnet for python_version in ('python', 'python3'): try: gw = execnet.makegateway("popen//python="+python_version) ch = gw....

How can I (externally) automate or script the creation and duplication of projects in Eclipse?

I work on several different projects which use feature branches; that is to say, each feature is implemented on an independent branch. I frequently need to switch between branches rapidly, or test different branches against each other (to see if a branch introduces test failures, or to use a client program in one branch against a server...

Annoying error dialog box when eclipse output-console scrolls. What's causing it?

When I run python scripts in Eclipse with Pydev - after a few seconds I get an eclipse Error dialog. The window title is "Multiple Problems have occurred". The box has a red X icon, adjacent to an error message "An internal error has occurred" The list of error windows all have the text "Reveal End of Document". If I click on detail...

Google App Engine Python ImportError Module Not Found

I'm using Pydev 1.5.9 and the latest version of google app engine, developing in eclipse 3.6 I've set up my environment, and I have my base code executing fine. Now I'm trying to import the simplejson library using import simplejson I've tried adding the simplejson folder to a "pydev source folder" within eclipse tried adding simpl...

Pydev, eclipse and pythonpath problem.

Hi there. I've installed pydev to my eclipse 3.5.2. Everything was working smoothly, create projects, execute, test, autocomplete. But then I realized that importing modules from /usr/lib/pymodules/python2.6, such as django, causes error "Unresolved import: xxxx". Of course, PYTHONPATH SYSTEM includes the directories I want. What's mor...

PyDev Question: Setting breakpoints in doctests

Is it possible to set breakpoints in doctests, using PyDev (i.e. eclipse)? I found that while I am seemingly able to do so, the breakpoints do not work at all. To have some code in the question, and to clarify, say I have def funct(): """ >>> funct() Whatever """ print "Whatever" and that I set a breakpoint at the funct() ...

Noob Question: Python + Twitter + App Engine - Oauth

I'm sorry but I'm having some trouble implementing Oauth within my app engine python project. I've been working from http://github.com/tav/tweetapp, but I don't think I have a strong enough grasp on this platform to understand how to implement this class within my main.py I'm building the rest of my app in. This maybe a feeble attempt,...

On the google app engine, how do I get rid of the 'Only ancestor queries are allowed inside transactions' error?

I am having trouble with one specific query. It needs to run in a transaction, and it does, but whenever the app engine executes my query I get the following error: Only ancestor queries are allowed inside transactions You'll see that my query DOES have an ancestor. So what is the app engine really complaining about? q = db....

I have eclipse with pydev and i set the background to black and text white. now when i click on any word, is highlighted in a yellow color

I have eclipse with pydev and i set the background to black and text white. now when i click on any word, is highlighted in a yellow color and i don't know how to change this yellow color to another. please help ...

How to let PyDev autocomplete named arguments

Hi, I noticed that my PyDev does not autocomplete named arguments. For example, class Author(models.Model): first_name = CharField(max_length=30) last_name = CharField(max_length=30) email = models.EmailField(blank=True,verbose_n [caret] It'd be great if I could hit ctrl+space here and get verbose_name etc. Can this be c...

pydev importerror: no module named thread, debugging no longer works after pydev upgrade

My Eclipse 3.6 /PyDev setup just did a pydev upgrade to 1.6.0.2010071813 and debugging no longer works. My default python interpreter is 3.1 although I doubt that matters. Until the Eclipse upgrade of pydev, it was working very nicely. ...

Eclipse and PyDev

I want to start using Eclipse with the PyDev plugin, as recommended by this poster. The PyDev download page says I need Eclipse (3.2 to 3.5) and that I can use the Platform Runtime Binary. Can I also use Eclipse 3.5.2 (or maybe even 3.6) instead of 3.5? Where can I find the Platform Runtime Binary? I'm a little bit lost in the Eclips...