Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Song' object has no attribute 'year.' #200

Closed
zahrahosseini99 opened this issue Apr 17, 2021 · 3 comments
Closed

AttributeError: 'Song' object has no attribute 'year.' #200

zahrahosseini99 opened this issue Apr 17, 2021 · 3 comments

Comments

@zahrahosseini99
Copy link

zahrahosseini99 commented Apr 17, 2021

Hi,
I was trying to get a release date of a song but it shows the below error:
>>> song_year = song.year Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'Song' object has no attribute 'year.'
I saw that 49 Years of Lyrics in your examples used this method. Is this remove in later versions? or just the name of that changed?
If it was available in the previous version, could you please give me the version number?
Many thanks for considering my request.

@allerter
Copy link
Collaborator

allerter commented Apr 17, 2021

Hi. Yes, the Song.year attribute has been removed in version 3.0.0 and replaced by Song.release_date (which has its issue at the moment with a fix waiting to be merged at #182). The aforementioned Song.year is available in all versions below 3.0.0 and I suggest using 2.0.2 until version 3.0.1 or higher is available.

@allerter allerter changed the title Release Date AttributeError: 'Song' object has no attribute 'year.' Apr 17, 2021
@allerter
Copy link
Collaborator

Duplicate of #187. Closing.

@johnwmillr
Copy link
Owner

The #182 has been merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants