To summarize, if you decide to shoot yourself in the foot like this, the fix is:
-delete /opt/Mycodo/env
-run /opt/Mycodo/mycodo/scripts/upgrade_post.sh
-if you did Bullseye to Bookworm (influx1 to influx2), run influx setup --org mycodo --bucket mycodo_db --username mycodo --password mmdu77sj3nIoiajjs --force
-source /opt/Mycodo/mycodo/env/bin/activate
- pip install --upgrade sqlalchemy
-reinstall missing input/output/function dependencies within Mycodo
Your mileage may vary.