The module is there but the wrapper is broken :-(

Can you try this hack:
$ sudo sed -i 's|/linux-tools-|/linux-realtime-tools-|' 
/usr/lib/python3/dist-packages/perf/__init__.py

And check if it works now:
$ python3 -c 'import perf; [print(c) for c in perf.cpu_map()]'
0
1
2
3

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089411

Title:
  python perf module missing in realtime kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2089411/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to