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. 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

10 months 3 weeks 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Possible memory leak in file dlms.c, getCompactArrayItem(), getCompactArrayItem2()
  • Official Gurux.DLMS.Client.Example.Net fails during High GMAC secure association (Invalid PDU), while Gurux Director connects successfully
  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin