Difference between revisions of "AttributeError: NoneType object has no attribute"
m |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The error "AttributeError: 'NoneType' object has no attribute..." probably means that | + | The Python error '''"AttributeError: 'NoneType' object has no attribute..."''' probably means that the Gramps program attempted to retrieve an object (such as a person, or family) by using its internal handle, but the database can't find it. Likely, the object is still there, but the internal database references have become corrupted. |
− | To fix, first, make a Gramps XML backup. | + | To fix, first, '''[[How_to_make_a_backup|make a Gramps XML backup]]'''. |
Then, you need to run the menu -> Tools -> Family Tree Repair and run the tools: | Then, you need to run the menu -> Tools -> Family Tree Repair and run the tools: | ||
Line 15: | Line 15: | ||
If you still have issues, you may need to go back to an older backup. | If you still have issues, you may need to go back to an older backup. | ||
− | [[Category:Documentation]][[Category:Developers]][[Category:Troubleshooting]] | + | [[Category:Documentation]] |
+ | [[Category:Developers]] | ||
+ | [[Category:Troubleshooting]] |
Revision as of 03:04, 18 October 2014
The Python error "AttributeError: 'NoneType' object has no attribute..." probably means that the Gramps program attempted to retrieve an object (such as a person, or family) by using its internal handle, but the database can't find it. Likely, the object is still there, but the internal database references have become corrupted.
To fix, first, make a Gramps XML backup.
Then, you need to run the menu -> Tools -> Family Tree Repair and run the tools:
- Check and Repair Database
- Rebuild Reference Maps
- Rebuild Secondary Indices
in that order.
If you still get the error after running the repair tools, then you should try creating a new family tree, and importing your backup. If still errors, try running the above tools on the re-imported tree.
If you still have issues, you may need to go back to an older backup.