Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting this error after installing all modules, should I just remove all console color shi? #2

Open
brimmlessyankee opened this issue Jul 1, 2023 · 1 comment

Comments

@brimmlessyankee
Copy link

Traceback (most recent call last):
File "C:\Users\djurb\Desktop\Programming\Spotify-Account-Generator-main\main.py", line 33, in
red = fg(1)
File "C:\Python310\lib\site-packages\colored\colored.py", line 276, in fg
return Colored(name).foreground()
File "C:\Python310\lib\site-packages\colored\colored.py", line 48, in init
self.enable_windows_terminal_mode()
File "C:\Python310\lib\site-packages\colored\colored.py", line 145, in enable_windows_terminal_mode
ok = windll.kernel32.SetsConsoleMode(wintypes.HANDLE(hStdout), mode)
File "C:\Python310\lib\ctypes_init_.py", line 387, in getattr
func = self.getitem(name)
File "C:\Python310\lib\ctypes_init_.py", line 392, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'SetsConsoleMode' not found. Did you mean: 'GetConsoleMode'?

@H4cK3dR4Du
Copy link
Owner

Yeah Bro, this is common error. To fix that i give you an example:

red = fg(1)
purple = fg(5)
reset = fg(7)


red = ""
purple = ""
reset = ""

Replace all color variables (fg) with ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants