red-python-scripts icon indicating copy to clipboard operation
red-python-scripts copied to clipboard

Attribute error

Open NNoGalaxy opened this issue 4 years ago • 1 comments

Traceback (most recent call last): File "e:/uwu/wifi.py", line 4, in command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output = True).stdout.decode() File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\site-packages\run_init_.py", line 145, in new process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell) File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\site-packages\run_init_.py", line 121, in create_process shlex.split(command), File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 310, in split return list(lex) File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 300, in next token = self.get_token() File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 109, in get_token raw = self.read_token() File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 140, in read_token nextchar = self.instream.read(1) AttributeError: 'list' object has no attribute 'read'

Any fixes?

NNoGalaxy avatar Oct 22 '21 11:10 NNoGalaxy

Well normally List methods (if i'm not wrong) don't have the read Attribute so there's the error if you use a debugger or something similar you will probably get more information. Then tell us.

bener07 avatar Nov 15 '21 20:11 bener07