I've got a Python project using PyDev in Eclipse, and PyDev keeps generating false errors for my code. I have a module settings that defines a settings object. I import that in module b and assign an attribute with:
from settings import settings
settings.main = object()
In some of my code--but not all of it, statements like:
from s...
I'm developing in Python using PyDev in Eclipse, and some of my code generates errors in the code analysis tool. Specifically:
class Group(object):
def key(self, k):
class Subkey(object):
def __enter__(s):
self._settings.beginGroup(k)
return self
def __exit__(s, type,...
I just downloaded wxPython, and was running some of the sample programs from here. However, on every line that uses a variable from wx.*, I get a "Undefined variable from import error"
For example, the following program generates five errors on lines 1,4,8, and two on line 5:
import wx
class MyFrame(wx.Frame):
""" We simply derive ...
I know Ctrl + F9 runs a single file.
How to run them all?
If there is no such thing, how to bind one keyboard shortcut to it?
...
I am using Pydev with Django which marks Django generated variables as errors, eg User.DoesNotExist. In pylint I can specify a setting called generated variables. Is there such a setting in Pydev?
...
I know Eclipse + PyDev has an option Run As => 3 Python Coverage. But all it reports is:
Ran 6 tests in 0.001s
OK
And it says nothing about code coverage. How to get a code coverage report in Pydev?
...
I'm trying to use Google App Engine with Eclipse but it's not working.
I downloaded PyDev, and made a Hello World Python app, so that's working fine.
Then I created a new project, with the "Google App Engine" template. I was following these instructions. I used the "Hello Webapp World" as a template, and didn't change any of the Python...
Hey!
I have been using NotePAD++ for editing Python scripts.
I recently downloaded the PyDEV IDE (for Eclipse).
The problem is that when I wrote the scripts in NotePad++ I used "TAB" for indentation, and now when I open them with PyDEV, every time I try to write a new line instead of "TABS" PyDEV inserts spaces. (even if I click the "TA...
Is there any straightforward way or should I use an external tool like Nose?
...
I have a small tool I'm building in Python under Pydev and I have it organized according to how I'd like my source tree to look in source control:
/project-root
/branches
/branch-name
.project
.pydevproject
conf01.conf
/src
file01.py
file02.py
...
Hi,
when generating python wrappers with swig the python wrapper classes in the generated python file do not have an explicit self parameter, for example see below:
class PySwigIterator(_object):
def value(*args): return _spatiotemporalnmf.PySwigIterator_value(*args)
def incr(*args): return _spatiotemporalnmf.PySwigIterator_inc...
I downloaded Pydev plugin for Eclipse (3.5.2) today on Mac OSX 10.5.8. To be able to use Pydev, I need to configure the interpreter in Eclipse. I am not clear what exactly I need to do here, or what this step does. I want to make sure that when I run programs from Eclipse using Pydev, it uses the Enthought Python Distribution (EPD) I hav...
Hi Stackoverflowers,
I began learning and loving python about a month ago. Dive into python, django and now Tornado is the path i followed during this time.
I chose pydev as an IDE since it seems to be the most up to date and i wanted to come back to eclipse since i'm using Netbeans for php and Java.
My question is the following:
When ...
I want to run my unit tests for a Python Google App Engine project using
Run As => Python unit-test
But when I try that all my Model tests bail with the error message:
BadArgumentError: app must not be empty.
Anyone got this to work?
NB: The tests runs fine using Nose --with-gae. But I want the PyDev integration with hyperlinki...
I often create a Pydev (say, Google App Engine) Eclipse project with the wrong PYTHONPATH. It's missing "lib", say. The project is filled with red x's meaning errors. Fine. I update the project PYTHONPATH to what I know will fix the problem, and the problem remains.
Now, if I visit (i.e. double-click into the editor) any individual fil...
hay all, I just did the following:
a = input("give a word: ")
b = input("give another word: ")
c = a + " " + b
print("result is", c)
and get the output as follows:
give a word: name
give another word: word
result is name
word
my question is why the output on pydev or eclipse console in two lines? i expected to output as follows:
...
I have installed pylint via easy_install. I can run lint.py <filename> with success. But pydev refuses to use it.
I checked "use pylint"
I configured correct path
I updated my python interpreter in eclipse to have pylit in pythonpath
I use Eclipse Galileo
I have build automatically checked
I tried cleaning whole project and no errors
...
Hello all,
Recently I upgraded to Snow Leopard, and now I can't run programs built with wxPython. The errors I get are (from Eclipse + PyDev):
import wx
File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks
/Python.framework/Versions/2.6/Extras/lib/
python/wx-2.8-mac-unicode/wx/__init__.py", line 45, ...
I'm having difficulty getting PyDev to work.
I had an installation of Eclipse for PHP developers (1.2.1.20090918-0703). A month ago, I installed PyDev, and everything worked great. I go to fire it up this morning, and PyDev is gone. There is no option to create a Python project, the Python language editor is missing, etc.
Eclipse for ...
I have 2 weeks to finish my final year project.I need a GUI IDE or a GUI framework compatible with PyDev and Eclipse.
I cannot spend time learning something cause the functionality is yet to be completed.I'm looking for very simple GUI for a simulation game.
...