Others have said, while in SM, remove weapons computers not cannons themselves. Also any docking modules, docking enhancer blocks are fine to leave, they can be re-linked later.
K10wN:
Once I deleted the weapons, salvage, and missile computers from the ship, the file will open up in SMEdit...