You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for developing this well-done tool for parsing stdf.
It's really a great experience to use it to solve my problem.
However, there are some issues, some of ATE platforms(machines) produce the result which cannot be parsed by this tool.
The error message shows here, please help us to find way out, thank you.
message1
Traceback (most recent call last):
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\Test.py", line 76, in
process_file(sys.argv[1:])
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\Test.py", line 65, in process_file
p.parse()
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 183, in parse
self.parse_records(count)
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 162, in parse_records
fields = recParser(self, header, [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 36, in newRecordParser
fields.append(action(*args))
^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 195, in
return lambda self, header, fields: parseFn(header, fieldType)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 231, in
"Vn": lambda header, fmt: self.readVn(header)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 115, in readVn
vn.append(self.vnMapfldtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 239, in
0: lambda header: self.inp.read(header, 1),
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: GzipFile.read() takes from 1 to 2 positional arguments but 3 were given
massage 2
raceback (most recent call last):
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\test.py", line 77, in
process_file(sys.argv[1:])
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\test.py", line 70, in process_file
p.parse()
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 183, in parse
self.parse_records(count)
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 162, in parse_records
fields = recParser(self, header, [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 34, in newRecordParser
fields = fn(*args)
^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 34, in newRecordParser
fields = fn(*args)
^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 34, in newRecordParser
fields = fn(*args)
^^^^^^^^^
[Previous line repeated 3 more times]
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 36, in newRecordParser
fields.append(action(*args))
^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 195, in
return lambda self, header, fields: parseFn(header, fieldType)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 228, in
"Cn": lambda header, fmt: self.readCn(header),
^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 90, in readCn
return val.decode("ascii")
^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
The first error looks like a bug that's easy enough to fix, I can propose a PR but it'd be great if you could try the branch out and confirm the fix. I no longer work in the semicon industry and don't have access to a test floor with ATEs anymore :)
The second is a string codec problem. Do you know what encoding is being used here? Is it UTF-8 or something else? Today it's pretty much a given that everything uses UTF-8 but STDF is an older format from a time when encodings were more localized. Would it be useful to make the codec a reader parameter?
Hi, Team
Thank you for developing this well-done tool for parsing stdf.
It's really a great experience to use it to solve my problem.
However, there are some issues, some of ATE platforms(machines) produce the result which cannot be parsed by this tool.
The error message shows here, please help us to find way out, thank you.
message1
Traceback (most recent call last):
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\Test.py", line 76, in
process_file(sys.argv[1:])
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\Test.py", line 65, in process_file
p.parse()
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 183, in parse
self.parse_records(count)
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 162, in parse_records
fields = recParser(self, header, [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 36, in newRecordParser
fields.append(action(*args))
^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 195, in
return lambda self, header, fields: parseFn(header, fieldType)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 231, in
"Vn": lambda header, fmt: self.readVn(header)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 115, in readVn
vn.append(self.vnMapfldtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 239, in
0: lambda header: self.inp.read(header, 1),
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: GzipFile.read() takes from 1 to 2 positional arguments but 3 were given
massage 2
raceback (most recent call last):
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\test.py", line 77, in
process_file(sys.argv[1:])
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\test.py", line 70, in process_file
p.parse()
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 183, in parse
self.parse_records(count)
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 162, in parse_records
fields = recParser(self, header, [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 34, in newRecordParser
fields = fn(*args)
^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 34, in newRecordParser
fields = fn(*args)
^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 34, in newRecordParser
fields = fn(*args)
^^^^^^^^^
[Previous line repeated 3 more times]
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 36, in newRecordParser
fields.append(action(*args))
^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 195, in
return lambda self, header, fields: parseFn(header, fieldType)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 228, in
"Cn": lambda header, fmt: self.readCn(header),
^^^^^^^^^^^^^^^^^^^
File "C:\Users\A701763\Desktop\Pystdf1\pystdf-master\pystdf\IO.py", line 90, in readCn
return val.decode("ascii")
^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)
The text was updated successfully, but these errors were encountered: