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. AttributeError: 'GXXmlWriter' Object Has No Attribute 'WriteEndElement'

AttributeError: 'GXXmlWriter' object has no attribute 'WriteEndElement'

By sgbubble, 18 March, 2025
Forums
Gurux.DLMS

Hi,

I'm starting by reading the object list from meter and then saving it in a file, but the saving process is giving me the following error:

File "\AppData\Local\Programs\Python\Python39\lib\site-packages\gurux_dlms\objects\GXDLMSObjectCollection.py", line 253, in save
it.save(writer)
File "\AppData\Local\Programs\Python\Python39\lib\site-packages\gurux_dlms\objects\GXDLMSFunctionControl.py", line 381, in save
writer.WriteEndElement() # Activations
AttributeError: 'GXXmlWriter' object has no attribute 'WriteEndElement'

I have successfully save the object's list when there is no function control object so I think it is related to that module. Any ideas?

Thank you in advance.

Profile picture for user Kurumi

Kurumi

10 months 1 week ago

Hi, Thank you for pointing…

Hi,

Thank you for pointing this out. This is fixed to version version 1.0.175.

BR,
Mikko

sgbubble

10 months 1 week ago

Thank you for your quick…

Thank you for your quick response. Related to Function Control, I have also detected that in GXDLMSConverter.py module methods objectTypeToString() and valueOfObjectType() Function control is missing.

Thanks

Profile picture for user Kurumi

Kurumi

10 months ago

Hi, Thank you for pointing…

Hi,

Thank you for pointing this out. This is fixed to version version 1.0.176.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5
  • Mon, 12/15/2025 - 08:11
    Gurux.DLMS.Net 4.0.87
  • Fri, 12/12/2025 - 08:38
    Gurux.DLMS.Python 1.0.195

New forum topics

  • Generic Profile- gxGet with selector=2: different behaviour on cpp and cimplementation
  • DLMS Client–Server Communication Over GPRS Fails With Dynamic IP
  • Pre-established connection questions
  • writing Error "Service not allowed"
  • High GMAC meters can’t authenticate – can’t read invocation counter
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin