Relative Package Import

Robert Hancock hancock.robert at
Tue Jul 8 17:01:21 CEST 2008



In I have
     from ..push import dest

But i receive the error:
  Caught exception importing module subject:
    File "/usr/local/python/lib/python2.5/site-packages/pychecker/", line 621, in setupMainCode()
      module = imp.load_module(self.moduleName, file, filename, smt)
    File "", line 1, in <module>()
      from ..feed import dest
  ValueError: Attempted relative import in non-package

What am I missing?

More information about the Python-list mailing list