Skip to content

IndexError: index out of range in STDF.records_from_file #55

Description

@Freeman266

Tasks/Steps/Elements

Need your help on this index out of range. Below is the error

Traceback (most recent call last):

File "C:\Users\user\stdf\stdrreader.py", line 10, in
for REC in STDF.records_from_file("stdf.std"):

File "C:\Users\user\Anaconda3\lib\site-packages\semi_ate_stdf-0.0.0-py3.8.egg\Semi_ATE\STDF\utils.py", line 810, in next
return create_record_object(self.version, self.endian, (REC_TYP, REC_SUB), header+footer)

File "C:\Users\user\Anaconda3\lib\site-packages\semi_ate_stdf-0.0.0-py3.8.egg\Semi_ATE\STDF\utils.py", line 861, in create_record_object
retval = create_record(Version, Endian, REC_ID, REC)

File "C:\Users\user\Anaconda3\lib\site-packages\semi_ate_stdf-0.0.0-py3.8.egg\Semi_ATE\STDF\utils.py", line 885, in create_record
retval = GDR(Version, Endian, REC)

File "C:\Users\user\Anaconda3\lib\site-packages\semi_ate_stdf-0.0.0-py3.8.egg\Semi_ATE\STDF\GDR.py", line 35, in init
self._default_init(endian, record)

File "C:\Users\user\Anaconda3\lib\site-packages\semi_ate_stdf-0.0.0-py3.8.egg\Semi_ATE\STDF\STDR.py", line 265, in _default_init
self._unpack(record)

File "C:\Users\user\Anaconda3\lib\site-packages\semi_ate_stdf-0.0.0-py3.8.egg\Semi_ATE\STDF\STDR.py", line 1798, in _unpack
self._unpack_item(items[index])

File "C:\Users\user\Anaconda3\lib\site-packages\semi_ate_stdf-0.0.0-py3.8.egg\Semi_ATE\STDF\STDR.py", line 1508, in _unpack_item
code = self.buffer[0]

IndexError: index out of range

Versions checklist

  • Spyder version: >= 4.2.5
  • Python version: 3.8.8
  • Qt version: all
  • PyQt version: all
  • Operating System name/version:
    • client : Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions