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

Attribute error #28

Open
NNoGalaxy opened this issue Oct 22, 2021 · 1 comment
Open

Attribute error #28

NNoGalaxy opened this issue Oct 22, 2021 · 1 comment

Comments

@NNoGalaxy
Copy link

NNoGalaxy commented Oct 22, 2021

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
Copy link

bener07 commented Nov 15, 2021

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.

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