Skip to content
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

setup.sh does not function correctly on Debian 10 #76

Open
Roomsaver opened this issue May 26, 2021 · 5 comments
Open

setup.sh does not function correctly on Debian 10 #76

Roomsaver opened this issue May 26, 2021 · 5 comments

Comments

@Roomsaver
Copy link

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.

@Rjlintkh
Copy link

Rjlintkh commented Jun 11, 2021

same on ubuntu 20.04.2

@usermigallon
Copy link

usermigallon commented Aug 18, 2021

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()

@fana13
Copy link

fana13 commented Sep 16, 2021

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

@usermigallon
Copy link

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

@fana13
Copy link

fana13 commented Sep 16, 2021

You're really great, thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants