I am trying go create a taste profile for a directory of mp3 files using python 2.7 script, but it seems there's something wrong with my eyed3 module.
first I had to import it with 'd' instead of 'D'
import eyed3
then I had to change deprecated playlist method to catalog.get_item_dicts().
but now it seems that there's something wrong with THIS method:
tag = eyed3.Tag()
I know pythonis case sensitive, and have tried several syntaxes: eyeD3, tag().
but terminal logs:
>>'module' object has no attribute 'Tag'
I have followed this thread: How to get detail (Title,Artist) from .mp3 files in python using eyed3 with a similar question, but it wasn't resolved.
when script runs: python personal_catalog_scanner.py -c soup -t song mp3,
an Echonest song catalog is created, mp3 files are found, but no idis created.
what could be wrong?
The
Tagclass is actuallyeyed3.ID3.Tag, noteyed3.Tag, so you can use the following:...or import it beforehand: