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

2 months 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

2 months 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

2 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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 05/20/2025 - 08:40
    gurux.dlms.c 9.0.2505.2001
  • Mon, 05/19/2025 - 10:19
    gurux.net.java 1.0.30
  • Mon, 05/19/2025 - 10:00
    gurux.dlms.c 9.0.2505.1901
  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401

New forum topics

  • HDLC Adress resolver configuration
  • Reading all "Data" object type parameter together
  • com_read getting failed for billing profile and instantaneous profile
  • Simulator connection closed
  • Regarding the dlms android project
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin