Changes

Jump to: navigation, search

Windows installer

6,619 bytes added, 22:29, 5 February 2023
m
no edit summary
{{languages|Windows installer}}{{man warn|These are the original instructions for installation on Windows of Gramps 3.4.x and earlier|They were written when a Windows user also had to (manually) install various other programs ("dependencies") in order to get Gramps to work.<br>'''A much easier way to install Gramps on Windows is to use the "all-in-one" [[All In One Gramps Software Bundle for Windows|installer]], since it has all the needed programs ("bundled")'''. {{man menu|[[Download#MS_Windows]]}}}}
{{stub}} Because Gramps has been designed to use the and written in multi-platform tool resources (including Python and GTK), we have created a Windows installer that has been reported to work without any obvious issues.
We do suggest the following:
* Work with ''a copy'' of your main database and keep regular backups in the [[GRAMPS_XML|GRAMPS Gramps XML]] format.* Join the [https://lists.sourceforge.net/lists/listinfo/gramps-windows GRAMPS Windows users Gramps Users mailing list] to share your experiences, especially if you are a developer able to contribute to a Windows port.* See also [[GRAMPS Gramps and Windows]] for a collection of hints to run GRAMPS Gramps on MS Windows.
* Report any issues you find to help make Gramps better.
==Installation==
These instructions are specific to the Gramps (minimal) installer, which requires you to independently install Gramps dependencies prior to installing Gramps. Please ignore these instructions if you are using either the Gramps AIO installer or Portable Gramps application.
 
(The Gramps AIO ("all-in-one") installer contains all the dependencies Gramps needs and many people find it much easier to install Gramps that way. See [[All In One Gramps Software Bundle for Windows|GrampsAIO]] for more information.)
 
When you need to install the dependencies for Gramps there is the easy way and the hard way. You would only use the hard way if you have specific requirements ( such as specific versions ) that are not covered by the easy way.
 
The essential dependencies that Gramps requires to run are:
* Python 2.6.x or later (Gramps trunk has been ported to Python 3.x and has different dependancies)
* GTK runtime
* GTK python bindings (PyGTK, PyGObject, PyCairo)
 
=== Dependencies - The easy way ===
Select the correct version of Python dependent on your operating system.
{{man tip|Tip: |The (2011-6-20) minimal installer only came as a '''32 bit''' version, if you are running on a 64 bit operating system '''select a 32 bit Python installer'''}}
 
 
;For Gramps 3.1.x to 3.4.x
{| {{prettytable}}
!Order
!Package Name
!Download
!Size
!From
!Comment
|-
|<!--Order-->1
|<!--Package Name-->Python 2.6.6
or later
|<!--Download-->[http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi python-2.6.6.msi]
|<!--Size-->11 MB
|<!--From-->[http://www.python.org python.org]
|<!--Comment-->Python 2.6 has performance issues for some people.
|-
|<!--Order-->2
|<!--Package Name-->PyGTK-all-in-one
|<!--Download-->[http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.22/ PyGTK-all-in-one GTK 2.22]
|<!--Size-->Approx 32M
|<!--From-->[http://www.pygtk.org/downloads.html PyGTK]
|<!--Comment--> Select the version that matches your version of python. Note: while pygtk-all-in-one-2.24.x.win32-py2.x has been released it is recommended to still use pygtk-all-in-one-2.22.6.win32-py2.x due to bugs in gtk version 2.24.
|}
'''3.''' Install Gramps for Windows. You can download the most recent stable version from [https://sourceforge.net/projects/gramps/files/ SourceForge].
 
=== Dependencies - The hard way ===
'''1.''' Close any gtk-based applications that are running, such as the GIMP or Pidgin. See ''Common Problems'' below.
'''2.''' Install the packages in the following order:
;For Gramps 3.1.x and laterto 3.4.x
{| {{prettytable}}
!Order
|-
|<!--Order-->1
|<!--Package Name-->Python 2.56.46or later|<!--Download-->[http://www.python.org/ftp/python/2.56.46/python-2.56.46.msi python-2.56.46.msi]
|<!--Size-->11 MB
|<!--From-->[http://www.python.org python.org]
|<!--Comment-->Python 2.6 has performance issues for some people.
|-
|<!--Order-->2
|<!--Package Name-->GTK+ 2.1216.96 or later|<!--Download-->[http://downloads.sourceforge.net/gladewin32gtk-win/gtkgtk2-devruntime-2.1216.96-win322010-202-24-ash.exe gtk-dev-GTK+ 2.1216.9-win32-2.exe6] |<!--Size-->17.17 MB7MB|<!--From-->[http://gladewin32gtk-win.sfsourceforge.net/ gladewin32gtk-win]|<!--Comment-->includes glade / See ''Common Problems'' From Gramps 3.2.0 onwards, Glade is no longer a requirement for Gramps. The windows GTK runtime listed here is a viable alternative to the gtk-dev package. Note: If you receive a "libglib-2.0-0.dll not found" error in step 6, you will need to rerun the GTK installer and ''Note'' belowselect "Compatibility DLLs" when installing.|-
|<!--Order-->3
|<!--Package Name-->pygtk 2.1216.10 or later|<!--Download-->[http://ftp.accgnome.umu.seorg/pub/GNOME/binaries/win32/pygtk/2.1216/pygtk-2.1216.1-20.win32-py2.56.exe pygtk-2.1216.1-20.win32-py2.56.exe]
|<!--Size-->1.9 MB
|<!--From-->[http://wwwftp.accgnome.umuorg/ ftp.se accgnome.umu.seorg]
|<!--Comment-->See ''Common Problems'' and ''Note'' below. "Run as admin" on Vista & later.
|-
|<!--Order-->4
|<!--Package Name-->pygobject 2.1220.30 or later|<!--Download-->[http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.1220/pygobject-2.1220.3-10.win32-py2.56.exe pygobject-2.1220.3-10.win32-py2.56.exe]
|<!--Size-->163 KB
|<!--From-->[http://wwwftp.gnome.org / ftp.gnome.org]
|<!--Comment-->"Run as admin" on Vista & later.
|-
|<!--Order-->5
|<!--Package Name-->pycairo 1.24.612or later|<!--Download-->[http://ftp.accgnome.umu.seorg/pub/GNOME/binaries/win32/pycairo/1.24/pycairo-1.24.612-12.win32-py2.56.exe pycairo-1.24.612-12.win32-py2.56.exe]|<!--Size-->82 86 KB|<!--From-->[http://www.accftp.umugnome.seorg/ accftp.umugnome.seorg]
|<!--Comment-->"Run as admin" on Vista & later.
|-
|<!--Order-->6
|<!--Package Name-->Validate Install
|<!--Download-->NA
|<!--Size-->NA
|<!--From-->NA
|<!--Comment-->
The following recommendations are for the validation
of the proper installation of the above listed
Gramps software prerequisites.
 
After installing the items above on a VISTA 64 bit
Ultimate System; Gramps could not locate any of
the above software except for Python. This caused
the installer to not install Gramps.
 
After some time researching the issue I found
the solution to my problem in a post by
"steve geo at [http://old.nabble.com/3.1.1-install-program-problem-td22636394.html old.nabble.com]".
 
NOTE:
These steps should validate an installation on XP,
Vista and Windows 7 with the caveat that the command
window on Vista and Windows 7 should be opened using
the "Run as Administrator" (Set your mouse pointer
over the command prompt icon and right-click your
mouse button to display the menu. Click on the
"Run as Administrator" item.)
 
1. Open up command window (see note above)
 
2. If you installed the gtk-runtime software in
row 2 above (SKIP to ahead to 3.)
Type gtk-demo and press the enter key.
 
a) If the gtk demo program does not load
then it is likely you do not have the
gtk bin directory in your path correctly.
(Add your installation directory to your
path environment variable)
3. Change to the directory where you installed the
Python application. By default it is likely
installed at C:\Python26. Once in this folder type
python and press the enter key
 
a) Your command window should show you information
about the version of Python installed on your
computer and your prompt should be different
and will likely look like ">>>"
b) If you do not have a
"drive:\[your python install directory]" you
should run the python installation program.
c) If your prompt does not change. Re-install
python and watch closely for errors or a
different drive and directory for the installation.
 
4. At the Python prompt - likely ">>>"
 
a) import pygtk
b) import gtk
c) import gobject
The above items should complete without errors.
5. If you are updating from a prevous GTK version, make sure you have "Graphviz" folder path AFTER the "GTK2 runtime 2.16" folder.
It should look like this (in this order) PATH=... C:\Program files\GTK2 Runtime\bin;C:\Program files\Graphviz2.26\bin;C:\Program files\GS\GS8.64\bin. If "Graphviz" is located before "GTK2 Runtime 2.16" in the PATH folder order Gramps will not start.
 
6. Reboot your computer. After reboot run Gramps install.
|-
|<!--Order-->Optional
|<!--Package Name-->Graphviz
|<!--Download-->[http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.26.msi graphviz-2.26.msi]
|<!--Size-->29.1 31 MB
|<!--From-->[http://www.graphviz.org/ graphviz.org]
|<!--Comment-->Needed to be able to generate relationship graphs (single page PDFs only)
* pygtk 2.10.6 => [http://ftp.acc.umu.se/pub/GNOME/binaries/win32/pygtk/2.10/pygtk-2.10.6-1.win32-py2.5.exe pygtk-2.10.6-1.win32-py2.5.exe] (1.8 MB, from [http://www.acc.umu.se www.acc.umu.se])
'''3.''' Re-boot the computer after installing the above dependencies, prior to installing GRAMPSGramps.
'''4.''' Install GRAMPS Gramps for Windows. You can install download the last most recent stable version:* from [httphttps://sourceforge.net/projects/gramps/files/Stable/gramps-3.1.3-1.exe gramps-3.1.3-1.exeSourceForge] -- (6.7 MB) GRAMPS Windows installer.
==Common Problemsproblems==
===Installer complains pygtk is missing===
This is a very common error to see when all dependencies are not installed or installed correctly. Please make sure that each of the packages required have installed correctly, and re-boot the computer prior to running the GRAMPS Gramps installer. We often see users attempting to use other packages to satisfy these requirements that omit something necessary (e.g., glade) which produce this error.
In rare occasions, the installer will complain that pygtk is not installed even though everything is correct. Canceling and re-running the installer seems to fix this problem, although if it happens repeatedly, the error is the more severe situation discussed above. (Anyone know why? Please tell us on the [https://lists.sourceforge.net/lists/listinfo/gramps-windows gramps-windows email list].)
===GTK+ Installer Errorinstaller error===
If you already have GTK+ installed, perhaps because you have installed [http://gimp-win.sourceforge.net/stable.html The GIMP], [http://www.pidgin.im/ Pidgin], or [http://gnucash.org Gnu Cash], the GTK+ installer will not be able to write to some files if one of those applications is running. If you see errors with the GTK+ installer, select Cancel, shut down the other GTK+ applications and run the installer again. (This issue has been reported as [http://sourceforge.net/tracker/index.php?func=detail&aid=1852930&group_id=98754&atid=621933 GTK+ Installer doesn't handle locked files well] to the kind people who make the GTK+ installer for windows.)
 
===ImportError: DLL load failed:===
This error is becoming increasingly common on recent GTK+/Windows combinations. Gramps does not have DLL's itself, it is usually caused by one of Gramps dependencies (Most likely Gtk+ runtime, not finding a required dependency). As this issue is more complicated to diagnose we have another page [[ImportError: DLL load failed| ''ImportError: DLL load failed'']] dedicated to discussing the issue.
===Hang when started===
In some environments GRAMPS Gramps may be unresponsive after displaying its window after being started, particularly after the first time. This can be worked around by running GRAMPS Gramps via a BAT file which first sets GRAMPSHOME to an accessible directory, as discussed on the [[GRAMPS_and_WindowsGramps_and_Windows#Setting_the_configuration_path|''GRAMPS Gramps and Windows'' page]].
==Additional plugins==
There are some features of Gramps that need additional programs to work. There are several different kinds of reports, and the following features need extra configuration to work on Windows.
* The Relationship Graph reports (both graphical report graph and code generatoroutput formats) need an installation of [http://www.graphviz.org Graphviz]. There is a bug in the current stable release, see this [[Howto:_Make_a_relationship_chart#Example_3.2C_Generating_the_graph_by_using_the_Graphviz_command_line_tool |example]].* The Relationship Graph can not use PDF as output format unless there is an installation of [httphttps://pageswww.csghostscript.wisc.educom/~ghost/ ghostscriptGhostscript]. After installation, if gswin32.exe or gswin32c.exe is in the path, PDF should appear as one of the formats in the graphical Relationship Graph report.
* '''Spell-checking:'''
*# For spell-checking to work you first need [httphttps://wwwabiword.abisourcegithub.com/projectsio/enchant/ Enchant library] and python bindings [httphttps://wwwpypi.rfk.idpython.auorg/softwarepypi/pyenchant/ PyEnchant]. Enchant appears to be a generic spell checking library. You can request dictionaries from it, ask if a word is correctly spelled, get corrections for a misspelled word, etc... PyEnchant is a set of language bindings and some wrapper classes to make the excellent Enchant spellchecker available as a Python module. Both are available for windows as single setup file:
*#* [http://pypi.python.org/packages/any/p/pyenchant/pyenchant-1.5.3.win32.exe pyenchant-1.5.3.win32.exe]
*# Secondly you need [http://www.pygtk.org/pygtkspell/ PyGTKSpell] from [http://www.pygtk.org/about.html gnome-python-extras] which is bindings allowing to run Python programs using the [http://gtkspell.sourceforge.net/ GtkSpell library], that extends GTK+'s GtkTextView widget with support for spell-checking. Depending of yours Python version download and install one of these:
*#* [[Media:PyGTKSpell-2.25.3.win32-py2.56.zip|PyGTKSpell-2.25.3.win32-py2.56.exe]] for Python 2.5*#* [or [Mediahttp:PyGTKSpell//nascent-project.org/barts/Spellchecker_for_Gramps_Portable_3.2.255_Development_Test_1.3paf.win32-py2exe pyenchant 1.65.zip|3, PyGTKSpell-2.25.3.win32-py2.6.exe]] for Python 2.6
*# To install additional dictionaries read tutorial on PyEnchant site:
*#* http://www.rfk.id.au/software/pyenchant/tutorial.html#installation-dicts
* GeoView needs WebKit and python-WebKit.
Experimental versions are available [[GeoView#windows_XP.2FVista|for tests with python 2.6 under Windows]].
==Limitations==
At When this timeminimal Windows installer was first written, there is was no intent to package all the dependencies and the GRAMPS Gramps package into one installer. This creates a It is very complex coordination condition to coordinate dependencies between GRAMPS Gramps and these other projects. It also means a single 30+ MB download every version change. However, later such a package was created and many people find it easier than personally installing all the dependencies; see [[All In One Gramps Software Bundle for Windows| GrampsAIO]] for more information.
There have been discussions about trying to install compiled distillations (dynamic link libraries) of these core dependencies to avoid having to install the entire Python and GTK environment, but this work never progressed beyond discussion. For more about this and other Windows issues, see the [https://lists.sourceforge.net/lists/listinfo/gramps-windows email list(List gone)] archive.
On Windows Vista you will need to save the executable using "save as" and run it as administrator, otherwise the programs will not be able to write to the registry on installation. To do that right click the saved file and choose "run as administrator".
== See also ==
* [[GRAMPS Gramps and Windows]] describes users experiences using GRAMPS Gramps on Windows.* [http://apps.sourceforge.net/mediawiki/gramps4win/index.php?title=Main_Page GRAMPS for Windows] Wiki and Downloads - SourceForge.net* [https://lists.sourceforge.net/lists/listinfo/gramps-windows GRAMPS Windows users Gramps users mailing list]* [[Gramps for Windows with MSYS2]] 
[[Category:Documentation]][[Category:Developers/Packaging]][[Category:Developers/Installation]]
4,608
edits

Navigation menu