InstallWindows - butscher/WikidPad GitHub Wiki
- '''Python 2.7''', download from [http://www.python.org/download/releases/ here], for example [https://www.python.org/ftp/python/2.7.16/python-2.7.16.amd64.msi the 64-Bit installer 2.7.16]
- '''wxPython 2.8''', The download from [http://www.wxpython.org/ www.wxpython.org] only gives the new "Phoenix" version 4.x, but you need the legacy version 2.8.x available [https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/ here], for example [https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython2.8-win64-unicode-2.8.12.1-py27.exe/download wxPython2.8-win64-unicode-2.8.12.1-py27.exe]
- ''' !WikidPad source''' from http://wikidpad.sourceforge.net/ -> More downloads (Details) -> wikidPad 2.3rc02 Windows binary -> [https://github.com/WikidPad/WikidPad/archive/WikidPad-2-3-rc02.zip wikidPad 2.3rc02 source code]
- '''SQLite3.dll''', download from [http://www.sqlite.org/index.html here] Precompiled Binaries for Windows -> 64-bit DLL (x64) for SQLite version 3.29.0. -> [https://sqlite.org/2019/sqlite-dll-win64-x64-3290000.zip sqlite-dll-win64-x64-3290000.zip]
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
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]
'''''The following part is the content as of 2011:'''''
- '''Python 2.6''', download from [http://www.python.org/download/releases/ here]
- '''wxPython 2.8''', download from [http://www.wxpython.org/ here]
- '''SQLite3.dll''', download from [http://www.sqlite.org/index.html here]
If you want to be able to use Internet Explorer as a renderer for Wikidpad preview, you will also need:
- '''Comtypes''', download from [http://sourceforge.net/projects/comtypes/ here]
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 [http://wikidpad.sourceforge.net/ here] BR
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
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.