Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WrapperHeader is not defined #98

Open
telemetrix opened this issue Jul 5, 2024 · 1 comment
Open

WrapperHeader is not defined #98

telemetrix opened this issue Jul 5, 2024 · 1 comment

Comments

@telemetrix
Copy link

telemetrix commented Jul 5, 2024

Pycharm, python 3.12, getting an error with WrapperHeader class.

Traceback (most recent call last):

header = WrapperHeader(
         ^^^^^^^^^^^^^

NameError: name 'WrapperHeader' is not defined

@telemetrix
Copy link
Author

I found an issue in the newest version of the library; there is a lack of WrapperHeader declaration in the io.py file.
It can be resolved in the best way like this:

from dlms_cosem.protocol.wrappers import WrapperHeader, WrapperProtocolDataUnit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant