UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to <undefined>

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Jun 13 09:06:30 EDT 2018


On Wed, 13 Jun 2018 03:55:58 -0700, bellcanadardp wrote:

> the collFile has to be like a variable that would refer to the file
> Collection.dat..thats my best guess also in the error line , it doesnt
> actually open the file ...

The file has to be opened if you are reading from it. If it isn't opened 
in the line of code you are looking at, look at the rest of the code. 
*Somewhere* is must be opened.




-- 
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson




More information about the Python-list mailing list