# Date handler isue running ...gramps.gen.datehandler.\_datestrings

**URL:** <https://gramps.discourse.group/t/date-handler-isue-running-gramps-gen-datehandler-datestrings/3963>\
**Category:** Beta Testing\
**Created:** [August 8, 2023, 11:31am UTC](https://gramps.discourse.group/t/date-handler-isue-running-gramps-gen-datehandler-datestrings/3963 "2023-08-08T11:31:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avma](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/avma/32/1122_2.png) [@avma](https://gramps.discourse.group/u/avma)\
**Post date:** [August 8, 2023, 11:31am UTC](https://gramps.discourse.group/t/date-handler-isue-running-gramps-gen-datehandler-datestrings/3963/1 "2023-08-08T11:31:04Z")

</div>

@Nick-Hall  
Running “`LANG=he_IL.utf8 LC_ALL=he_IL.utf8 GRAMPS_RESOURCES=$PWD python3 -m gramps.gen.datehandler._datestrings`”  
results with the following errors.

```python
/gramps/gen/utils/grampslocale.py", line 598, in date_displayer
    elif self != _first and _first.calendar and q_first.calendar[:2] in displayers:
NameError: name 'q_first' is not defined. Did you mean: '_first'?

/gramps/gen/datehandler/_datestrings.py", line 308, in <module>
    available_langs = glocale.languages # get the cached list
AttributeError: 'GrampsLocale' object has no attribute 'languages'. Did you mean: 'language'?

```

Manually fixing those two files let the process completed w/o errors.  
I’m not even sure this is a Bug, it would be nice to have a developer look into it since i only ran it for “he” and it might complain about More stuff

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 8, 2023, 4:42pm UTC](https://gramps.discourse.group/t/date-handler-isue-running-gramps-gen-datehandler-datestrings/3963/2 "2023-08-08T16:42:25Z")

</div>

Thank you. The first error was a typo that I have fixed in commit [7b797b8](https://github.com/gramps-project/gramps/commit/7b797b8438d71d2acb3fec4337e1ee764d15bb16).

I’m not sure if the script that creates the po snippets is actually useful, but I have updated it in pull request [#1501](https://github.com/gramps-project/gramps/pull/1501).
