morseangel
morseangel copied to clipboard
AttributeError: 'ArtistList' object has no attribute 'pop'
After start and selecting a valid sound device tghe following error is displayed:
python ./morseangel.py Torch using cpu MorseDecoderRegen.init: 11.0 23.0 25.0 qt.qpa.fonts: Populating font family aliases took 171 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost. Init zenv 50 USB Audio CODEC 16000 Init Audio Traceback (most recent call last): File "./morseangel.py", line 382, in openAudioDialog self.set_audio_device() File "./morseangel.py", line 417, in set_audio_device self.initTEnv() File "./morseangel.py", line 364, in initTEnv self.sc_tenv.set_mp(tenv_size) File "./morseangel.py", line 93, in set_mp self.axes.lines.pop(0) AttributeError: 'ArtistList' object has no attribute 'pop'
run environment: Mac OSX Ventura 13.3.1 Python 3.8.5
matplotlib==3.7.1 numpy==1.24.3 pandas==2.0.1 PyQt5==5.15.9 PyQt5_sip==12.12.1 scipy==1.10.1 sounddevice==0.4.6 torch==2.0.1
Best regards, Filip, ON4FF
I encountered the same error, but on Windows 10, and I was able to fix it by going back to an earlier version of matplotlib (3.6.3). I guess there was something that was changed in the most recent version that breaks the code. There may be a fix for the actual code mentioned in this post, but I have not yet looked into it.
Try pip install matplotlib==3.6.3
and see if that works for you.
Many thanks for the solution. It worked for me on Linux Debian trixie.