nicfit / eyeD3

eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ID3v1 (1.0/1.1) and ID3v2 (2.3/2.4).
http://eyed3.nicfit.net/
GNU General Public License v3.0
547 stars 59 forks source link

does not support Python 3.8 #374

Closed TorontoMapleLeaf closed 4 years ago

TorontoMapleLeaf commented 4 years ago

I am using Python 3.8, Eyed3 does not work. when can it support Python 3.8?

nicfit commented 4 years ago

What version of eyeD3? Not seeing any problems with 0.8.11, or git master (which is currently only python3)

TorontoMapleLeaf commented 4 years ago

V0.8.11, I directly downloaded from website

On Fri., Dec. 13, 2019, 7:17 p.m. nicfit notifications@github.com wrote:

What version of eyeD3?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nicfit/eyeD3/issues/374?email_source=notifications&email_token=AOBAKZ6PWXO43ZNMRJAUEMTQYQQYHA5CNFSM4J2NJH5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG3UARQ#issuecomment-565657670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBAKZYGIRGNAYDQQ63VCYLQYQQYHANCNFSM4J2NJH5A .

nicfit commented 4 years ago

You're going to have provide more info. What's the error? What OS are you using?

Also, Go Rangers!

TorontoMapleLeaf commented 4 years ago

hello,

when I use below script to load a mp3 file, it works for song with English name, but for song with Chinese name, I received error: " audiofile is: None"

audiofile = eyed3.load(filepath) #file path is the Song's directory plus file name

my OS is Window 10, running Python 3.8. Eyed3 version: 0.8.11

On Fri, 13 Dec 2019 at 19:17, nicfit notifications@github.com wrote:

What version of eyeD3?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nicfit/eyeD3/issues/374?email_source=notifications&email_token=AOBAKZ6PWXO43ZNMRJAUEMTQYQQYHA5CNFSM4J2NJH5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG3UARQ#issuecomment-565657670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBAKZYGIRGNAYDQQ63VCYLQYQQYHANCNFSM4J2NJH5A .

-- Thanks Fengfu Xu

TorontoMapleLeaf commented 4 years ago

if you load this song (attached ) by audiofile=eyed3.load(), you will get a "none" object.

On Fri, 13 Dec 2019 at 19:17, nicfit notifications@github.com wrote:

What version of eyeD3?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nicfit/eyeD3/issues/374?email_source=notifications&email_token=AOBAKZ6PWXO43ZNMRJAUEMTQYQQYHA5CNFSM4J2NJH5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG3UARQ#issuecomment-565657670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBAKZYGIRGNAYDQQ63VCYLQYQQYHANCNFSM4J2NJH5A .

-- Thanks Fengfu Xu

nicfit commented 4 years ago

Hey @TorontoMapleLeaf , not seeing an attachment. github does not all all for all types of attachments, you may be able mail the file.. try travis@pobox.com

nicfit commented 4 years ago

Oops, I fixed my email in the above msg. Please paste the output of eyeD3 -l debug file.mp3

TorontoMapleLeaf commented 4 years ago

ok, try to load this one, you will get a NONE object.

On Tue, 17 Dec 2019 at 17:04, nicfit notifications@github.com wrote:

Oops, I fixed my email in the above msg. Please paste the output of eyeD3 -l debug file.mp3

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nicfit/eyeD3/issues/374?email_source=notifications&email_token=AOBAKZ4V6CMZ4UBUXJGBTDDQZFEGTA5CNFSM4J2NJH5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHEDQLI#issuecomment-566769709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBAKZ7NQBCB25N7F2UZJ4TQZFEGTANCNFSM4J2NJH5A .

-- Thanks Fengfu Xu

nicfit commented 4 years ago

There are a no attachments, github is not accepting it. Please paste the output of eyeD3 -l debug for that file.

TorontoMapleLeaf commented 4 years ago

hi, there,

below is the code: the song name is in Chinese. the song is attached in the email. the song cannot be loaded by eyed3, the object is none, therefore cannot get tags.

