You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more
For an ebike with hub motor
Axle is 12mm and the cable protrudes from the drive side
Drill through a normal socket driven one with spanner flats?
Can you remove the bit I've highlighted in red?

There's a flat in it that might allow it to be knocked round and unscrewed. It looks like that would allow the axle to be removed completely.
Get a mate with a lathe to turn your existing tool down a bit on the inside?
Is the cable hard wired to the bike?
Is the problem fitting over the cable (slot the tool if the cassette is not mega tight), or clearance between the axle lock nut and the cassette lock ring?
Sometimes you need to bore out a tool in a lathe to clear.
The thin walled ParkTool with the long handle should work too? FR-5.2H?
something like this i think is the intended tool.
^ ah gotcha. Missed the slot requirement.
Cheers all, solved on the duplicate thread by a mate with a lathe. Bored out the socket tool to 15mm
A bit late to this one, but I was fitting a new cassette to an e-bike for someone recently and he’d contacted the company who he bought the bike from as he was struggling to access the lock ring, for the reasons above. They sent him a special tool to do it, which turned out to be a normal cassette removal tool cut in half down the centre. You then just stuck both halves in place and it worked perfectly.
That would still need a bigger bore than mine had initially though