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
project.
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
the situation:
[code]
carlib [project]
src [folder]
carlib [package]
__init__.py
car.py
[/code]
Then I want to expose the car module to users of the package, so I put this
in __init__.py:
[code]
import carlib.car
[/code]
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:
carlib"
Any ideas what's going on here?
|