Modules path

9 views
Skip to first unread message

wwwald

unread,
Jun 9, 2008, 8:40:21 AM6/9/08
to wikidpad-devel
Hi,

I tried to install the TagView script, following the instructions on
http://wikidpad.python-hosting.com/wiki/TagView. One problem remains:
when I try to import the "Tags" module in WikidPadHooks.py, Wikidpad
won't start and gives me a "no module named Tags" error.

Where does Wikidpad look for modules in this case? Is there some place
where this search path can be configured?

Thanks a bunch!
wwwald
Message has been deleted

Christian Ziemski

unread,
Jun 9, 2008, 3:01:57 PM6/9/08
to wikidpad-devel
I don't know the answer regarding the modul path for import. If anyone
else knows....

But there's an easy way to make the import in the TagView extension
unnecessary.
I added a note about how to http://wikidpad.python-hosting.com/wiki/TagView.

(BTW: Nice extension! Thanks for the hint.).

Christian

wwwald

unread,
Jun 10, 2008, 2:24:54 AM6/10/08
to wikidpad-devel
On Jun 9, 9:01 pm, Christian Ziemski <cz...@gmx.de> wrote:
> On 9 Jun., 14:40, wwwald <arnout.standa...@gmail.com> wrote:
>
> > I tried to install the TagView script, following the instructions onhttp://wikidpad.python-hosting.com/wiki/TagView. One problem remains:
> > when I try to import the "Tags" module in WikidPadHooks.py, Wikidpad
> > won't start and gives me a "no module named Tags" error.
>
> But there's an easy way to make the import in the TagView extension
> unnecessary.
> I added a note about how tohttp://wikidpad.python-hosting.com/wiki/TagView.

Great, works like a charm!

>  (BTW: Nice extension! Thanks for the hint.).

Agreed, very handy extension. I keep a daily journal in Wikidpad, the
extension is really handy to group log entries into project-specific
pages. Together with your Todo scripts, it's a real lifesaver since I
tend to forget everything that's not in Google :-)

wwwald

jaysen

unread,
Jun 10, 2008, 8:57:13 AM6/10/08
to wikidpa...@googlegroups.com
Greetings, sorry for the late response. I'm in the middle of moving
and without fixed internet connection for a while.
Try adding the following at the beginning of your WikidPadHooks.py file:

import sys
userextpath = 'C:\\Program Files\\WikidPad\\user_extensions' # replace
this path with your wikidpad location if different
if userextpath not in sys.path:
sys.path.append(userextpath)

I'll add this to the instructions to
http://wikidpad.python-hosting.com/wiki/TagView.

Thanks Christian for your help and input.

jaysen naidoo

jaysen

unread,
Jun 10, 2008, 9:41:09 AM6/10/08
to wikidpa...@googlegroups.com
Hi wwwald.
how did you resolve your problem? Did you rename Tags.py/TagView.py or
exclude the changes to WikidpadHooks.py ?

jaysen

Christian Ziemski

unread,
Jun 10, 2008, 11:27:21 AM6/10/08
to wikidpa...@googlegroups.com
on 10.06.2008 15:41 jaysen wrote:
> Hi wwwald.
> how did you resolve your problem? Did you rename Tags.py/TagView.py or
> exclude the changes to WikidpadHooks.py ?

Don't know what wwwald did, but rename Tags.py/TagView.py didn't work
for me (running WikidPad under Linux).
Unfortunately I found that out just a minute after my own posting
suggesting that as a possible reason for the failing import.
So I deleted that posting immediately again. At least in the online group.

Christian

wwwald

unread,
Jun 11, 2008, 5:21:07 AM6/11/08
to wikidpad-devel, arnout.s...@gmail.com
I took Christian's suggestion to not modify WikidpadHooks.py, but I'll
try your suggestion later this week (Wikidpad on WinXP).

wwwald
Reply all
Reply to author
Forward
0 new messages