Open Juranik opened 1 year ago
Make sure the version of selenium you are using is compatible with the python version you have. Also, make sure the chromedriver.exe is within the same directory as the script, and check the version of your Google chrome browser before downloading the chromedriver.
My python version 3.10, I dont know which version I should use
I downloading selenimum selenium 4.12.0
Hello, bro again, I made it all, installed all libraries to latest version, and install chromedriver latest from GITHUB and out it folder where midj, and start it, and got this on console, its normal?
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py The chromedriver version (103.0.5060.114) detected in PATH at C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\chromedriver.exe might not be compatible with the detected chrome version (116.0.5845.141); currently, chromedriver 116.0.5845.96 is recommended for chrome 116.*, so it is advised to delete the driver in PATH and retry
I got error that I need install crhome another version, well I'wll do it. what mean PATH btw? My OS btw win10
EDITED: Done, I downlaoded Chomedriver through pip install, becuz I didnt find version of exe... now starting it
Well, in the end I got this error...):
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py", line 659, in
Process finished with exit code 1
And for some reason opened this code:
#
#
from selenium.webdriver.chromium.webdriver import ChromiumDriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from .options import Options from .service import Service
class WebDriver(ChromiumDriver): """Controls the ChromeDriver and allows you to drive the browser."""
def __init__(
self,
options: Options = None,
service: Service = None,
keep_alive: bool = True,
) -> None:
"""Creates a new instance of the chrome driver. Starts the service and
then creates new instance of chrome driver.
:Args:
- options - this takes an instance of ChromeOptions
- service - Service object for handling the browser driver if you need to pass extra details
- keep_alive - Whether to configure ChromeRemoteConnection to use HTTP keep-alive.
"""
service = service if service else Service()
options = options if options else Options()
super().__init__(
DesiredCapabilities.CHROME["browserName"],
"goog",
options,
service,
keep_alive,
)
Bro I Installed old version chrome that have same version almost like a CHROMEDRIVER, I WIll try now again
again......
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py", line 660, in
Process finished with exit code 1
Version of chrome: 114.0.5735.134 ChromeDriver.exe: 114.0.5735.90
I dont know what to do next.... pls help me bro,.....
whats wrong?
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py Traceback (most recent call last): File "C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py", line 659, in
driver = create_chrome_driver(user_data_dir)
File "C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py", line 106, in create_chrome_driver
driver = webdriver.Chrome(options=options)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 56, in init
super().init(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 206, in init
self.start_session(capabilities)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 290, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist
Stacktrace:
GetHandleVerifier [0x00007FF73B7B52A2+57122]
(No symbol) [0x00007FF73B72EA92]
(No symbol) [0x00007FF73B5FE3AB]
(No symbol) [0x00007FF73B629878]
(No symbol) [0x00007FF73B625005]
(No symbol) [0x00007FF73B622FE1]
(No symbol) [0x00007FF73B65EA4F]
(No symbol) [0x00007FF73B65E5B0]
(No symbol) [0x00007FF73B656DB3]
(No symbol) [0x00007FF73B62D2B1]
(No symbol) [0x00007FF73B62E494]
GetHandleVerifier [0x00007FF73BA5EF82+2849794]
GetHandleVerifier [0x00007FF73BAB1D24+3189156]
GetHandleVerifier [0x00007FF73BAAACAF+3160367]
GetHandleVerifier [0x00007FF73B846D06+653702]
(No symbol) [0x00007FF73B73A208]
(No symbol) [0x00007FF73B7362C4]
(No symbol) [0x00007FF73B7363F6]
(No symbol) [0x00007FF73B7267A3]
BaseThreadInitThunk [0x00007FF9C54C7604+20]
RtlUserThreadStart [0x00007FF9C6B626A1+33]
Process finished with exit code 1
When running this code, for some reason, the chrome browser opens, and when I wrote to the bot / start, this error appears after some time
and there was also an error, but I fixed it, just created a file in the folder 'user_times.json'
EDITED: THIS ERROR APPEAR ANYWAY FOR SOME TIME BROWSER CLOSING, and appears this error
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py Traceback (most recent call last): File "C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py", line 659, in
driver = create_chrome_driver(user_data_dir)
File "C:\Users\Administrator\Desktop\Midjourney-Telegram-Wrapper-main\main.py", line 106, in create_chrome_driver
driver = webdriver.Chrome(options=options)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 56, in init
super().init(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 206, in init
self.start_session(capabilities)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 290, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist
Stacktrace:
GetHandleVerifier [0x00007FF73B7B52A2+57122]
(No symbol) [0x00007FF73B72EA92]
(No symbol) [0x00007FF73B5FE3AB]
(No symbol) [0x00007FF73B629878]
(No symbol) [0x00007FF73B625005]
(No symbol) [0x00007FF73B622FE1]
(No symbol) [0x00007FF73B65EA4F]
(No symbol) [0x00007FF73B65E5B0]
(No symbol) [0x00007FF73B656DB3]
(No symbol) [0x00007FF73B62D2B1]
(No symbol) [0x00007FF73B62E494]
GetHandleVerifier [0x00007FF73BA5EF82+2849794]
GetHandleVerifier [0x00007FF73BAB1D24+3189156]
GetHandleVerifier [0x00007FF73BAAACAF+3160367]
GetHandleVerifier [0x00007FF73B846D06+653702]
(No symbol) [0x00007FF73B73A208]
(No symbol) [0x00007FF73B7362C4]
(No symbol) [0x00007FF73B7363F6]
(No symbol) [0x00007FF73B7267A3]
BaseThreadInitThunk [0x00007FF9C54C7604+20]
RtlUserThreadStart [0x00007FF9C6B626A1+33]
anyway if I wouldnt write /start command