FileNotFoundError: [Errno 2] No such file or directory: '/var/run/wpa_supplicant'

934 Views Asked by At

Could anyone please help with fixing the following import error when running wifiutil_linux.py? Thanks a lot.

    280         ifaces = []
--> 281         for f in sorted(os.listdir(CTRL_IFACE_DIR)):
    282             sock_file = '/'.join([CTRL_IFACE_DIR, f])
    283             mode = os.stat(sock_file).st_mode

FileNotFoundError: [Errno 2] No such file or directory: '/var/run/wpa_supplicant'
0

There are 0 best solutions below