Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 800191

Summary: app-benchmarks/bootchart2 0.14.8-r1 fails "ImportError: cannot import name 'clock' from 'time' (unknown location)"
Product: Gentoo Linux Reporter: Bogdan <bogdan.pylypenko107>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to enable pybootchartgui installing with bootchart2 package
patch from 0.14.8-r1 to 0.14.9

Description Bogdan 2021-07-03 17:59:47 UTC
Created attachment 721270 [details, diff]
patch to enable pybootchartgui installing with bootchart2 package

Gentoo, Python3.9/Python3.8
app-benchmarks/bootchart2 v0.14.8-r1

pybootchartgui fails with an error:

> pybootchartgui

Traceback (most recent call last):
  File "/usr/bin/pybootchartgui", line 20, in <module>
    from pybootchartgui.main import main
  File "/usr/lib/python3.9/site-packages/pybootchartgui/main.py", line 25, in <module>
    from . import parsing
  File "/usr/lib/python3.9/site-packages/pybootchartgui/parsing.py", line 26, in <module>
    from time import clock
ImportError: cannot import name 'clock' from 'time' (unknown location)

Bug reported at https://github.com/xrmx/bootchart/issues/92
Resolution: upgrading to 0.14.9.

Please, update ebuild in portage.
Comment 1 Bogdan 2021-07-03 18:41:17 UTC
Created attachment 721300 [details, diff]
patch from 0.14.8-r1 to 0.14.9

Changes:
- added installation of the pybootchartgui application at the installation stage;
- disable patches (they didn't work).