question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError 'NoneType' object has no attribute 'add'

See original GitHub issue

Installed via pip3 on Ubuntu 20.04 today. It failed on the first album I tried.

Version:

SACAD (recursive tool) v2.3.4.

ID3 before:

skip@Dell-7040:~/roh_music/Blondie/The Best of Blondie$ id3 -l 01\ -\ Heart\ of\ Glass.mp3
01 - Heart of Glass.mp3:
Title  : Heart of Glass                  Artist: Blondie
Album  : The Best of Blondie             Year: 2000, Genre: Rock (17)
Comment:                                 Track: 0

Error:

skip@Dell-7040:~/roh_music/Blondie/The Best of Blondie$ sacad_r . 600 +
Analyzing library: 1dir [00:00, 68.26dir/s, files=15, albums=1, missing covers=1, errors=0]
sacad_r: Error occured while embedding cover for 'The Best of Blondie' by 'Blondie' from './01 - Heart of Glass.mp3', './02 - Dreaming.mp3', './03 - The Tide is High.mp3', './04 - In the Flesh.mp3', './05 - Sunday Girl.mp3', './06 - Hanging on the Telephone.mp3', './07 - Rapture.mp3', './08 - One Way or Another.mp3', "./09 - (I'm Always Touched by Your) Presence Dear.mp3", './10 - Call Me (Theme from American Gigolo).mp3', './11 - Atomic.mp3', './12 - Rip Her to Shreds.mp3': AttributeError 'NoneType' object has no attribute 'add'
Searching covers: 100%|ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ| 1/1 [00:40<00:00, 40.33s/cover, ok=0, errors=1, no result found=0]
skip@Dell-7040:~/roh_music/Blondie/The Best of Blondie$

ID3 after:

skip@Dell-7040:~/roh_music/Blondie/The Best of Blondie$ id3 -l 01\ -\ Heart\ of\ Glass.mp3
01 - Heart of Glass.mp3:
Title  : Heart of Glass                  Artist: Blondie
Album  : The Best of Blondie             Year: 2000, Genre: Rock (17)
Comment:                                 Track: 0
skip@Dell-7040:~/roh_music/Blondie/The Best of Blondie$

Log: sacad.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
skiphansencommented, Mar 22, 2021

And it works! Thank you!

/home/skip/roh_music/The Best of Blondie/02 - Dreaming.mp3          [ 2.96 MB ]
--------------------------------------------------------------------------------
Time: 03:08     MPEG1, Layer III        [ 128 kb/s @ 44100 Hz - Stereo ]
--------------------------------------------------------------------------------
ID3 v2.4:
title:
artist:
album:
track:
FRONT_COVER Image: [Size: 86638 bytes] [Type: image/jpeg]
Description:

--------------------------------------------------------------------------------
skip@Dell-7040:~/roh_music/The Best of Blondie$
1reaction
skiphansencommented, Mar 22, 2021

Here you go: http://newsline.thelinkbox.net/HeartOfGlass.mp3

It’s the same file, I renamed it for sanity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'add'
To fix this, simply do this. Dont assign this to anything. not_yet_bought_set.add(item). Share.
Read more >
AttributeError: 'NoneType' object has no attribute 'insert'
The Python "AttributeError: 'NoneType' object has no attribute 'insert'" occurs when we try to call the insert() method on a None value, e.g....
Read more >
AttributeError: 'NoneType' object has no attribute 'append'
The AttributeError: 'NoneType' object has no attribute 'append' error happens when the append() attribute is called in the None type object.
Read more >
[FIXED] AttributeError: 'NoneType' object has no attribute ...
AttributeError :'NoneType' object has no attribute 'something' ... None . It implies that the function or the assignment call has failed or returned...
Read more >
Why do I get AttributeError: 'NoneType' object has no attribute ...
1 Answer. You are getting AttributeError: 'NoneType' object has no attribute 'something' because NoneType means that instead of an instance of whatever Class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found