And then I notice the media in your repo list. That will come from a file in /etc/yum.repos.d - I’d delete it unless you’re explicitly trying to load RPMs from a CDROM/DVD. If you are…hm, probably a bug in libdnf.

There was actually nothing in /etc/yum.repos.d for “media” so I did a search for “media” and quickly realized that I had a read-only live usb key with server edition of fedora 25 inserted in a usb port on the pc. Once I took that out all was good.