Hello, please help me,
When I try to load my collectionObject file using the method, GXDLMSObjectCollection.load from the gurux library for python, I get the error: can only concatenate str (not "GXDLMSData") to str.
The file is saved in .xml format and the structure seems correct. Below is an extract from my code:
reader.initializeConnection()
path = Path(os.getcwd())
path = path.joinpath("devices.xml")
print(path.absolute())
try:
t = GXDLMSObjectCollection.load(file_=path.absolute())
except Exception as ex:
print(ex)
Thanks in advance for your help
Hi, Can you share this…
Hi,
Can you share this devices.xml so I can check what might cause this?
BR,
Mikko
Hello, Thank you in advance…
Hello,
Thank you in advance for your help,
because I can't upload the file directly here,
Below is the link to the devices.xml file
https://drive.google.com/file/d/1dosWxRyOquaVCh7LeVIAvr1xTUKurFpB/view?…
Thank you
Hi, This was tested and it's…
Hi,
This was tested and it's working without problems. It's tested with Linux using Python 3.11.2 and in Windows 3.11.6.
What version you are using and in what environment?
BR,
Mikko