Skip to content

AttributeError: 'ParsedHytekFile' object has no attribute 'meet' #3

@supchin

Description

@supchin

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?

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