Bug 40772

Summary: gramps 4.2.8
Product: Sisyphus Reporter: sklaria <sklaria>
Component: grampsAssignee: Vitaly Lipatov <lav>
Status: CLOSED DUPLICATE QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: cas, grenka, lav, mike
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description sklaria 2021-08-17 22:39:07 MSK
Программа запускается, но выбор "Люди" или "Семьи" приводит к ошибке.
Вывод в консоли -
$gramps
.gramps.gen.utils.grampslocale.WARNING: ICU not loaded because No module named 'PyICU'. Localization will be impaired. Use your package manager to install PyICU
/usr/lib/python3/site-packages/gramps/gen/plug/_pluginreg.py:1070: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if PluginRegister.__instance is not 1:
/usr/lib/python3/site-packages/gramps/gen/plug/_manager.py:85: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if BasePluginManager.__instance is not 1:
/usr/lib/python3/site-packages/gramps/gui/pluginmanager.py:74: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if GuiPluginManager.__instance is not 1:
/usr/lib/python3/site-packages/gramps/plugins/lib/maps/messagelayer.py:112: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  self.message += "\n%s" % message if self.message is not "" else message
2021-08-17 20:59:38.110: ERROR: grampsapp.py: line 144: Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/gramps/gui/viewmanager.py", line 1015, in view_changed
    self.__change_page(page_num)
  File "/usr/lib/python3/site-packages/gramps/gui/viewmanager.py", line 1028, in __change_page
    self.active_page.set_active()
  File "/usr/lib/python3/site-packages/gramps/gui/views/listview.py", line 292, in set_active
    NavigationView.set_active(self)
  File "/usr/lib/python3/site-packages/gramps/gui/views/navigationview.py", line 154, in set_active
    PageView.set_active(self)
  File "/usr/lib/python3/site-packages/gramps/gui/views/pageview.py", line 304, in set_active
    self.build_tree()
  File "/usr/lib/python3/site-packages/gramps/gui/views/listview.py", line 310, in build_tree
    cput0 = time.clock()
AttributeError: module 'time' has no attribute 'clock'
Comment 1 Vitaly Lipatov 2021-08-18 12:19:44 MSK
gramps 4 устарел, надо собирать gramps 5 ...

From the Python 3.8 doc:

The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)
Comment 2 Andrey Cherepanov 2021-12-22 17:21:40 MSK
Дубль.

*** This bug has been marked as a duplicate of bug 37029 ***