Skip to content Skip to sidebar Skip to footer

Python Bz2 Ioerror: Invalid Data Stream

Traceback (most recent call last): File 'TTRC_main.py', line 309, in updater.start() File 'TTRC_main.py', line 36, in start newFileData = bz2.BZ2File('C:

Solution 1:

Could the issue be occuring because of the extra spacein the file mode? -

newFileData = bz2.BZ2File("C:/Program Files (x86)/Toontown Rewritten/temp/phase_7.mf.bz2"," rb").read()

Try this -

newFileData = bz2.BZ2File("C:/Program Files (x86)/Toontown Rewritten/temp/phase_7.mf.bz2","rb").read()

Solution 2:

Solution 3:

  1. Make sure file is bz2 format.
  2. Make sure the read and write actions are the same "r","w" or "rb","wb"
  3. Like Anand said, no space in "rb".

Post a Comment for "Python Bz2 Ioerror: Invalid Data Stream"