I'm using eclipse/aptana for python development. I have no issue with my python path config, autocomplete works fine with everything, however I am having the following problem:
When I have a "constant" in one of my classes and I try to access it, eclipse complains about "undefined variable from import" on the constant, eg
class Universe(object):
ULTIMATE_ANSWER = 42
# in different module
# edit from: import Universe
from bigbang.models import Universe
print Universe.ULTIMATE_ANSWER
where Universe.ULTIMATE_ANSWER triggers the warning. Additionally, autocomplete works fine, so when I type Universe.x I do get all the constants proposed.
It's not an urgent issue, however it tends to become annoying, and might make you ignore actual errors.
Any idea on how to make eclipse behave on this one? :)
Edit: This only happens when importing the class in a another module.
Edit 2: In case it's not clear above, the code works, this is just about the warning that shouldn't be there... I have tried and replicated this on projects other than mine, both in eclipse and aptana with pydev.
Edit 3: As with the comments bellow, this is probably a bug in pydev. Submitted and waiting...