Everything about the Python ecosystem makes me want to murder someone. #python #oldman
Open up old app from five years ago. Install venv, figure out that the serial port API I was using has one name at the package level and another in code, was installing the wrong one. #python #oldman
Figure out weird mess of PyQT, get that sorted. Get VSCode setup to debug which of course requires a launch.json to be setup. Get weird serial module exception that I've never seen before, only when run from within VS Code. Switch to trusty -m pdb invocation on command-line, get weird segfault that is not caught, with no backtrace. #python #oldman
Figure out it seems to be correlated to the simpleaudio module. Spend thirty minutes finding out that package is deprecated, but over the last year multiple people have run into this problem. Find one dude who debugged it to a bad global lock missing, but original library maintainer isn't updating, learn how to use pip to install this guy's private fork (praise that dude). #python #oldman
While debugging this with -m pdb enjoy the miracle of PyQT spamming "QCoreApplication::exec: The event loop is already running" while trying to use the TTY interface to the debugger. #python #oldman
Okay, I think the serial code exception is because VS Code decides to somehow trap all raised exceptions by default; I of course was explicitly handling this one in the caller. Joy. #python #oldman