14

kazam no audio input

Have anyone faced the same error?

audio input sources

None of the sources seems to be working. I even tried disconnecting Bluetooth & restarting the "Kazam" app.

3 Answers 3

24

Just posting the fix here to avoid confusion in the thread.

FIX : Update the function "time.clock()" in pulseaudio.py file with "time.perf_counter()"

File location : /usr/lib/python3/dist-packages/kazam/pulseaudio/pulseaudio.py

'time.clock()' is deprecated from Python V3.3 and removed from Python v3.8

Documentaion: : https://docs.python.org/3.7/library/time.html#time.clock

5
  • 1
    It works although there are about 6 instances to replace.
    – user1102909
    Jul 6, 2020 at 23:39
  • there were 8 for me Aug 4, 2020 at 23:40
  • replace all the instance Aug 5, 2020 at 4:11
  • 7
    Here is the one liner to fix it: sudo sed -i 's/time.clock/time.perf_counter/g' /usr/lib/python3/dist-packages/kazam/pulseaudio/pulseaudio.py
    – Brett
    Sep 8, 2020 at 1:23
  • Not working, version 1.4.5-2, Ubuntu 18.
    – WesternGun
    Jun 27, 2022 at 9:22
6

If you've just upgraded to ubuntu 20.04, see solution at #8, #12 of https://bugs.launchpad.net/kazam/+bug/1875530

2
  • What about for a fresh install?
    – Jus12
    Aug 31, 2020 at 19:13
  • I replace time.lock with time.perf_counter in my py file, and compare that with the one attached in your link, identical. so it's the same solution.
    – WesternGun
    Jun 27, 2022 at 9:28
1

I am using manjaro, firstly I installed it by

yay -S kazam

microphone is undetecting

FIX : Update the function "time.clock()" in pulseaudio.py file with "time.perf_counter()"

File_location: /usr/lib/python3.9/site-packages/kazam/pulseaudio/pulseaudio.py

1
  • This worked for me, thanks a lot.
    – msoutopico
    Sep 23, 2022 at 10:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .