Closed cmcknight closed 5 years ago
Yeah, I only experimented with good Mp3s. I didn't have any bad ones handy. I just uploaded a new version of the code that works with your examples and probably will work with most others. I won't say it is 100% hardened, though.
Totally understand that not all corner cases can be caught on an example program. Just re-pulled the code and re-ran it with the following results when launching the app:
Lame tag CRC check failed
main.py:26: DeprecationWarning: Use Tag.getBestDate() instead
if hasattr(id3.tag, 'best_release_date'):
main.py:28: DeprecationWarning: Use Tag.getBestDate() instead
id3.tag.best_release_date, type(None)):
main.py:34: DeprecationWarning: Use Tag.getBestDate() instead
id3.tag.best_release_date.year)
When attempting to edit a selected mp3:
Traceback (most recent call last):
File "main.py", line 76, in edit_mp3
with editor.Mp3TagEditorDialog(selection.id3) as dlg:
File "/Volumes/ProjectDrive/Continuing_Education/Create_GUI_Applications_with_wxPython/applications_with_wxpython/chapter8_mp3_tagger/version_1/editor.py", line 12, in __init__
self.create_ui()
File "/Volumes/ProjectDrive/Continuing_Education/Create_GUI_Applications_with_wxPython/applications_with_wxpython/chapter8_mp3_tagger/version_1/editor.py", line 30, in create_ui
size=size)
TypeError: TextCtrl(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 'value' has unexpected type 'NoneType'
Also, I have to manually quit Python environment because clicking the application close button on the main screen does not shut down the environment properly.
MacOS 10.14.3 Python 3.7.2 (installed via home-brew) Using virtual environment (python3 -m venv ./directory/path/name Activating virtual environment (source ./directory/path/name/bin/activate) Installed via pip: wxPython, sqlalchemy, ObjectListView, eyeD3
Interesting. Worked fine on Linux with no issues. I will have to play around with this on my Mac when I get home.
I take that back. I hadn't quite gotten the default tagging working the way I thought I had. I updated it again and now I can edit on my machine
Interesting. When I run it on my Mac but in the terminal window I see deprecation warnings on lines 29, 31, and 37. Although I'm not that interested in MP3 tag editing, I'll leave it as an exercise for someone who is to track down the current eyed3 syntax. :-)
Oddly, it didn't seem to save any of the changes when I clicked the Save button. I'll file that as a separate issue.
Linux is giving me the deprecation warnings. I will have to play around with this example on another OS then
When I run main.py, the main screen pops up but when I select a folder with mp3s, I get the following crash message:
mp3s.zip