Nightingale/Songbird: Moving your media without losing your metadata |OR| A Python script for updating content_url values in main@library.songbirdnest.com.db

Categories
Mucking About With Things Progging Python
If there’s a one-step means of notifying Nightingale or Songbird that all of your media files have moved to a different location via the music players’ UIs, I didn’t see it, so I solved my problem with a short (~150-line) Python script [Python 3.6 (Windows, 64-bit)] that, with input via a few prompts, connects to […]

Fixing ModuleNotFoundError: No module named '_sqlite3'

Categories
mod_wsgi Python Sysadminning
Today, I set up Flaskr (GitHub repository), one of the Flask demo apps, so that I could poke around Flask a bit. The only real speed bump was a ModuleNotFoundError for _sqlite3: Note that, to make the above lines from my flaskr error log more readable, I’ve removed the timestamps, process IDs, and requesting IP […]

Changing your default Python install: one tiny wrinkle that shouldn’t have tripped me up

Categories
HerpDerp Mucking About With Things Python Sysadminning
So you’ve installed a later and greater version of Python (Python 3.6.1 in my case) in /usr/local/bin and would like it to be used instead of your server’s default (and presumably older) python version when you type python at the shell prompt after logging in? The solution is widely documented. Add the following to the […]

How I got Python 3.6.1 and WSGI working on CentOS 7.3

Categories
HerpDerp mod_wsgi Mucking About With Things Python
I set out to get WSGI going, with Python 3.x, on my CentOS 7.3 VPS. Initially, I began by trying to follow the path laid out in a 2011 blog post (Building mod_wsgi with EasyApache for WHM/cPanel) but with current equivalents of Python and mod_wsgi. That’s a very lucidly written article and it’s apparent from […]