Bug 29032 - Installation of kazam : microphone not recognized. Depreciated function in a script.py .Solution found on Internet
Summary: Installation of kazam : microphone not recognized. Depreciated function in a ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-29 23:32 CEST by Benoît Boudaud
Modified: 2021-08-18 16:38 CEST (History)
2 users (show)

See Also:
Source RPM: kazam-1.4.5-12.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Benoît Boudaud 2021-05-29 23:32:44 CEST
Description of problem:

Hi there, 

First of all, this is the first time that I report a bug. Maybe this is not the right place to report a bug about Kazam. Please, I ask you to be comprehensive if I made a mistake.
I installed Kazam and no microphone was recognized. I found the solution on the internet. This is caused by a depreciated function in a python script.

- location : /usr/lib/python3/dist-packages/kazam/pulseaudio/pulseaudio.py
- FIX : Update the function time.clock() in pulseaudio.py file with 
  time.perf_counter()
- time.clock() is deprecated from Python V3.3 and removed from Python v3.8


Version-Release number of selected component (if applicable): Mageia 8


How reproducible: Just install Kazam and run it


Steps to Reproduce:
1.
2.
3.
Comment 1 Lewis Smith 2021-05-30 21:46:37 CEST
Thank you for the report, and the fix. The file you mention is actually:
  /usr/lib/python3.8/site-packages/kazam/pulseaudio/pulseaudio.py
[There is another module of the same name elsewhere:
python3-x2go:/usr/lib/python3.8/site-packages/x2go/pulseaudio.py]

Assigning this to DavidG, because it seems as if the fix is already in Cauldron:
Fri Feb 19 2021 by daviddavid:
- add debian patch to use time.perf_counter() instead of time.clock() to
  fix errors with Python 3.8
  * https://bugs.launchpad.net/kazam/+bug/1875530/

Assignee: bugsquad => geiger.david68210
Source RPM: kazam => kazam-1.4.5-12.mga8.src.rpm

Comment 2 Benoît Boudaud 2021-05-30 21:57:14 CEST
(In reply to Lewis Smith from comment #1)
> Thank you for the report, and the fix. The file you mention is actually:
>   /usr/lib/python3.8/site-packages/kazam/pulseaudio/pulseaudio.py
> [There is another module of the same name elsewhere:
> python3-x2go:/usr/lib/python3.8/site-packages/x2go/pulseaudio.py]
> 
> Assigning this to DavidG, because it seems as if the fix is already in
> Cauldron:
> Fri Feb 19 2021 by daviddavid:
> - add debian patch to use time.perf_counter() instead of time.clock() to
>   fix errors with Python 3.8
>   * https://bugs.launchpad.net/kazam/+bug/1875530/

Hi Lewis,
That's right, the file is: 
/usr/lib/python3.8/site-packages/kazam/pulseaudio/pulseaudio.py

Sorry, I forgot to change the file path by copying and pasting it
Comment 3 David GEIGER 2021-06-01 07:18:25 CEST
Fixed with kazam-1.4.5-12.1.mga8 in Core/Updates_testing repo!
Comment 4 Maat 2021-07-05 16:17:52 CEST
Hello,

Confirmed for me on Asus ZenBook 14

And foudn also this : https://askubuntu.com/questions/1237885/kazam-microphone-unknown

seems the pâtch is the way to go...

Regards,
Maât

CC: (none) => maat-ml

Comment 5 Jose Manuel López 2021-08-18 16:38:32 CEST
Hi!, I confirm that this issue is here still.

I have applicated the solution and now works fine.

I have found solution in: https://cambiatealinux.com/kazam-no-detecta-ni-microfono-ni-altavoces-en-ubuntu-20.04-y-derivados

Greetings!!

CC: (none) => joselp


Note You need to log in before you can comment on or make changes to this bug.