today I downloaded the latest Whonix 18 Gateway CLI build for KVM and noticed an issue during the first-run wizard.
The system itself works fine (Tor service starts and anon-verify -v reports no problems), however the setup-dist wizard fails with the following error:
ModuleNotFoundError: No module named 'anon_connection_wizard'
It looks like the CLI build does not ship the anon-connection-wizard component (which normally belongs to the GUI edition), but setup-dist still tries to import and use it. Because of this, setup-dist cannot complete successfully, even though Tor is running correctly in the background.
anon-connection-wizard (ACW) is planned to be merged with tor-control-panel (TCP). Both are GUI applications. tor-control-panel is also supposed to be standalone, not depending on helper-scripts. Discussion here: Tor controller GUI (tor-control-panel) - #101 by Patrick
ACW and TCP are GUI applications. These are not great to have on CLI builds. Hence, setup-dist should not Depends: on ACW / TCP.
Hence, this feature will be removed in version 18.0.9.4 (and above) and therefore cause no further issues.
Apologies to necro, but as this is the first ddg result when searching for “no module named anon_connection_wizard”, I think the following question may be useful for newbies (like me!) who have no idea what setup-dist does, if it is important that it is failing, and most importantly:
what do I need to do as a user to resolve this and get a working gateway? (if anything)
No problem at all, we actually prefer bumping old threads over creating new ones in most instances.
You shouldn’t need to do anything. The setup-dist CLI was obsolete and has been removed from Whonix 18 entirely. Tor should be functional without you needing to take any further steps, despite the error message.