Python Forum
Error -3 when opening matlab file in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error -3 when opening matlab file in python
#1
I am using the method below to open matlab files but for some files, I am getting different versions of error -3

mat = sio.loadmat(i, verify_compressed_data_integrity=False)
Error

mio5_utils.pyx in scipy.io.matlab.mio5_utils.VarReader5.array_from_header()

mio5_utils.pyx in scipy.io.matlab.mio5_utils.VarReader5.array_from_header()

mio5_utils.pyx in scipy.io.matlab.mio5_utils.VarReader5.read_real_complex()

mio5_utils.pyx in scipy.io.matlab.mio5_utils.VarReader5.read_numeric()

mio5_utils.pyx in scipy.io.matlab.mio5_utils.VarReader5.read_element()

streams.pyx in scipy.io.matlab.streams.ZlibInputStream.read_string()

streams.pyx in scipy.io.matlab.streams.ZlibInputStream.read_into()

streams.pyx in scipy.io.matlab.streams.ZlibInputStream._fill_buffer()

error: Error -3 while decompressing data: invalid stored block lengths


It seems to point to an issue with Zlib. How do I solve this? thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is IDLE not opening on a MacOS Montery 12.6 and using Python 3.10.7? Merlin385 7 1,675 Oct-08-2022, 08:36 PM
Last Post: Merlin385
  Opening CMD from Python Oshadha 2 1,272 Jul-17-2022, 11:22 PM
Last Post: Skaperen
Question Opening small size browser with python selenium not work, need help greenpine 0 1,613 Feb-07-2022, 11:36 AM
Last Post: greenpine
  Facing Problem while opening a file through command prompt vlearner 4 1,901 Jan-30-2022, 08:10 AM
Last Post: snippsat
  python keeps opening script directory Tyrel 5 2,996 Aug-06-2021, 10:43 PM
Last Post: snippsat
  Python OpenCV window not opening in fullscreen mode Zman350x 0 3,292 Apr-29-2021, 07:54 PM
Last Post: Zman350x
  Subprocesses not opening File Select Dialog teut 2 2,398 Feb-22-2021, 08:07 PM
Last Post: teut
  Skeleton file export error Python Code pepapoha 4 3,481 Nov-17-2020, 02:06 AM
Last Post: pepapoha
Photo Matlab to Python Sateesh 0 1,673 Nov-04-2020, 09:11 AM
Last Post: Sateesh
  From Matlab to Python erbab 1 2,000 Oct-27-2020, 02:16 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020