pydev

How to set up Atana Studio 3 Themes in Pydev

I've installed the Aptana Studio 3 preview and noticed it has support for themes (such as a bespin style or Ruby envy) and I'd love to use the Bespin one in Pydev but so far I've had no luck getting it to work, anyone have a clue as to how to get it to work? Video showing the themes in action. ...

Troubles with PyDev and external libraries in OS X

I've successfully installed the latest version of PyDev in my Eclipse (3.5.1) under OS X 10.6.3, with python 2.6.1 I have troubles in making the libraries I have installed work. For example, I'm trying to use the cx_Oracle library, which is perfectly working if called from the python interpeter of from simple scripts made with some text ...

Eclipse pydev auto-suggestions don't work in some cases

Hello everyone! My question is probably stupid and I hope somebody has succeeded in solving this issue. Sometimes I cannot see right suggestions in auto-completion box (Eclipse 3.5.2, PyDev 1.5.7). For example: import email fp = open('my.eml', 'rb') msg = email.message_from_file(fp) msg now is a Message object. And functions like ge...

Can you have 2 completely independent instances of Eclipse running at the same time?

I'm sure there isn't really a way to do this, but figured it doesn't hurt to ask... I use Eclipse a lot. I'm currently using it for both Java and Python (with PyDev). I often find that I have one project open, with lots of files, say in Java... And then for some reason I have to switch to a Python project for a bit. I want to leave my J...

PyDev problem staring project

I have downloaded the zip archive (my only option) and installed it as suggested by unzipping into the dropin folder. When I try to start a project the problem occurs: "Plug-in org.python.pydev was unable to load class org.python.pydev.ui.wizard.project.PythonProjectWizard" I've googled and the only suggestion is to re-download and re-...

Unresolved import: models

Hi! I'm doing my VERY first project using python/django/eclipse/pydev following this guide http://docs.djangoproject.com/en/dev/intro/tutorial01/ My only addition is the use of Eclipse/pydev. I'm getting many errors related to "Unresolved imports". I can remove the errors using "remove error markers" and my site runs perfect (I can br...

Python - Polymorphism in wxPython, What's wrong?

I am trying to write a simple custom button in wx.Python. My code is as follows, an error is thrown on line 19 of my "Custom_Button.py" - What is going on? I can find no help online for this error and have a suspicion that it has to do with the Polymorphism. (As a side note: I am relatively new to python having come from C++ and C# any h...

Python - help on custom wx.Python (pyDev) class

I have been hitting a dead end with this program. I am trying to build a class that will let me control the BIP's of a button when it is in use. so far this is what i have (see following.) It keeps running this weird error TypeError: 'module' object is not callable - I, coming from C++ and C# (for some reason the #include... is so much e...

Python - wxPython custom button -> unbound method __init__()? what?

After looking at questions like this it doesn't make sense that my __init__(self, parrent, id) would be throwing a unbound error? help? main.py import wx from customButton import customButton from wxPython.wx import * class MyFrame(wx.Frame): def __init__(self, parent, ID, title): wxFrame.__init__(self, parent, ID, title, ...

Printing Unicode in eclipse Pydev console and in Idle

My configuration: Win7 + Python 2.6 + eclipse + PyDev How do I enable Unicode print statements in: PyDev console in eclipse Idle Python GUI Example print statement: print(u"שלום עולם") This comes out as: ùìåí òåìí ...

'RegistrationTestModel has no attribute '_deferred'

I am trying to get the Django Shell working with the Google App Engine. Unfortunately, I am getting the following error: AttributeError: type object 'RegistrationTestModel' has no attribute '_deferred' Does anyone have any idea of how to fix this? Stack trace: WARNING:root:Could not read datastore data from /var/folders/X0/X0QgAfs7H...

Where is the Google App Engine SDK path on OSX?

I need to know for creating a Pydev Google App Engine Project in Eclipse. ...

How can I make the Eclipse Python debugger more reliable?

I've found that under some circumstances the Eclipse python debugger can be unreliable. For example, when stepping through a memory-hungry Python program I've found that after a certain point the debugger fails to respond. The entire process hangs with 100% cpu load. I've heard (unconfirmed) reports from developers that when this occur...

Jython project in Eclipse can't find the xml module, but works in an identical project

I have two projects in Eclipse with Java and Python code, using Jython. Also I'm using PyDev. One project can import and use the xml module just fine, and the other gives the error ImportError: No module named xml. As far as I can tell, all the project properties are set identically. The working project was created from scratch and the o...

django development mode runserver --noreload hits 100 percent cpu usage

i have setup on pydev eclipse everytime i run runserver --noreload my cpu usage hits to 100 percent on core 2 duo laptop .. pretty much this guy had the same problem http://stackoverflow.com/questions/1750676/django-development-server-cpu-intensive-how-to-analyse i tried on a quad core machine it gets to 30 percent cpu usage too. ...

PyDev Hangs when opening a module

Win XP SP3 Eclipse 3.5.2 PyDev 1.5.7 Python 2.6.5 & 3.1.2 While trying to set up PyDev on Eclipse, everything works fine until I try to open a module (.py file) for editing, at which point Eclipse locks up. ...

Is it possible to use Eclipse with Pydev without having rights to run programs in cmd?

Is it possible to use Eclipse with Pydev without having rights to run programs in cmd? If so, how to do that? (I plan to teach Python in my school but the studens do not have rights to run programs in cmd.) \Hokan ...

Can I put break points on background threads in Python?

I'm using the PyDev for Eclipse plugin, and I'm trying to set a break point in some code that gets run in a background thread. The break point never gets hit even though the code is executing. Here's a small example: import thread def go(count): print 'count is %d.' % count # set break point here print 'calling from main thread:' ...

How can I bind a specific key to different launch configurations in Eclipse?

I have several launch configurations for the code I work on. One configuration (#1) means "run the unit tests for the file in the frontmost editor (i.e. selected resource)". I would really like to be able to always make this be bound to a key. Another configuration (#2) means "run the server that I am working on (in the frontmost proj...

PyDev makes strange import suggestions

I am using Eclipse 3.5.1 with PyDev 1.5.5 an Mac OS X 10.6.4 (Python 2.6.1). When using a type or function I have not imported yet, I usually write the code that uses it first, and then use quickfix to make PyDev import the necessary modules. However, it often makes weird suggestions here. For instance when I have the function itemgetter...