Trying to write a script to connect to an existing Wifi network. OS - Ubuntu 14.04, 64-bit. I do this with the Wifi module:

from wifi import Cell, Scheme cell = list(Cell.all('wlan0'))[0] scheme = Scheme.find('wlan0', 'DIR-320') scheme.activate() 

The scheme contains all the necessary parameters, but the script hangs on the scheme.activate() method. Can anyone know what could be the problem? Are there any other ways to connect to a wifi network using python?

1 answer 1

An alternative to the NetworkManager DBUS interface, just do not use a wrapper - there is a bug, I used direct DBUS calls .

  • In the wrapper, the error was corrected you can use. - JK_Action September