# Can't convert 'bytes' object to str implicitly

**URL:** <https://community.metabrainz.org/t/cant-convert-bytes-object-to-str-implicitly/396592>\
**Category:** MusicBrainz Picard\
**Created:** [September 3, 2018, 6:56pm UTC](https://community.metabrainz.org/t/cant-convert-bytes-object-to-str-implicitly/396592 "2018-09-03T18:56:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubliner](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/d/958977/32.png) [@dubliner](https://community.metabrainz.org/u/dubliner)\
**Post date:** [September 3, 2018, 6:56pm UTC](https://community.metabrainz.org/t/cant-convert-bytes-object-to-str-implicitly/396592/1 "2018-09-03T18:56:42Z")

</div>

Hi,  
I am using MusicBrainz Picard to divide a large list of files into subdirectories.  
It has worked for 5900 files perfectly, but for 700 of them I am getting the following error:  
“error:Can’t convert ‘bytes’ object to str implicitly”  
Anybody know why I am getting this, the files seem to be the same as the other files I have successfully assigned to subdirectories.  
Thanks,  
Dubliner.

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [September 3, 2018, 8:42pm UTC](https://community.metabrainz.org/t/cant-convert-bytes-object-to-str-implicitly/396592/2 "2018-09-03T20:42:52Z")

</div>

Hi, We need some more info for this. Can you take a look at Help \> View Error/Debug log when this happens and post the output here? Also the file format could be important.

EDIT: And please let us know your operating system 🙂

---

<div class="post-metadata">

**Author:** ![mrballzzz](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mrballzzz](https://community.metabrainz.org/u/mrballzzz)\
**Post date:** [September 3, 2018, 10:43pm UTC](https://community.metabrainz.org/t/cant-convert-bytes-object-to-str-implicitly/396592/3 "2018-09-03T22:43:14Z")

</div>

Hi, I get the exact same error, so maybe my info will help you:  
OS: Win10  
Format: .aif  
error code:  
E: 00:40:25,311 util.thread.run:51: Traceback (most recent call last):

File "picard\util\thread.py", line 47, in run

File "picard\file.py", line 210, in \_save\_and\_rename

File "picard\formats\id3.py", line 346, in \_save

File "picard\formats\id3.py", line 346, in \<listcomp\>

TypeError: Can’t convert ‘bytes’ object to str implicitly

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [September 4, 2018, 3:52am UTC](https://community.metabrainz.org/t/cant-convert-bytes-object-to-str-implicitly/396592/4 "2018-09-04T03:52:44Z")

</div>

Thanks a lot, that helps us identify the issue. Should be possible to fix this in the next release

UPDATE: A fix is ready for the next release. Some background: This happens to files which include an iTunNORM tag, which iTunes writes for audio normalization. This is a regression in Picard 2

---

<div class="post-metadata">

**Author:** ![mrballzzz](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mrballzzz](https://community.metabrainz.org/u/mrballzzz)\
**Post date:** [September 5, 2018, 1:54am UTC](https://community.metabrainz.org/t/cant-convert-bytes-object-to-str-implicitly/396592/5 "2018-09-05T01:54:13Z")

</div>

Ok cool, thank you! Any hint on when we can expect the next update?
