Whats wrong with my .xml file?

More
4 years 10 months ago #229961 by Andreas_Rackow
in pncconf the 5i25 shows up only as 5i25-Internal Data.No problem, there is a thread about this issue and I followed the instruction there. Then I copied all .xml files from the firmware folder provided from Mesanet and all was well.Really a lot of firmware to chose from. Next step was running mesaflash --device 5i25 --readhmid --xml and copying the output into a file and then load it to lib/firmware/hm2/5i25.Since then, pncconf gives me an error message like this when I try to pick a firmware;.raceback (most recent call last):  File "/usr/bin/pncconf", line 2027, in on_mesa_boardname_changed    self.fill_firmware(boardnum)  File "/usr/bin/pncconf", line 2045, in fill_firmware    if not d[self._p._BOARDTITLE] == title:continueTypeError: 'NoneType' object has no attribute '__getitem__'no idea what that means,but I think my .xml file is somewhat wrong can somebody help me?BTW.merry Christmas 
edit I changed the xml file

Please Log in to join the conversation.

More
4 years 9 months ago #230755 by andypugh
At a guess it might not be finding the file where it expects to find it:

github.com/LinuxCNC/linuxcnc/blob/2.8/sr...onf/pncconf.py#L2038

The error message hints that "d" is empty at that point.

What version of LinuxCNC are you using? the line referenced is not 2045 in either master or 2.8.

Please Log in to join the conversation.

More
4 years 9 months ago #230796 by Andreas_Rackow
I am running 2.8.2

Please Log in to join the conversation.

More
4 years 9 months ago #230804 by andypugh

I am running 2.8.2
OK, I fired up 2.8.2 and tried to use your xml file. 

The problem is that the xml contains a number of empty "secondaryfunctionname" tags, like
Code:
<secondaryfunctionname></secondaryfunctionname>

If you do a find and replace to 
Code:
<secondaryfunctionname>0</secondaryfunctionname>

Then it seems to work. 

Please Log in to join the conversation.

More
4 years 9 months ago #230828 by Andreas_Rackow
Ok, that sounds like a hint.
I try that.

Please Log in to join the conversation.

More
4 years 9 months ago #230892 by Andreas_Rackow
Problem solved. This thread did for me.
forum.linuxcnc.org/39-pncconf/39650-mesa...patible-with-pncconf

thank you

Please Log in to join the conversation.

Time to create page: 0.123 seconds
Powered by Kunena Forum