Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 800191 - app-benchmarks/bootchart2 0.14.8-r1 fails "ImportError: cannot import name 'clock' from 'time' (unknown location)"
Summary: app-benchmarks/bootchart2 0.14.8-r1 fails "ImportError: cannot import name 'c...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-03 17:59 UTC by Bogdan
Modified: 2024-06-18 14:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to enable pybootchartgui installing with bootchart2 package (bootchart2-0.14.8-r1.ebuild.patch,296 bytes, patch)
2021-07-03 17:59 UTC, Bogdan
Details | Diff
patch from 0.14.8-r1 to 0.14.9 (bootchart2-0.14.9.ebuild.patch,540 bytes, patch)
2021-07-03 18:41 UTC, Bogdan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).
Comment 2 Pacho Ramos gentoo-dev 2024-06-18 14:47:58 UTC
We have 0.14.9-r1 in the tree now