Skip to content

Instantly share code, notes, and snippets.

@kevin-brown
Created September 6, 2014 21:07
Show Gist options
  • Save kevin-brown/bcea8ac4aacd797b792b to your computer and use it in GitHub Desktop.
Save kevin-brown/bcea8ac4aacd797b792b to your computer and use it in GitHub Desktop.
Installing MouseTrap on Windows

Assuming bare, untouched Windows 7 Ultimate x64

Install git

http://git-scm.com/downloads

Clone repository

git clone https://github.com/GNOME-MouseTrap/mousetrap.git

Install Python 2.7 (32-bit)

https://www.python.org/download/releases/2.7.8/

Install PIP

http://stackoverflow.com/a/12476379/359284

Install pip dependencies

python -m pip install pyyaml

Install PyGI

http://sourceforge.net/projects/pygobjectwin32/files/

Only extra you need is GTK 3.

Install NumPY

http://sourceforge.net/projects/numpy/files/

Install python-xlib

http://sourceforge.net/projects/python-xlib/files/

Untar it using git bash with

tar xvzf python-xlib.tar.gz

Install OpenCV

http://sourceforge.net/projects/opencvlibrary/files/opencv-win/

Make sure to copy the pyd file to your site-packages

Install gettext

http://gnuwin32.sourceforge.net/packages/gettext.htm

Make sure to add the binaries to your PATH

export PATH=$PATH:/c/Program\ Files\ \(x86\)/GnuWin32/bin

Install MouseTrap

From within the MouseTrap directory.

Assuming bare, untouched Windows 7 Ultimate x64

Install dependencies

Download MouseTrap source

https://github.com/GNOME-MouseTrap/mousetrap/archive/master.zip

Install Python 2.7 (32-bit)

https://www.python.org/download/releases/2.7.8/

Install pip - This will make installing easier

http://stackoverflow.com/a/12476379/359284

Install pip dependencies

python -m pip install pyyaml

Install PyGI

http://sourceforge.net/projects/pygobjectwin32/files/

Only extra you need is GTK 3.

Install NumPY

http://sourceforge.net/projects/numpy/files/

Install python-xlib

http://sourceforge.net/projects/python-xlib/files/

Untar it using git bash with

tar xvzf python-xlib.tar.gz

Install OpenCV

http://sourceforge.net/projects/opencvlibrary/files/opencv-win/

Make sure to copy the pyd file to your site-packages

Install gettext

http://gnuwin32.sourceforge.net/packages/gettext.htm

Make sure to add the binaries to your PATH

export PATH=$PATH:/c/Program\ Files\ \(x86\)/GnuWin32/bin

Install MouseTrap

From within the MouseTrap directory.

python -m pip install .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment