Christian Ziemski wrote:
> Hello!
>
> I'm using WikidPad's source version 2.0_beta 05 now (I skipped beta 04).
>
> On my Linux system Python 2.5.2 is installed.
>
> Starting WikidPad gives three error messages from
> File "lib/pwiki/PersonalWikiFrame.py":
> from .WikiExceptions import *
> from .AdditionalDialogs import *
> from .SearchAndReplaceDialogs import *
>
> SyntaxError: 'import *' not allowed with 'from .'
>
> I simply removed the dot and now it works.
> But I don't exactly know what I did with that ;-)
It is safe to remove the preceding dots. They mean that Python should
explicitly and only search for the modules relatively to the location of
the importing module (PersonalWikiFrame). Without the dots it uses a
combined relative and absolute search. Using the dots is cleaner and
more compatible with future version of Python.
Currently I don't know why Python 2.5 doesn't accept this syntax, it
shouldn't have changed between 2.5 and 2.6.
Michael