I get error most in python commands

Clay00

New Member
Joined
Oct 7, 2023
Messages
2
Reaction score
0
Credits
42
Hello i’m new and i just wanna use tiktok-bot but it’s give me this error i think it’s all about chrome

Traceback (most recent call last):
File "/home/clay/Desktop/tiktodv3/tiktodv3.py", line 37, in <module
driver = webdriver.Chrome( options=chrome_options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chromium/webdriver.py", line 56, in init
super().init(
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 206, in init
self.start_session(capabilities)
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 290, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
(session not created: DevToolsActivePort file doesn't exist)
(The process started from chrome location /opt/google/chrome/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55e31f4e8fb3 <unknown>
#1 0x55e31f1bc4a7 <unknown>
#2 0x55e31f1efc93 <unknown>
#3 0x55e31f1ec10c <unknown>
#4 0x55e31f22eac6 <unknown>
#5 0x55e31f225713 <unknown>
#6 0x55e31f1f818b <unknown>
#7 0x55e31f1f8f7e <unknown>
#8 0x55e31f4ae8d8 <unknown>
#9 0x55e31f4b2800 <unknown>
#10 0x55e31f4bccfc <unknown>
#11 0x55e31f4b3418 <unknown>
#12 0x55e31f48042f <unknown>
#13 0x55e31f4d74e8 <unknown>
#14 0x55e31f4d76b4 <unknown>
#15 0x55e31f4e8143 <unknown>
#16 0x7fbde0ed13ec <unknown>
 


Hello i’m new and i just wanna use tiktok-bot but it’s give me this error i think it’s all about chrome

Traceback (most recent call last):
File "/home/clay/Desktop/tiktodv3/tiktodv3.py", line 37, in <module
driver = webdriver.Chrome( options=chrome_options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/chromium/webdriver.py", line 56, in init
super().init(
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 206, in init
self.start_session(capabilities)
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 290, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
(session not created: DevToolsActivePort file doesn't exist)
(The process started from chrome location /opt/google/chrome/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55e31f4e8fb3 <unknown>
#1 0x55e31f1bc4a7 <unknown>
#2 0x55e31f1efc93 <unknown>
#3 0x55e31f1ec10c <unknown>
#4 0x55e31f22eac6 <unknown>
#5 0x55e31f225713 <unknown>
#6 0x55e31f1f818b <unknown>
#7 0x55e31f1f8f7e <unknown>
#8 0x55e31f4ae8d8 <unknown>
#9 0x55e31f4b2800 <unknown>
#10 0x55e31f4bccfc <unknown>
#11 0x55e31f4b3418 <unknown>
#12 0x55e31f48042f <unknown>
#13 0x55e31f4d74e8 <unknown>
#14 0x55e31f4d76b4 <unknown>
#15 0x55e31f4e8143 <unknown>
#16 0x7fbde0ed13ec <unknown>
Hey there! It looks like you're trying to use a TikTok bot but you're running into an error related to Chrome. The error message indicates that Chrome failed to start and the session wasn't created.

There could be a couple of reasons for this error. One possibility is that your Chrome browser or ChromeDriver is not properly installed or configured. Another possibility is that you're using an incompatible version of Chrome or ChromeDriver with your current setup.

Here are a few suggestions to try and resolve this issue:

1. Make sure you have Chrome installed on your system. You can download it from the official website: https://www.google.com/chrome/

2. Check if you have ChromeDriver installed and make sure it's compatible with your Chrome version. You can find the latest ChromeDriver version here: https://sites.google.com/a/chromium.org/chromedriver/downloads

3. Confirm that the ChromeDriver executable is accessible and in your system's PATH. You can usually move the executable to a directory already in your PATH or add the directory containing the executable to your PATH environment variable.

4. If you've already installed ChromeDriver, try updating it to the latest version to ensure compatibility with your Chrome version.

5. Double-check your code and ensure that you're using the correct options and configurations when instantiating the Chrome webdriver. If needed, refer to the documentation or examples provided by the TikTok bot library you're using.

Give these suggestions a shot, and hopefully, they'll help you get past this error. If you're still facing issues, feel free to ask for more help. Good luck, dude!

By the way, if you make it work, I'm pretty sure you'll be singing, "We'll take it slow, any way you want to go. Be what you wanna be, now ain't that the way to make it?" - Dirty Heads
 

Members online


Top