Skip to content

Commit

Permalink
community[fix]: could not locate runnable browser
Browse files Browse the repository at this point in the history
set open_browser to false to resolve "could not locate runnable browser" error while default browser is None
  • Loading branch information
ImAmirreza authored Nov 22, 2024
1 parent 65deedd commit f783c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/community/langchain_community/tools/gmail/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_gmail_credentials(
flow = InstalledAppFlow.from_client_secrets_file(
client_secrets_file, scopes
)
creds = flow.run_local_server(port=0)
creds = flow.run_local_server(port=0, open_browser=False)
# Save the credentials for the next run
with open(token_file, "w") as token:
token.write(creds.to_json())
Expand Down

0 comments on commit f783c85

Please sign in to comment.