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

[Bug Report] DevToolsActivePort file doesn't exist #90

Open
1 task done
WentseChen opened this issue Nov 20, 2024 · 1 comment
Open
1 task done

[Bug Report] DevToolsActivePort file doesn't exist #90

WentseChen opened this issue Nov 20, 2024 · 1 comment

Comments

@WentseChen
Copy link

WentseChen commented Nov 20, 2024

Hi thank you for your great work.

Describe the bug

I encountered an error running the following Python code:

import gymnasium
import miniwob
from miniwob.action import ActionTypes

gymnasium.register_envs(miniwob)
env = gymnasium.make('miniwob/click-test-2-v1', render_mode=None)

System Info

Error:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: DevToolsActivePort file doesn't exist
Stacktrace:
#0 0x559c8b9f62da <unknown>
#1 0x559c8b6c4200 <unknown>
#2 0x559c8b701669 <unknown>
#3 0x559c8b6fceb9 <unknown>
#4 0x559c8b6f8058 <unknown>
#5 0x559c8b744a7e <unknown>
#6 0x559c8b744296 <unknown>
#7 0x559c8b738673 <unknown>
#8 0x559c8b706473 <unknown>
#9 0x559c8b70747e <unknown>
#10 0x559c8b9bd0db <unknown>
#11 0x559c8b9c1071 <unknown>
#12 0x559c8b9a99d5 <unknown>
#13 0x559c8b9c1bf2 <unknown>
#14 0x559c8b98eb6f <unknown>
#15 0x559c8b9e5248 <unknown>
#16 0x559c8b9e5417 <unknown>
#17 0x559c8b9f50cc <unknown>
#18 0x7f30e789f802 start_thread
  • Python version: Python 3.10.8

Do you know how to resolve it? Thank you!

Checklist

  • I have checked that there is no similar issue in the repo (required)
@WentseChen WentseChen changed the title [Bug Report] Bug title [Bug Report] DevToolsActivePort file doesn't exist Nov 20, 2024
@ppasupat
Copy link
Collaborator

ppasupat commented Nov 20, 2024

Are you running on Linux? Based on https://stackoverflow.com/a/50642913, after this line, could you try adding options.add_argument("disable-dev-shm-usage")?

The meaning of the flag can be found here.

Reference: Selenium bug report

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