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

browser tool not available despite playwright being installed #191

Closed
materemias opened this issue Oct 9, 2024 · 4 comments · Fixed by #193
Closed

browser tool not available despite playwright being installed #191

materemias opened this issue Oct 9, 2024 · 4 comments · Fixed by #193

Comments

@materemias
Copy link

Hi,

thanks for the awesome tool. I have installed gptme with pipx and I have python-playwright installed as a system package (on arch).
Whenever gpt wants to read the web I see this warning:
WARNING:gptme.chat:Browser tool not available, skipping URL read

could you please suggest hiow I can get it working? (have checked docs and code)
thanks in advance!

@ErikBjare
Copy link
Owner

ErikBjare commented Oct 10, 2024

You cannot install playwright from Arch repos, as each version of playwright needs a specific browser version to be installed (with playwright install chromium).

We recently locked the playwright version to prevent people from having to download a new browser version on every update.

Try installing gptme with browser extras pipx install 'gptme[browser]', and then run python -m playwright install inside the gptme virtualenv managed by pipx. Since this is not straight forward pypa/pipx#434, you can ask gptme to do it (or just do gptme '/shell python3 -m playwright install'), since it's in the venv by default.

I will look into making all this smoother.

@materemias
Copy link
Author

It worked this way, thanks a lot. maybe it would be worth to add these steps to the documentation!

@ErikBjare
Copy link
Owner

ErikBjare commented Oct 10, 2024

Done in #193, thanks for reporting!

@kfishes
Copy link

kfishes commented Dec 12, 2024

I cannot get this to work for the life of me! It acts like it's working but fails to do any actual web browsing

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

Successfully merging a pull request may close this issue.

3 participants