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

No module named 'importlib.resources' #29

Closed issoai closed 3 years ago

issoai commented 3 years ago

I'm trying to run on linux with Google Cloud and when i try to execute the script raise this error:

File "new.py", line 2, in from nordvpn_switcher import initialize_VPN,rotate_VPN File "/home/john/.local/lib/python3.5/site-packages/nordvpn_switcher/init.py", line 1, in from .nordvpn_switch import initialize_VPN,rotate_VPN,terminate_VPN File "/home/john/.local/lib/python3.5/site-packages/nordvpn_switcher/nordvpn_switch.py", line 16, in import importlib.resources as pkg_resources ImportError: No module named 'importlib.resources'

kboghe commented 3 years ago

Hmm, I've never heard of anyone encountering this error. It seems as if a standard library hasn't been installed for some reason. Have you tried running pip install importlib-resources ?

(And thanks for using nordvpn switcher!)

issoai commented 3 years ago

Solved, the problem was the python old 3.5 version. using now 3.9 working.