davidbombal / red-python-scripts

MIT License
2.04k stars 1.59k forks source link

Attribute error #28

Open NNoGalaxy opened 3 years ago

NNoGalaxy commented 3 years ago

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?

bener07 commented 2 years ago

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.