Skip to main content
Home
for DLMS smart meters

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

2 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

  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193
  • Thu, 11/13/2025 - 15:23
    Gurux.DLMS.Python 1.0.192
  • Thu, 11/13/2025 - 14:55
    gurux.dlms.java 4.0.84
  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901

New forum topics

  • Incomplete Firmware Upgrade Process
  • SNRM byte mening
  • P384 Client Certificate incorrect issuer CN
  • Confirmed push service support
  • DLMS Stack hang during Firmware Upgrade
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin