InstallWindows - butscher/WikidPad GitHub Wiki

Run Wikidpad From Source On Windows

BR

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 Wikidpad.py
   popd

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

   C:\python2.7\python.exe  Wikidpad.py

BR

If !WikidPad now starts but chokes with an error like

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

you might want to read [https://groups.yahoo.com/neo/groups/wikidPad/conversations/messages/9004 WikidPad Source on Windows: Not starting due to problem with cpuIndexSeq]

BR

BR

'''''The following part is the content as of 2011:'''''

BR

BR

What you will need

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:

Install

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

- 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. BR BR

1. Install Python and wxPython

2. Unpack Wikidpad source package in a folder of your choice

3. 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''

4. 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'BRBR'''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 ''!WikidPadStarter.py'' thus:BRBRFind, around line 22:BRBRfrom Consts import CONFIG_FILENAME, CONFIG_GLOBALS_DIRNAMEBRBRAnd just before this line add:BRBRos.environ["PATH"] = os.path.dirname(os.path.abspath(sys.argv[0])) + ";" + os.environ["PATH"]

5. If you want to use Internet Explorer as a preview renderer, install ''Comtypes'' BR

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

2. In the menu select: ''Tools'' -> ''Folder Opions'', then click on the tab that reads ''File types''

3. Click on ''New'' and create a new extension called ''wiki''

4. 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 ''Wikidpad.py'', 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\!WikidPad.py" "%1"

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

BR '''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.

⚠️ **GitHub.com Fallback** ⚠️