Bug 40772 - gramps 4.2.8
Summary: gramps 4.2.8
Status: CLOSED DUPLICATE of bug 37029
Alias: None
Product: Sisyphus
Classification: Development
Component: gramps (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-17 22:39 MSK by sklaria
Modified: 2021-12-22 17:21 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***