-
Notifications
You must be signed in to change notification settings - Fork 8
AttributeError: 'ParsedHytekFile' object has no attribute 'meet' #3
Copy link
Copy link
Closed
Description
meet.zip
Hi, the hy3 file is attached. This is the code I am running.
import attrs
import hytek_parser
import pprint
input_file = r'.\h3file\meet.hy3'
results = hytek_parser.parse_hy3(input_file)
d = attrs.asdict(results)
pprint.pprint(d)
When I run this, I get the following error:
Traceback (most recent call last): File "c:\Users\xyz\OneDrive\Project\hytekparser.py", line 9, in <module> d = attrs.asdict(results) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xyz\OneDrive\Project\.venv\Lib\site-packages\attr\_next_gen.py", line 198, in asdict return _asdict( ^^^^^^^^ File "C:\Users\xyz\OneDrive\Project\.venv\Lib\site-packages\attr\_funcs.py", line 57, in asdict v = getattr(inst, a.name) ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ParsedHytekFile' object has no attribute 'meet'
I am assuming it's because the file doesn't have an attribute 'meet', how do I get around this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels