kboghe / NordVPN-switcher

Rotate between different NordVPN servers with ease. Works both on Linux and Windows without any required changes to your code!
https://pypi.org/project/nordvpn-switcher/
198 stars 55 forks source link

Can't Get to Work #5

Closed baD714 closed 3 years ago

baD714 commented 3 years ago

Hey im trying to run this on ubuntu and it simply wont work. Installed Nord and it works fine but can't use your script to rotate. Help please thanks

baD714 commented 3 years ago

I get an error saying image

kboghe commented 3 years ago

Hi, thanks for using my package! Everything seems to work fine on my Ubuntu machine (I double-checked it just moments ago). Have you tried running the following command?

sudo pip install --upgrade psutil

If this doesn't work, maybe take a look at the following suggestion at Stackoverflow: https://stackoverflow.com/questions/50132740/importerror-no-module-named-psutil

baD714 commented 3 years ago

pip doesn't work on my machine so I use pip3. Is there a difference? What command do you run to start it up, maybe I'm doing the wrong thing

baD714 commented 3 years ago

Alright I got it to work but now im attempting to initialise it and it wont create me a settings file. Any ideas?

baD714 commented 3 years ago

I'm doing this part image

kboghe commented 3 years ago

I'm afraid it's next to impossible to diagnose the issue without posting your code. Anyway, there are multiple ways of leveraging the initialize function. You can save the settings in the Python environment itself without actually creating a settings file.

For example,

from nordvpn_switcher import initialize_VPN,rotate_VPN,terminate_VPN

settings = initialize_VPN() rotate_VPN(settings) rotate_VPN(settings,google_check=1) terminate_VPN(settings)

from nordvpn_switcher import initialize_VPN,rotate_VPN,terminate_VPN

do this once

initialize_VPN(save=1)

open project on a later date and just use the following two lines of code:

rotate_VPN()

do stuff

terminate_VPN()

kboghe commented 3 years ago

I'm going to close this issue, as it seems that the package is working as intended. If you're having any further questions, please contact me at kboghe@gmail.com. Thanks again for using nordvpn switcher!