Apparently 1/u.nanometers is a quantity rather than a unit, so the command:

implicitSolventKappa = implicitSolventKappa.value_in_unit(1/units.nanometers)

will always fail. The only solution I've found is to take the unit of the
quantity. i.e.:

implicitSolventKappa = implicitSolventKappa.value_in_unit((1/units.nanometers).unit)