Bug#1000669: libgstreamer1.0-0: autoaudiosink uses wrong soundcard

2021-11-26 Thread Gerard L.
Package: libgstreamer1.0-0
Version: 1.18.5-1
Severity: important
X-Debbugs-Cc: carmen@belgacom.net

Dear Maintainer,

Since a few weeks, audio from several apps like firefox, chromium, parole or 
clementine is directed to the motherboard soundcard [Intel]
instead of the pci soundcard [Live] of my desktop computer.
As apps using directly ALSA as Audacity or MuseScore are still working fine, I 
suspect GStreamer.

The PCI soundcard is always the first one because of the line "options snd 
slots=snd_emu10k1" in the /etc/modprobe.d/alsa-base.conf file.
It is also ALSA's default soundcard because of the lines "defaults.ctl.!card 
Live" and "defaults.pcm.!card Live" in the /etc/asound.conf file
I have *no PulseAudio* installed.

If I temporarily disable onboard soundcard from bios for a test then audio go 
back to the PCI soundcard.

Test of autoaudiosink does not work as expected.
 If I test GStreamer with "gst-launch-1.0 -v audiotestsrc ! audioconvert ! 
autoaudiosink" 
 then command output shows a "GstPulseSink"... but I have no PulseAudio 
installed ?!
 Also You can see that the selected device is 
alsa_output.pci-_00_1b.0.analog-stereo which is the onboard one.
See gst-auto.log below for details.

Test of alsasink is ok.
 If I test GStreamer with "gst-launch-1.0 -v audiotestsrc ! audioconvert ! 
alsasink"
 then sound go the the PCI soundcard as expected
See gst-alsa.log below for details.

*** alsa-cards
 0 [Live   ]: EMU10K1 - SB Live! 5.1
  SB Live! 5.1 (rev.7, serial:0x80641102) at 0xe880, irq 16
 1 [Intel  ]: HDA-Intel - HDA Intel
  HDA Intel at 0xfbaf8000 irq 33
 2 [HDMI   ]: HDA-Intel - HDA ATI HDMI
  HDA ATI HDMI at 0xfbbfc000 irq 35
 3 [C920   ]: USB-Audio - HD Pro Webcam C920
  HD Pro Webcam C920 at usb-:00:1d.7-6, high speed

*** gst-auto.log
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0.GstPad:src: caps = 
audio/x-raw, rate=(int)44100, format=(string)F32LE, channels=(int)1, 
layout=(string)interleaved
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = 
audio/x-raw, rate=(int)44100, format=(string)F32LE, channels=(int)1, 
layout=(string)interleaved
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0.GstGhostPad:sink.GstProxyPad:proxypad0:
 caps = audio/x-raw, rate=(int)44100, format=(string)F32LE, channels=(int)1, 
layout=(string)interleaved
Redistribute latency...
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse.GstPad:sink:
 caps = audio/x-raw, rate=(int)44100, format=(string)F32LE, channels=(int)1, 
layout=(string)interleaved
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0.GstGhostPad:sink: caps = 
audio/x-raw, rate=(int)44100, format=(string)F32LE, channels=(int)1, 
layout=(string)interleaved
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = 
audio/x-raw, rate=(int)44100, format=(string)F32LE, channels=(int)1, 
layout=(string)interleaved
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 volume = 1
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 mute = false
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 current-device = alsa_output.pci-_00_1b.0.analog-stereo
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 volume = 1
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 mute = false
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 current-device = alsa_output.pci-_00_1b.0.analog-stereo
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 volume = 1
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 mute = false
/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstPulseSink:autoaudiosink0-actual-sink-pulse:
 current-device = alsa_output.pci-_00_1b.0.analog-stereo
handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:01.602219878
Setting pipeline to NULL ...
Freeing pipeline ...

*** gst-alsa.log
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0.GstPad:src: caps = 
audio/x-raw, rate=(int)44100, format=(string)F64LE, channels=(int)2, 
layout=(string)interleaved, channel-mask=(bitmask)0x0003
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = 
audio/x-raw, rate=(int)44100, format=(string)F64LE, channels=(int)2, 
layout=(string)interleaved, 

