Run WikidPad, my library, on Ubuntu
Environment
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
- WikidPad 2.2
Content
Because WikidPad is my library (USB), not only on Windows, wanted to run it on Linux, my laptop.How-to
Download and extract WikidPad source.
Install python-wxtools
$ sudo apt-get install python-wxtools
for this error:
$ python WikidPad.pyNote: http://wiki.wxpython.org/How%20to%20install%20wxPython#GNU.2FLinux_-_Debian
Traceback (most recent call last):
File "WikidPad.py", line 1, in
import WikidPadStarter
File "~/Desktop/WikidPad/WikidPadStarter.py", line 101, in
import wx
ImportError: No module named wx
To launch WikiPad:
$ python WikidPad.py
Alternatively, prepare a batch file - WikidPad.sh:
#!/bin/bash
cd ~/Desktop/WikidPad
python WikidPad.py
However, need the setting for executable text file (Gnome):
Nautilus (files), go to Edit --> Preferences --> Behaviour tab --> Change the settings for executable text file
Or shortcut: WikiPad.desktop:
[Desktop Entry]
Version=1.0
Type=Application
Name=WikiPad
Comment=
Exec=python2 WikidPad.py
Icon=/home/user/Pictures/WikidPad.jpg
Path=/home/user/Desktop/WikidPad 2.2/
Terminal=false
StartupNotify=false
Appendix
python ~/Desktop/WikidPad/WikidPad.py
$ python ~/Desktop/WikidPad/WikidPad.py
Traceback (most recent call last):
File "/home/User/Desktop/WikidPad/WikidPad.py", line 1, in
import WikidPadStarter
File "/home/User/Desktop/WikidPad/WikidPadStarter.py", line 24, in
from Consts import CONFIG_FILENAME, CONFIG_GLOBALS_DIRNAME
File "/home/User/Desktop/WikidPad/Consts.py", line 1, in
from pwiki.Enum import Enumeration
ImportError: No module named pwiki.Enum

Run on Python3 not Work
Rather run it on Python3:$ python WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 1, in
import WikidPadStarter
File "/home/gayt-tang/Desktop/WikidPad/WikidPadStarter.py", line 237
except Exception, e:
^
SyntaxError: invalid syntax
Run it on Python2:
$ python2 WikidPad.py
Not work: WikidPad-2-3-rc01
Tried not work. So run back WikidPad 2.2WikidPad-WikidPad-2-3-rc01$ python2 ./WikidPad.py
/usr/lib/python2.7/dist-packages/gi/module.py:178: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
g_type = info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:178: Warning: g_once_init_leave: assertion 'result != 0' failed
g_type = info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:212: Warning: g_type_get_qdata: assertion 'node != NULL' failed
type_ = g_type.pytype
References
Update
- Tried WikidPad-2-3-rc01 but not work 2018-Aug-19
- "SyntaxError: invalid syntax" as Python3 2017-Sep-09