Skip to content

NameError: name 'Style' is not defined #22

@Ferki-git-creator

Description

@Ferki-git-creator

denis@dev:$ cd Wifi-Brute
denis@dev:/Wifi-Brute$ python3 wifi-brute.py --help
Collecting pywifi
Downloading pywifi-1.1.12-py3-none-any.whl.metadata (2.7 kB)
Downloading pywifi-1.1.12-py3-none-any.whl (15 kB)
Installing collected packages: pywifi
Successfully installed pywifi-1.1.12
Collecting colorama
Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: colorama
Successfully installed colorama-0.4.6
Traceback (most recent call last):
File "/data/data/com.termux/files/home/Wifi-Brute/wifi-brute.py", line 9, in
from scripts.banner import banner2,banner,clear
File "/data/data/com.termux/files/home/Wifi-Brute/scripts/banner.py", line 3, in
from scripts import colors
File "/data/data/com.termux/files/home/Wifi-Brute/scripts/colors.py", line 10, in
all_col= [Style.BRIGHT+Fore.RED,Style.BRIGHT+Fore.CYAN,Style.BRIGHT+Fore.LIGHTCYAN_EX, Style.BRIGHT+Fore.LIGHTBLUE_EX, Style.BRIGHT+Fore.LIGHTCYAN_EX,Style.BRIGHT+Fore.LIGHTMAGENTA_EX,Style.BRIGHT+Fore.LIGHTYELLOW_EX]
^^^^^
NameError: name 'Style' is not defined. Did you mean: 'type'?
denis@dev:~/Wifi-Brute$

In scripts/colors.py add at the beginning of the file: "from colorama import Fore, Style"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions