Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'ArtistList' object has no attribute 'pop' #2

Open
filipjonckers opened this issue May 27, 2023 · 2 comments
Open

AttributeError: 'ArtistList' object has no attribute 'pop' #2

filipjonckers opened this issue May 27, 2023 · 2 comments

Comments

@filipjonckers
Copy link

filipjonckers commented May 27, 2023

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

@daniel-gallagher
Copy link

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.

@DL8ABG
Copy link

DL8ABG commented Dec 8, 2023

Many thanks for the solution. It worked for me on Linux Debian trixie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants