pydev

Eclipse + PyDev: Eclipse telling me that this is an invalid import?

I recently installed twython, a really sleek and awesome twitter API wrapper for Python. I installed it and it works fine from the interpreter, but when I try to import it via Eclipse, it says that twython is an invalid import. How do I "tell" eclipse where twython is so that it will let me import and use it? ...

Eclipse PyDev doesn't shut down interpreter when you click the little red button

Seems that even after unchecking the option in the PyDev/Debug preferenecs pane to launch in the background, once it's launched I have to go to task manager to kill the python process. ...

Using Eclipse as an Editor (like Coda or Vim)

There is a Python project created by using Vim and Coda which doesn't include any editor specific file. I'm used to use Eclipse as an editor so I want to work on this project using Eclipse. But I don't know how to do it without to create a new project in Eclipse or without importing it. Because I don't want to get a copy of these files. ...

Python file - Want to change it to a function or a class

Hello, I have a python program/file that I want to run repeatedly and calculate the averages of some variables over these runs. To do so, I thought it might be convenient to convert this program into a function or a class. One way I can think of is to add a def Main(): line at the top and indent every line manually within it. Is the...

Django Development Environment Setup Questions

Hello, I'm trying to set up a good development environment for a Django project that I will be working on from two different physical locations. I have two Mac machines, one at home and one at work that I do most of my development on. I currently host a Ubuntu virtual machine on one of the machines to host the Django environemnt, install...

Python debugging in Eclipse+PyDev

Hello, I try Eclipse+PyDev pair for some of my work. (Eclipse v3.5.0 + PyDev v1.5.6) I couldn't find a way to expose all of my variables to the PyDev console (Through PyDev console -> Console for current active editor option) I use a simple code to describe the issue. When I step-by-step go through the code I can't access my "x" variabl...

How to get debugging of an App Engine application working?

I've got 10+ years in C/C++, and it appears Visual Studio has spoilt me during that time. In Visual Studio, debbuging issimple: I just add a breakpoint to a line of code, and as soon as that code is executed, my breakpoint triggers, at which point I can view a callstack, local/member variables, etc. I'm trying to achieve this functiona...

Navigate to source in Eclipse from external application

Hi! I'm developing GAE application in Eclipse with PyDev and am using gaeunit for testing. gaeunit generates output in web browser like this: Traceback (most recent call last): File "tests\test_user.py", line 9, in test_current_user user = users.current_user AttributeError: 'User' object has no attribute 'current_user' I want ...

PyDev and Django: PyDev breaking Django shell?

I've set up a new project, and populated it with simple models. (Essentially I'm following the tut.) When I run python manage.py shell on the command line, it works fine: >python manage.py shell Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for mo...

PyDev and Django: how to restart dev server?

I'm new to Django. I think I'm making a simple mistake. I launched the dev server with Pydev: RClick on project >> Django >> Custom command >> runserver The server came up, and everything was great. But now I'm trying to stop it, and can't figure out how. I stopped the process in the PyDev console, and closed Eclipse, but web pa...

Pydev and Django: Shell not finding certain modules?

I am developing a Django project with PyDev in Eclipse. For a while, PyDev's Django Shell worked great. Now, it doesn't: >>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version)) C:\Python26\python.exe 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] >>> >>> from django.core import management;i...

Eclipse and python: library will import in interprer, but not in IDE

I'm running Windows 7, Python 2.6.4 and the latest version of Eclipse. I downloaded the boto library (http://code.google.com/p/boto/) and ran python setup.py install, which created boto-1.9b-py2.6.egg in C:\Python26\Lib\site-packages. Importing a class - say, by doing 'from boto.sqs.connection import SQSConnection' - works fine from th...

Using MySQL in Pydev Eclipse

Hi, I am trying to access a MySQL database with python through Pydev Eclipse. I have installed the necessary files to access MysQL from python and I can access the database only when I write code in Python IDLE environment and run it from command prompt. However I am not able to run my applications from Pydev. when I use this "import M...

Howto ignore specific undefined variables in Pydev Eclipse

I'm writing a crossplatform python script on windows using Eclipse with the Pydev plugin. The script makes use of the os.symlink() and os.readlink() methods if the current platform isn't NT. Since the os.symlink() and os.readlink() methods aren't available on the Windows platform Pydev flags them as undefined variables--like so: Qu...

Developing WLST scripts with Eclipse

We are in the process of developing several WLST (WebLogic Scripting Tool) scripts and we would like to setup a development environment. Has anybody managed to configure Eclipse PyDev (or another plugin) to support it? Do you know any other alternative? Thank you for your answers. ...

Aptana Studio can't resolve the import but works

I have just installed suds and given a try for it in Aptana Studio. While, it seems not to resolve from suds.client import Client by underscoring it in red, the following code still works. So, I have decided to install Eclipse-Plugin for Pydev by running the same code. This time Eclipse Plugin can resolve Client as expectedly. Why can't...

PyDev and Django: Autocomplete not detecting Django?

I'm using PyDev with Django. The autocomplete works nicely in the shell - I start typing, and it suggests completions. However, this doesn't work in the main code editor window. How can I fix this? I'm using: Eclipse build #20100218-1602 PyDev 1.5.6 Eclipse IDE for Java Devs 1.2.2 ...

Eclipse + PyDev becomes extremely slow with large import

I'm trying to use Eclipse + PyDev for studying OpenGL programming but when I type from OpenGL.GL import * from OpenGL.GLUT import * IDE becomes extremely slow! Ok. It isn't a smart idea import to much useless things but it's so useful for learning a new library! Any help? PS: I use Ubuntu with Eclipse Galileo. ...

Python3 function annotations for type hinting versus Boo

I've started on a medium-sized project in python, and I decided to use python 3 because I'm not using any large external libraries and py3k has some nice new syntactic sugar and more importantly function annotations. However, it seems like none of WingIDE, Pydev, or pycharm actually have any support for type hinting using function annota...

New to PyDev, question about auto completion.

I installed Eclipse and PyDev and I'm wondering if I have to setup anything else? The reason I'm asking is that I'm finding the auto complete isn't working in certain cases. For example, if I have a variable a_string, I'd like to see a list of available methods once I type "a_string." or if I have an array I'd like to see what methods i...