When developing a managed (namespaced) package in a scratch org we'd also like to install another package to help fully test it's behaviour.
This other package actually requires the one in development and at present it's installation is failing since it thinks its dependency (the package in dev in the scratch org) isn't installed.
I get this issue when installing through CLI and GUI.