I wanted to export my database to GRAMPS portable XML format to open it on another computer as well as for backup, but instead I got the following error:

Error Details:

37625: ERROR: gramps.py : line 147: Unhandled exception
Traceback (most recent call last):
File "C:\Program Files\Edu\gramps\Exporter.py", line 126, in on_before_page_next
success = self.save()
File "C:\Program Files\Edu\gramps\Exporter.py", line 187, in save
File "C:\Program Files\Edu\gramps\plugins\WritePkg.py", line 70, in writeData
ret = writer.export()
File "C:\Program Files\Edu\gramps\plugins\WritePkg.py", line 191, in export
tarinfo.uid = os.getuid()
AttributeError: 'module' object has no attribute 'getuid'

System Information:

Python version: 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)]
Gramps version: 2.1.95-1
OS: win32

I thought I could have a corrupt database so I ran "Chceck and repair database" yet it resulted in another error:

229719: ERROR: _tool.py: line 271: Failed to start tool.
Traceback (most recent call last):
File "C:\Program Files\Edu\gramps\PluginUtils\_Tool.py", line 267, in gui_tool
tool_class(dbstate, uistate, options_class, name, callback)
File "C:\Program Files\Edu\gramps\plugins\Check.py", line 162, in __init__
trans = self.db.transaction_begin("",batch=True)
File "C:\Program Files\Edu\gramps\GrampsDb\_GrampsBSDDB.py", line 1280, in transaction_begin
DBInvalidArgError: (22, 'Invalid argument -- txn_checkpoint: failed to flush the buffer cache Invalid argument')