Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

Windows compatibility tracking issue

Open NSK-394 opened this issue 3 months ago • 0 comments

Following up from Slack — filing this tracking issue as requested, before proceeding with any code changes.

Nettacker currently cannot run on Windows at all. Four confirmed blockers (building on the never-merged PR #1151, plus one newly discovered this session):

  1. uvloop is imported and wired up unconditionally in nettacker/core/lib/http.py, but has no Windows support at all -- import fails immediately, and pyproject.toml has no platform marker, so even the install step fails on Windows.
  2. os.geteuid() is POSIX-only, called unconditionally in nettacker/core/app.py to gate --ping-before-scan -- crashes on Windows.
  3. sys.platform allow-list in Nettacker.check_dependencies() (nettacker/core/app.py) explicitly excludes "win32", so the app refuses to start on Windows even once the above are fixed.
  4. Hardcoded POSIX path-string splitting (.split("/")) in several files breaks on Windows, where paths use backslash separators.

PR #1151 already solved items 2-4 for the code as it existed ~4.5 months ago; most of those fixes reapply directly or with minor adjustment to current master. Plan is to extend/reapply that work, verify each fix on my actual Windows machine (not just claim it works), and submit as a fresh PR referencing this issue.

Note: a signal.alarm() Windows issue was initially suspected but ruled out -- no signal module usage exists anywhere in current master, #1151, or any dependency.

Also note: nettacker/api/engine.py has a related-looking but distinct, pre-existing bug in get_results_json/get_results_csv (lines ~508/534) that already has its own open issue (#1584) with an active multi-contributor claim thread -- deliberately leaving that untouched here and handling it separately.

Will update this issue as work progresses. @securestep9 can u assign this to me

NSK-394 avatar Aug 27 '26 10:08 NSK-394