wifi-deauth icon indicating copy to clipboard operation
wifi-deauth copied to clipboard

Error "platform" not defined

Open fildotflac opened this issue 1 year ago • 1 comments

Traceback (most recent call last): File "/usr/bin/wifi-deauth", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/python3.12/site-packages/wifi_deauth/wifi_deauth.py", line 392, in main if "linux" not in platform: ^^^^^^^^ NameError: name 'platform' is not defined. Did you forget to import 'platform'?

fildotflac avatar Oct 18 '24 08:10 fildotflac

I'm not sure why it says not defined, but platform might be ambiguous in this context... as it's a variable defines by sys rather than a library anyhow, while I couldn't reproduce this, I believe you'd want to give this a try: https://github.com/flashnuke/wifi-deauth/pull/21

simply pull latest and try again

also, have you run the code directly (python3 ....) or did you first install (pip3 install ...)?

flashnuke avatar Oct 18 '24 11:10 flashnuke