Filepath = r"C:/Users/xufen/Documents/Music/哭不出来 - 汪峰.mp3" audiofile = eyed3.load(Filepath) print("audiofile is:",audiofile) print("artist is:", audiofile.tag.artist," title is:", audiofile.tag.title)

below is the error message:

C:\Users\xufen\AppData\Local\Programs\Python\Python38-32\python.exe C:/Users/xufen/Desktop/mp3.py Traceback (most recent call last): File "C:/Users/xufen/Desktop/mp3.py", line 110, in print("artist is:", audiofile.tag.artist," title is:", audiofile.tag.title) AttributeError: 'NoneType' object has no attribute 'tag' audiofile is: None

Process finished with exit code 1

On Thu, 19 Dec 2019 at 14:14, nicfit notifications@github.com wrote:

There are a no attachments, github is not accepting it. Please paste the output of eyeD3 -l debug for that file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nicfit/eyeD3/issues/374?email_source=notifications&email_token=AOBAKZ4XGBEIKTEZANLNR23QZPBZVA5CNFSM4J2NJH5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHKUC7Q#issuecomment-567624062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBAKZ7GVOZ36Z2RLKJ7WXTQZPBZVANCNFSM4J2NJH5A .

-- Thanks Fengfu Xu

TorontoMapleLeaf commented 4 years ago

below is the mp3 song link, you can download it and try to load it by eyed3:

https://www.dropbox.com/s/tdno7qu654v6wrv/%E5%93%AD%E4%B8%8D%E5%87%BA%E6%9D%A5%20-%20%E6%B1%AA%E5%B3%B0.mp3?dl=0

TorontoMapleLeaf commented 4 years ago

哭不出来 - 汪峰.zip

here is the song

nicfit commented 4 years ago

I got the file, it is parses with latest eyeD3. Although the data looks funky. Note tho, the file must look like an mp3 before eyeD3 will parse. This file, is bit odd because the primary mimetype is determined to be mime-type: ['application/x-font-gdos', 'audio/mpeg', 'application/octet-stream'] Since mpeg is in the list eyeD3 will parse, but all this depends on libmagic being installed.

The current git repo master is the next version of eyeD3 which replaces list libmagic requirement. I also tested your file with it I get the same results as below.

➜ eyeD3 --version
0.8.11

➜ eyeD3 ./issue374.mp3 
eyed3.mp3.headers:WARNING: Lame tag CRC check failed
/home/travis/devel/eyeD3/issue374.mp3                                                                                      [ 1.27 MB ]
---------------------------------------------------------------------------------------------------------------------------------------
Time: 01:23 MPEG1, Layer III    [ 128 kb/s @ 44100 Hz - Joint stereo ]
---------------------------------------------------------------------------------------------------------------------------------------
ID3 v2.3:
title: ¿Þ²»³öÀ´
artist: Íô·å
album: 
track:      
FRONT_COVER Image: [Size: 4669 bytes] [Type: image/jpeg]
Description: 
---------------------------------------------------------------------------------------------------------------------------------------

You can try the new eyeD3 by installing 0.9a3: pip install 'eyeD3==0.9a3'

TorontoMapleLeaf commented 4 years ago

1) I tried to install 0.9a3: pip install 'eyeD3==0.9a3', and got error message: ERROR: Invalid requirement: "'eyeD3==0.9a3'"

2) I could not load any mp3 file with Chinese name.

3) are you using Python 3.8 to successfully load the file I sent you?

nicfit commented 4 years ago
1. I tried to install 0.9a3: pip install 'eyeD3==0.9a3', and got error message:
   ERROR: Invalid requirement: "'eyeD3==0.9a3'"

Odd, installs for me and reports correct version when eyeD3 --version is run

2. I could not load any mp3 file with Chinese name.

I think this is the same problem (with Windows systems) as #218. But since that is with libmagic, and you cannot get the non-libmagic version of eyeD3 install then it's not a fail comparison.

3. are you using Python 3.8 to successfully load the file I sent you?

Yes, the pasted output above is using Python 3.8 in Linux.

TorontoMapleLeaf commented 4 years ago

ok, I give up for now.

I use MP#_Tagger instead. it works well. I also use a app MP3Tag (free software from web) to change tags.

thank you for your time. I will close the case.