[GH-ISSUE #69] click on whapa-gui.bat #61

Closed
opened 2026-02-25 20:34:34 +03:00 by kerem · 3 comments
Owner

Originally created by @limsifu on GitHub (Oct 16, 2020).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/69

Get Below error after type whapa-gui.py at command Prompt

Traceback (most recent call last):
File "D:\whapa-master\whapa-gui.py", line 1060, in
if sys.platform == "win32" or sys.platform == "win64" or sys.platform == "cygwin":
NameError: name 'sys' is not defined

Originally created by @limsifu on GitHub (Oct 16, 2020). Original GitHub issue: https://github.com/B16f00t/whapa/issues/69 Get Below error after type **whapa-gui.py** at command Prompt Traceback (most recent call last): File "D:\whapa-master\whapa-gui.py", line 1060, in <module> if sys.platform == "win32" or sys.platform == "win64" or sys.platform == "cygwin": NameError: name 'sys' is not defined
kerem closed this issue 2026-02-25 20:34:34 +03:00
Author
Owner

@yilmazca commented on GitHub (Oct 16, 2020):

I solved this problem with this method. Please define OS static value in whapa-gui.py file.

Find
if sys.platform == "win32" or sys.platform == "win64" or sys.platform == "cygwin": system = "Windows" else: system = "Linux"

Change with this
system = "Windows"

Find
system = ""

Change your with OS type
system = "Windows"

and save it Voila!

<!-- gh-comment-id:709890372 --> @yilmazca commented on GitHub (Oct 16, 2020): I solved this problem with this method. Please define OS static value in **whapa-gui.py** file. Find `if sys.platform == "win32" or sys.platform == "win64" or sys.platform == "cygwin": system = "Windows" else: system = "Linux"` Change with this `system = "Windows"` Find `system = ""` Change your with OS type `system = "Windows"` and save it Voila!
Author
Owner

@raghava2030 commented on GitHub (Oct 18, 2020):

i am also facing the same issue, tried defining static OS value as windows but still the same.

<!-- gh-comment-id:711133358 --> @raghava2030 commented on GitHub (Oct 18, 2020): i am also facing the same issue, tried defining static OS value as windows but still the same.
Author
Owner

@limsifu commented on GitHub (Oct 19, 2020):

yilmazca, it work. Thanks.

<!-- gh-comment-id:711459989 --> @limsifu commented on GitHub (Oct 19, 2020): yilmazca, it work. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#61
No description provided.