noip-renew icon indicating copy to clipboard operation
noip-renew copied to clipboard

setup.sh does not function correctly on Debian 10

Open Roomsaver opened this issue 3 years ago • 5 comments

user@domain:~/Documents/noip-renew$ ./setup.sh
No-IP Auto Renewal Script Setup.
1) Install/Repair Script            3) Uninstall Script
2) Update noip.com account details  4) Exit setup.sh
Select an option: 1
  Operating System: Debian GNU/Linux 10 (buster)
Installing necessary packages...
Perform apt-get update? (y/n): y
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package chromium-chromedriver
Reading package lists... Done
Building dependency tree
Reading state information... Done
chromium-driver is already the newest version (90.0.4430.212-1~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cron is already the newest version (3.0pl1-134+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package chromium-browser is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'chromium-browser' has no installation candidate

Editing setup.sh to install chromium instead of chromium-browser seems to fix this issue.

After doing so and running noip-renew-${USERNAME}.sh (${USERNAME} being my username) the following is output:

roomsaver@Roomsaver-Server:~/Documents/noip-renew$ noip-renew-roomsaver.sh
[2021/05/26 19:32:44] - Debug level: 2
[2021/05/26 19:32:44] - Opening https://www.noip.com/login...
[2021/05/26 19:32:47] - Logging in...
[2021/05/26 19:32:47] - Message: element not interactable
  (Session info: headless chrome=90.0.4430.212)

Any help would be appreciated.

Roomsaver avatar May 26 '21 23:05 Roomsaver

same on ubuntu 20.04.2

Rjlintkh avatar Jun 11 '21 13:06 Rjlintkh

sudo nano -c /usr/local/bin/noip-renew.py self.browser.find_element_by_name("Login").click() change by self.browser.find_element_by_class_name(u"nomarg").click()

usermigallon avatar Aug 18 '21 11:08 usermigallon

Same here I've got same error than @Roomsaver

@usermigallon when I apply your modification i've got another error

File "/usr/local/bin/noip-renew.py", line 78 self.browser.find_element_by_class_name(u"nomarg").click() ^ TabError: inconsistent use of tabs and spaces in indentation

fana13 avatar Sep 16 '21 09:09 fana13

In python is very important tabulations when you add a line code, make exactly sames spaces at the beginning line.
https://stackoverflow.com/questions/5685406/inconsistent-use-of-tabs-and-spaces-in-indentation

usermigallon avatar Sep 16 '21 09:09 usermigallon

You're really great, thank you !

fana13 avatar Sep 16 '21 10:09 fana13