Open Wronek opened 3 years ago
@Wronek Mam do samo
Edit: W sumie taka informacja to nie informacja. Mam VM (na TrueNAS scale) z Debianem 11 i Supkiem więc HA w kontenerze. Co może być ale nie musi znaczące zamiast mail używam loginy na portalu energa24.pl
Cześć po instalacji na Debianie 10 dostaję taki błąd: debian@debian-ha:~/Energa-script$ ./main.py -tm 2 -ms 192.168.1.XXX -mt home/energa -eu X.YYYYYYY@wp.eu -ep XXXX -mu XXX -mp XXX Wait... ./main.py:47: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome('/usr/bin/chromedriver', options=options) ./main.py:49: DeprecationWarning: find_elementby commands are deprecated. Please use find_element() instead driver.find_element_by_id("loginRadio").click() ./main.py:50: DeprecationWarning: find_elementby commands are deprecated. Please use find_element() instead driver.find_element_by_id("j_username").send_keys(energa_username) ./main.py:51: DeprecationWarning: find_elementby commands are deprecated. Please use find_element() instead driver.find_element_by_id("j_password").send_keys(energa_password) ./main.py:52: DeprecationWarning: find_elementby commands are deprecated. Please use find_element() instead driver.find_element_by_name("loginNow").click() ./main.py:55: DeprecationWarning: find_elementby commands are deprecated. Please use find_element() instead element_used = driver.find_element_by_id("right").find_elements_by_tag_name("tr")[ /usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webelement.py:358: UserWarning: find_elementsby commands are deprecated. Please use find_elements() instead warnings.warn("find_elementsby* commands are deprecated. Please use find_elements() instead") PROBLEM Z POBRANIEM DANYCH Z ENERGA S.A - SPRAWDZ DANE LOGOWANIA
Próbowałem również odpalić na RPI 4 z najnowszym Raspbianem, ale również bez pozytywnych rezultatów
./main.py:47: DeprecationWarning: executable_path has been deprecated, please pa ss in a Service object driver = webdriver.Chrome('/usr/bin/chromedriver', options=options) Traceback (most recent call last): File "./main.py", line 47, in
driver = webdriver.Chrome('/usr/bin/chromedriver', options=options)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/chrome/webdriv er.py", line 72, in init
service_log_path, service, keep_alive)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/chromium/webdr iver.py", line 99, in init
options=options)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriv er.py", line 266, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriv er.py", line 357, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriv er.py", line 418, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/errorha ndler.py", line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not crea ted: This version of ChromeDriver only supports Chrome version 92
Current browser version is 88.0.4324.187 with binary path /usr/bin/chromium-brow ser
Stacktrace:
0 0x0000009da618
1 0x0000007409f4
2 0x000000765e88
3 0x000000761d48
4 0x00000075ec04
5 0x00000079528c
6 0x00000078fa14
7 0x000000768478
8 0x0000007693a4
9 0x000000a07944
10 0x000000a1990c
11 0x000000a19550
12 0x000000a1ad40
13 0x000000a08944
14 0x000000a1afec
15 0x0000009ff3ac
16 0x000000a326e8
17 0x000000a32858
18 0x000000a4cf4c
19 0x0000b6e8c494 start_thread
20 0x000000000000