Holzhaus / beets-extrafiles

A plugin for beets that copies additional files and directories during the import process.
MIT License
45 stars 10 forks source link

"warnings.warn("beets.mediafile is deprecated; use mediafile instead" #22

Closed avma closed 3 years ago

avma commented 3 years ago

After running python 3.8 update ver 3.8.5-1~20.4 from my Linux mint 20 update manager, this message pops up:

/home/avi/.local/lib/python3.8/site-packages/beets/mediafile.py:21: UserWarning: beets.mediafile is deprecated; use mediafile instead warnings.warn("beets.mediafile is deprecated; use mediafile instead")

Any idea what is this all about? or how is it possible to fix?

for a short term workaround i went and changed the lines 'import beet.mediafile' to 'import mediafile' in '~.local/lib/python3.8/site-packages/extrafiles.py'.

Now the warning is gone but I'm not sure it will work properly though.

davebuilt commented 2 years ago

Is this released? I can't seem to install it through pip3.

jrabensc commented 2 years ago

Same issue here. Is there a fix already?

ctracy commented 2 years ago

Just trying this plugin for the first time. I installed using pip3 (not grabbing the repo directly though I guess I will try that), I am still encountering this error

ctracy commented 2 years ago

I manually patched my ./python/site-packages/beetsplug/extrafiles.py file with the diff that was merged here: https://github.com/Holzhaus/beets-extrafiles/pull/23/files/7e4f0d374d454b31042ba5413f68610f03e75566

trevordavies095 commented 1 year ago

@ctracy This worked for me. Thank you!

MacLeodMike commented 1 year ago

lol, seeing that this fix hasn't actually been pushed in a release in over two years, when this is in the FAQ is just :chefs_kiss:

JohanSF commented 2 months ago

lol, seeing that this fix hasn't actually been pushed in a release in over two years, when this is in the FAQ is just :chefs_kiss:

@Holzhaus