Run Wikidpad From Source On Windows

What you will need - Updated 2019-07-11

  1. Install Python and wxPython
  2. Unzip WikidPad source into a directory of choice
  3. Unzip sqlite and copy included sqlite3.dll into the WikidPad directory as of 2.
  4. Create a small Batch file (e.g. wp.cmd) somewhere in your PATH to easily startup WikidPad. (Or an appropriate shortcut on your desktop):
   @echo off
   pushd C:\Users\Christian\Downloads\WikidPad-WikidPad-2-3-rc02\
   py -2

Of course adapt the path to your WikidPad source installation.

If the command "py -2" doesn't work for you you might have to change that line to something like


If WikidPad now starts but chokes with an error like

Traceback (most recent call last):
line 233, in main
    app = App(0)
  File "lib\pwiki\", line 110, in __init__
    wx.App.__init__(self, *args, **kwargs)
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\",
line 7981, in __init__
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\",
line 7555, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "lib\pwiki\", line 214, in OnInit
    return self.initStep2(cmdLine)
  File "lib\pwiki\", line 386, in initStep2
  File "lib\pwiki\", line 650, in _rereadGlobalConfig
  File "lib\pwiki\", line 687, in setCpuAffinity
    procIntMask = _getAffMaskIntegerByIndexes(cpuIndexSeq)
  File "lib\pwiki\", line 639, in _getAffMaskIntegerByIndexes
    for idx in cpuIndexSeq:
TypeError: 'NoneType' object is not iterable
OnInit returned false, exiting...

you might want to read WikidPad Source on Windows: Not starting due to problem with cpuIndexSeq

The following part is the content as of 2011:

What you will need

  • Python 2.6, download from here
  • wxPython 2.8, download from here
  • SQLite3.dll, download from here

If you want to be able to use Internet Explorer as a renderer for Wikidpad preview, you will also need:

The version of each package above is not mandatory, they are the ones that the binary distribution of Wikidpad uses. You may want to experiment with others. The binary version of Wikidpad 1.9 is compiled against wxPython 2.6

Of course you will also need:

  • Wikidpad source code, download from here


To make the examples easier, we'll suppose that:

  • Python is installed in C:\Python
  • Wikidpad source code has been unpacked in C:\Wikidpad

Replace the paths above with the corresponding ones in your computer.

  1. Install Python and wxPython
  1. Unpack Wikidpad source package in a folder of your choice
  1. In C:\Python\Lib\site-packages create a new file named Wikidpad_lib.pth. Open the file with a text editor and add a line with the path to Wikidpad lib folder, in our example: C:\Wikidpad\lib
  1. Extract the SQLite package and copy sqlite3.dll in a folder included in your %PATH%, for example in your Python folder. To find out which folders are in the path, open a console window (Start -> Run -> cmd.exe) and type set, find the line that starts with Path

    NOTE: putting SQLite in your %PATH% can lead to problems if other programs need a different version of the library. A better solution is to put sqlite3.dll in the main Wikidpad folder, but to have Wikidpad find it there, you need to modify the file thus:

    Find, around line 22:


    And just before this line add:

    os.environ["PATH"] = os.path.dirname(os.path.abspath(sys.argv[0])) + ";" + os.environ["PATH"]
  1. If you want to use Internet Explorer as a preview renderer, install Comtypes

Associate .wiki extension

To associate the .wiki extension with Wikidpad, so that your wikis open automatically in Wikidpad when you double-click on them:

  1. Open an Explorer window

  1. In the menu select: Tools -> Folder Opions, then click on the tab that reads File types
  1. Click on New and create a new extension called wiki
  1. Select wiki from the extensions list, click on Advanced, then New:

In the Action field choose a name for the action, for example open

In the Application used to perform action field write, in quotes: the path to pythonw.exe, followed by the path to, followed by "%1". Quotes are necessary if any of the paths contains spaces.

In our example it would be:

"C:\Python\pythonw.exe" "C:\Wikidpad\" "%1"

Now every time you double click on a file with .wiki extension it will open automatically with Wikidpad.

NOTE: these instructions have been tested with a system running Windows XP SP2. In Vista and Windows7 there will probably be some difference. If you own one of those systems, please, feel free to update this page.

Last modified 17 months ago Last modified on Jul 11, 2019 10:38:43 AM