I already looked at some discussions about this in the forum but still can’t find a solution. Although I looked at the file in the text editor at the mentioned line,
This is how it looks, erasing the ‘HEAD’ also doesn’t work.
I updated its version from 7.0 to 8.0, but it still shows the same error.
Kindly give me suggestions and help me overcome this!
Why does the kicad Pcbnew file show expecting ‘(’ in line 1971, offset 1?
Because that’s exactly what happens: The file loading function of Kicad expects to find a ‘(’ character as next valid character, instead it reads the ‘<<<’ characters in line 1971.
This is unexpected, so the file is most probably corrupted. The loading of the file is aborted.
erasing the ‘HEAD’ also doesn’t work
You have probably to erase all characters from lines 1971+1972, until the next valid ‘(’ character. As we don’t know how this file corruption happened there is no guarantee that this will really help. There might be other corruptions in the file as well.
Thank you @mf_ibfeew I’ve now found out that the ‘<<<<’ like unwanted commands exist in between several code lines of the pcbnew file. I’ve removed it, now I can open the file.