-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix obvious errors when NetworkManager is missing #547
Conversation
Thanks for the PR. Are you trying to use the client without NetworkManager or just looking to improve the error handling when it is not available? Currently client cannot work without it but it does make sense to add extra error checking when NetworkManager is not available. Note that for the error you're getting right now you might need to check if NetworkManager is available by adding an if statement here: https://github.com/eduvpn/python-eduvpn-client/blob/master/eduvpn/cli.py#L655 Would you like to add that check? |
basically, it would be nice to be able to generate plaintext configs without NM. (so that's the end goal, but this fixes just the stuff that directly crashes) |
@@ -19,18 +19,16 @@ | |||
from eduvpn.utils import run_in_glib_thread | |||
from eduvpn.variants import ApplicationVariant | |||
|
|||
gi.require_version("NM", "1.0") # noqa: E402 | |||
from gi.repository import GLib # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably something like gi.require_version("GLib", "2.0")
or such should also be inserted here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whatever works is fine by me :)
I agree that this is useful especially for the CLI, maybe not so much for the GUI? |
Also if you're right now looking to have a very basic eduVPN cli, you may also use https://github.com/eduvpn/eduvpn-common/blob/main/cmd/cli/main.go |
I made some tiny changes to fix #434, can you rebase if you're still working on this? |
@jwijenbergh if I understand correctly the changes will only skip the tests for NM? But how will it be possible with eduvpn-cli to connect without NM? Could you provide a step by step procedure? Thanks PS: I installed 4.2 but with existing configurations it complains about network manager - not sure if the present fix was merged in another way
|
Hi, I think the goal is that it will save the WireGuard/OpenVPN configuration somewhere so that you can manually configure the VPN using wg-quick or the OpenVPN cli. This pr would then make the tool at least run without have the NM tools installed (so that the next step is saving the VPN config somewhere) |
How does one use that? |
Sorry didn't see this. See the help:
For the URLs, see https://disco.eduvpn.org/v2/ Note that it outputs the OpenVPN/WireGuard config to the terminal output. |
hmmm it's weird...
|
Could you try the latest stable release? |
stable release works. |
Thanks I am aware of the dev issue. Will sort that before the new stable release |
Hi, do you still need this @fogti. I think I want to implement non-networkmanager support by adding a flag to dump the config file instead. |
as long as that part works without having network manager installed, I'm fine with it. |
Thanks, is it okay if I close this and work on this later? |
this fixes all the "startup time" errors encountered when trying to use this without NetworkManager
it doesn't really work yet tho, e.g.: