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

Process unexpectedly closed with status 255 #202

Closed
jaroslawjanas opened this issue Nov 9, 2023 · 1 comment
Closed

Process unexpectedly closed with status 255 #202

jaroslawjanas opened this issue Nov 9, 2023 · 1 comment

Comments

@jaroslawjanas
Copy link

Traceback (most recent call last):
  File "/home/voter/agherman-voter/main.py", line 7, in <module>
    with TorBrowserDriver(tbb_dir, tor_cfg=cm.USE_STEM) as driver:
  File "/home/voter/.local/lib/python3.10/site-packages/tbselenium/tbdriver.py", line 103, in __init__
    super(TorBrowserDriver, self).__init__(
  File "/home/voter/.local/lib/python3.10/site-packages/selenium/webdriver/firefox/webdriver.py", line 67, in __init__
    super().__init__(command_executor=executor, options=options)
  File "/home/voter/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 208, in __init__
    self.start_session(capabilities)
  File "/home/voter/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 292, in start_session
    response = self.execute(Command.NEW_SESSION, caps)["value"]
  File "/home/voter/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
    self.error_handler.check_response(response)
  File "/home/voter/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 255
import tbselenium.common as cm
from tbselenium.tbdriver import TorBrowserDriver
from tbselenium.utils import launch_tbb_tor_with_stem

tbb_dir = "/home/voter/tor-browser/"
tor_process = launch_tbb_tor_with_stem(tbb_path=tbb_dir)
with TorBrowserDriver(tbb_dir, tor_cfg=cm.USE_STEM) as driver:
    driver.load_url("https://check.torproject.org")

tor_process.kill()

Tor /home/voter/tor-browser/
Geckodriver 0.31
PATH set
Nothing running on :9050

The setup instructions are horrible btw. 👍

@gunesacar
Copy link
Collaborator

The setup instructions are horrible btw. 👍

PRs are welcome, unhelpful comments like these are not.

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

2 participants