Search the web
Sign In
New User? Sign Up
wikidPad
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[WP 2.0 beta05] Problem with source version and Python 2.5   Message List  
Reply | Forward Message #5331 of 5648 |
Re: [wikidPad] [WP 2.0 beta05] Problem with source version and Python 2.5

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



Thu Jul 9, 2009 8:26 pm

michael_buts...
Offline Offline
Send Email Send Email

Forward
Message #5331 of 5648 |
Expand Messages Author Sort by Date

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...
Christian Ziemski
ychriz04
Offline Send Email
Jul 9, 2009
7:12 pm

... 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...
Michael Butscher
michael_buts...
Offline Send Email
Jul 9, 2009
8:27 pm

... In WikidPad 2.0beta05 I was able to workaround that problem as written above. But now in 2.0beta08 after some successful patches (removing single leading...
Christian Ziemski
ychriz04
Offline Send Email
Oct 12, 2009
6:32 pm

... Two dots means "up one level", therefore WikiExceptions is located in "lib/pwiki/", the "lib" is already in the Python search path so it ends up with: from...
Michael Butscher
michael_buts...
Offline Send Email
Oct 12, 2009
7:31 pm

... WikidPad 2.0beta09 is working fine now. Thank you! Christian...
Christian Ziemski
ychriz04
Offline Send Email
Oct 25, 2009
4:40 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help