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

TypeError: field() got an unexpected keyword argument 'kw_only' #170

Open
julio8a opened this issue Dec 6, 2024 · 0 comments
Open

TypeError: field() got an unexpected keyword argument 'kw_only' #170

julio8a opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@julio8a
Copy link

julio8a commented Dec 6, 2024

Describe the bug
Type error when running python3 ankerctl.py config import

To Reproduce
On MacOS after installing all the modules, then running python3 ankerctl.py config import

Expected behavior
Successful output when importing the Config

Screenshots

/Users/jochoa/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Traceback (most recent call last):
  File "/Users/jochoa/Github/ankermake-m5-protocol/ankerctl.py", line 14, in <module>
    import cli.mqtt
  File "/Users/jochoa/Github/ankermake-m5-protocol/cli/mqtt.py", line 7, in <module>
    from libflagship.mqttapi import AnkerMQTTBaseClient
  File "/Users/jochoa/Github/ankermake-m5-protocol/libflagship/mqttapi.py", line 9, in <module>
    from libflagship.mqtt import MqttMsg, MqttPktType
  File "/Users/jochoa/Github/ankermake-m5-protocol/libflagship/mqtt.py", line 80, in <module>
    class _MqttMsg:
  File "/Users/jochoa/Github/ankermake-m5-protocol/libflagship/mqtt.py", line 81, in _MqttMsg
    signature  : bytes = field(repr=False, kw_only=True, default=b'MA') # Signature: 'MA'
TypeError: field() got an unexpected keyword argument 'kw_only'

Desktop (please complete the following information):

  • OS: MacOS Sonoma 14.7.1
  • Browser N/A
  • Version N/A
@julio8a julio8a added the bug Something isn't working label Dec 6, 2024
@julio8a julio8a changed the title [BUG] TypeError: field() got an unexpected keyword argument 'kw_only' Dec 6, 2024
@julio8a julio8a changed the title TypeError: field() got an unexpected keyword argument 'kw_only' [BUG] TypeError: field() got an unexpected keyword argument 'kw_only' Dec 6, 2024
@julio8a julio8a changed the title [BUG] TypeError: field() got an unexpected keyword argument 'kw_only' TypeError: field() got an unexpected keyword argument 'kw_only' Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant