Search code examples
pythonattributeerror

Why does the module 'music_tag' have no attribute 'load_file'?


import music_tag

my_mp3 = music_tag.load_file()

AttributeError: partially initialized module 'music_tag' has no attribute 'load_file' (most likely due to a circular import) --> I installed music_tag (pip install music-tag)(just like other modules),then I checked, music_tag and mutagen was added in site-packages but music_tag don't work and show me above error.


Solution

  • If you are importing from another python file, it could be interfering with the module music-tag, if so try to rename the file.

    Also please try to verify the download files by using

    pip install music-tag