Bug#978648: spyder: Exits at startup with an import error for module zmq.backend.cython

2020-12-29 Thread Gerard L.
Package: spyder
Version: 3.3.6+dfsg1-5
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: carmen@belgacom.net

Dear Maintainer,

Since the last update of my Debian Testing distro, Spyder no more starts.
When launching spyder from command line we can see a import error message
from the python interpreter complaining that it cannot import name 'constants' 
from partially initialized module 'zmq.backend.cython'. And that's most likely 
due to a circular import
 (/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py)

See attached traceback.

Thanks.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-5-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages spyder depends on:
ii  python3-spyder  3.3.6+dfsg1-5
ii  python3.8   3.8.7-1

spyder recommends no packages.

spyder suggests no packages.

Versions of packages python3-spyder depends on:
ii  libjs-jquery3.5.1+dfsg+~3.5.4-3
ii  libjs-mathjax   2.7.9+dfsg-1
ii  pylint  2.6.0-1
ii  python3 3.9.0-4
ii  python3-chardet 3.0.4-7
ii  python3-cloudpickle 1.6.0-1
ii  python3-jedi0.17.0-1
ii  python3-keyring 21.6.0-1
ii  python3-nbconvert   5.6.1-2
ii  python3-numpydoc1.1.0-3
ii  python3-pickleshare 0.7.5-3
ii  python3-psutil  5.7.3-1+b2
ii  python3-pycodestyle 2.6.0-1
ii  python3-pyflakes2.2.0-2
ii  python3-pygments2.7.1+dfsg-1
ii  python3-qtawesome   0.4.4+ds1-3
ii  python3-qtconsole   4.7.6-1
ii  python3-qtpy1.9.0-3
ii  python3-rope0.17.0-1
ii  python3-sphinx  3.3.1-1
ii  python3-spyder-kernels  1.5.0~really0.5.2-1
ii  python3-zmq 20.0.0-1+b1
ii  spyder-common   3.3.6+dfsg1-5

Versions of packages python3-spyder suggests:
pn  cython3 
ii  python3-matplotlib  3.3.2-2+b1
ii  python3-numpy   1:1.19.4-1+b1
pn  python3-pandas  
ii  python3-pil 8.0.1-1+b1
pn  python3-scipy   
pn  python3-sympy   

Versions of packages python3-pyqt5 depends on:
ii  libc6 2.31-6
ii  libgcc-s1 10.2.1-1
ii  libpython3.9  3.9.1-1
ii  libqt5core5a [qtbase-abi-5-15-2]  5.15.2+dfsg-2
ii  libqt5dbus5   5.15.2+dfsg-2
ii  libqt5designer5   5.15.2-3
ii  libqt5gui55.15.2+dfsg-2
ii  libqt5help5   5.15.2-3
ii  libqt5network55.15.2+dfsg-2
ii  libqt5printsupport5   5.15.2+dfsg-2
ii  libqt5test5   5.15.2+dfsg-2
ii  libqt5widgets55.15.2+dfsg-2
ii  libqt5xml55.15.2+dfsg-2
ii  libstdc++610.2.1-1
ii  python3   3.9.0-4
ii  python3-pyqt5.sip 12.8.1-1+b2

Versions of packages python3-pyqt5 suggests:
pn  python3-pyqt5-dbg  

-- no debconf information
Traceback (most recent call last):
  File "/usr/bin/spyder", line 11, in 
load_entry_point('spyder==3.3.6', 'gui_scripts', 'spyder3')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 473, in 
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2843, 
in load_entry_point
return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2447, 
in load
return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2453, 
in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/spyder/app/start.py", line 14, in 

import zmq
  File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 55, in 
from zmq import backend
  File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 40, in 

reraise(*exc_info)
  File "/usr/lib/python3/dist-packages/zmq/utils/sixcerpt.py", line 34, in 
reraise
raise value
  File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 27, in 

_ns = select_backend(first)
  File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 28, in 
select_backend
mod = __import__(name, fromlist=public_api)
  File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, 
in 
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from partially initialized module 
'zmq.backend.cython' (most likely due to a circular import) 
(/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py)