-
Notifications
You must be signed in to change notification settings - Fork 152
Scheme.activate() hangs #65
Comments
I get this as well:
With code: scheme = Scheme.for_cell("wlan0", "name", current_cell, current_settings['password'])
scheme.save()
scheme.activate() The process continues to hang. If I run
Noticeably, there is an error there that I will investigate further: |
I've resolved this by stopping Network Manager from managing the To do this I updated
And then restarted Network Manager with:
Not sure if there are any ramifications of this yet. There doesn't seem to be a way of disconnecting from a wireless network on the Python API yet, if I Thanks |
Hi balone1988, Thank you for looking into this. Having both network manager and wifi You are right that currently there is no way to disconnect from python. -rocky
|
Hi Rocky, I've just tested deleting the config using Once this has happened, it's hard to disconnect as I'll look forward to a Thanks! |
@balone1988, do you want to test the disconnect command from #58? It doesn't seem to work on my computer, but maybe it does on yours. |
@rockymeza I am still facing issues with the scheme.activate() hanging up. I followed @balone1988 's method but to no effect. I am currently on Ubuntu 14.04 and using python 2.7. Could you kindly point me towards any possible solution? For your reference, Upon pressing Ctrl+C I get the following message: line 41, in |
can you do the following: >>> print ' '.join(['/sbin/ifup'] + scheme.as_args()) and then run what it prints in a shell to see the output? |
I am having the same issue as jainakshay91 copy and pasting the return into the shell without clearing out /etc/networking/interfaces file i get this: If I clear out all the appendments from /etc/networking/interfaces then I get this as the return: wlo1 is my wireless interface I am not sure if it should be formatting it into the network name like this wlo1=wlo1-globalmanufacturing guest just because I would expect the proper formatting to be wlo1=globlamanufacturing\ guest am I making incorrect assumptions? I have kinda hit my a wall in troubleshooting it so if you have any ideas please let me know and I will poke and prod at it some more to see if I can get it working proper. |
here is my current attempt at getting things to work `###Imports### ###Global Declarations### ###uses wifi library to sniff all of the available Wifi networks in range and connect to a selected network### print"\n-------AVAILABLE NETWROKS-------\n\n#: \tName:\n" for index, elem in enumerate(cells): NetNum = input("\nPlease enter the number of the network you would like to connect to. \nNetwork Number: ") NetName = str(cells[NetNum])[10:-1] NetPass = getpass.getpass('\nPlease enter the passphrase for this network.\nPassphrase: ') NetSelect = Cell.all(interface)[NetNum] I am runnign Kubuntu 16.04 |
Whenever I run scheme.activate() it never completes. The program will just hang with no output and I don't connect to the wifi network. I tried with several different schemes (with and wtihout passkeys) and was unable to figure this out.
The text was updated successfully, but these errors were encountered: