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/
189 stars 51 forks source link

Error when running app #42

Closed here1234 closed 2 years ago

here1234 commented 2 years ago

python 3.9.11

I want to connect to...


Type 'help' for available options americas

Done!

Traceback (most recent call last): File "C:\Good Stuff\nordvpn_switcher-0.2.9\nordvpn_switcher-0.2.9\nordvpn_switcher\test.py", line 6, in rotate_VPN(instructions) #refer to the instructions variable here File "C:\Program Files\Python39\lib\site-packages\nordvpn_switcher-0.2.9-py3.9.egg\nordvpn_switcher\nordvpn_switch.py", line 457, in rotate_VPN current_ip = new_ip = get_ip() File "C:\Program Files\Python39\lib\site-packages\nordvpn_switcher-0.2.9-py3.9.egg\nordvpn_switcher\nordvpn_switch.py", line 83, in get_ip ip = re.search("IPv4,(.*?),Remaining", ip).group(1) AttributeError: 'NoneType' object has no attribute 'group'

C:\Good Stuff\nordvpn_switcher-0.2.9\nordvpn_switcher-0.2.9\nordvpn_switcher>

SaifMahin22 commented 2 years ago

I am also having the same error while trying to initialize_VPN and also rotate vpn.

kboghe commented 2 years ago

Hi! Isn't this solved by the solution offered in #40 ? I'll fix this asap and update the pip version soon. :)

here1234 commented 2 years ago

Just as a heads up this is still an issue I believe. I tried updating pip and downloading a new master zip. nothing worked.

kboghe commented 2 years ago

Just as a heads up this is still an issue I believe. I tried updating pip and downloading a new master zip. nothing worked.

I just updated the pip version; could you try again? :) Thanks!

here1234 commented 2 years ago

It works now. Thanks.

kboghe commented 2 years ago

Awesome; thanks for checking.