Python: wifi subprocess.CalledProcessError: Command '['/sbin/ifdown', 'wlp4s0']' returned non-zero exit status 1
问题 I am working on a python script to automatically connect to a known Wifi. I am using the following library https://wifi.readthedocs.io/en/latest/ which seems to work very well. The only problem is that when a try to connect to a chosen Wifi through the scheme.activate() command, it returns the following error: Traceback (most recent call last): File "wifi_connection.py", line 100, in <module> print Connect('dotbot', 'pass') File "wifi_connection.py", line 64, in Connect savedcell.activate()