The following forum message was posted by jjkparker at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4708141:
I must be doing something silly here, because this is triggered by a trivial
I created a project (call it "carlib") in PyDev 2.2.2 and Eclipse 3.7.0, using
a custom source location, Pythong 3.0 grammar, and with a src folder. Then I
created a package (also "carlib") inside src and a module inside of that. Here's
Then I want to expose the car module to users of the package, so I put this
This works when I run, and it works in the interpreter when I import carlib,
but the PyDev editor is giving an error in __init__.py: "Unresolved import:
Any ideas what's going on here?
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4708141:
I have to take a look at the PyDev source, but it does seem weird that it works
in Python (i.e.: inside the package carlib you're importing the carlib package
again, so, it seems to me it'd be a cyclic import -- I believe that the proper
way of doing it should be using a relative import... i.e.: "from . import car"
in this case).
Anyways, if it works in Python, PyDev should recognize it too, so, I'll take
a look at it :)