X Tutup
Skip to content

feat: Add Windows platform support #1372

@Angelmendiratta

Description

@Angelmendiratta

Description

Currently, Nettacker does not support Windows. When running on Windows,
the tool immediately exits with an error:
"Unfortunately, this version of the software can only run on Linux/darwin"

Root Cause

Two issues prevent Windows support:

  1. uvloop is a hard dependency in core/lib/http.py but it is a Linux/Mac only package
  2. win32 and cygwin are not in the allowed platforms list in core/app.py
  3. os.geteuid() is called directly which does not exist on Windows

Proposed Fix

  • Make uvloop import optional with a try/except fallback
  • Add win32 and cygwin to supported platforms
  • Use hasattr(os, 'geteuid') before calling os.geteuid()

Environment

  • OS: Windows 11
  • Python: 3.13.5
  • Nettacker version: 0.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup