Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Node
  3. Broken Gurux.DLMS.Client.Example.python

Broken Gurux.DLMS.Client.Example.python

By Gabriel Lira , 12 September, 2025
Forums
Gurux.DLMS

Some hours ago 1.0.190 version of Python lib was released. In coincidence, I tried to execute the example on it for the first time (following this post: https://www.gurux.fi/node/13678), but the example is returning errors and not executing.

As I check, the errors are in code places that was added or changed from 1.0.189 to 1.0.190. So, how this appears to be a bug in v1.0.190 I'm creating this post to notify.

Below the traceback:

```
Traceback (most recent call last):
File "C:\censored\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\main.py", line 37, in <module>
import gurux_dlms
File "C:\censored\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\__init__.py", line 41, in <module>
from ._GXAPDU import _GXAPDU
File "C:\censored\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 43, in <module>
from .TranslatorSimpleTags import TranslatorSimpleTags
File "C:\censored\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\TranslatorSimpleTags.py", line 3, in <module>
from .TranslatorGeneralTags import TranslatorGeneralTags
File "C:\censored\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\TranslatorGeneralTags.py", line 37, in <module>
class TranslatorGeneralTags(GXIntEnum):
File "C:\censored\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\TranslatorGeneralTags.py", line 66, in TranslatorGeneralTags
RESPONDING_AE_INVOCATION_ID = 0xAD
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\censored\AppData\Local\Programs\Python\Python311\Lib\enum.py", line 405, in __setitem__
raise TypeError('%r already defined as %r' % (key, self[key]))
TypeError: 'RESPONDING_AE_INVOCATION_ID' already defined as 167
```

Profile picture for user Kurumi

Kurumi

1 year ago

Hi Gabriel Lira, Thank you…

Hi Gabriel Lira,

Thank you for pointing this out. This is now fixed to version 1.0.191, and your name is added to the credits.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin