Skip to content

Commit

Permalink
add deps installation
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplants committed Apr 30, 2024
1 parent ca10ae7 commit fe6671b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deepl/deepl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import asyncio
from functools import partial
from typing import TYPE_CHECKING, Any, ClassVar
from urllib.parse import quote

Expand Down Expand Up @@ -98,6 +99,7 @@ async def __translate(self, script: str) -> str:
except PlaywrightError as e:
if "playwright install" in e.message:
print("Installing browser executable. This may take some time.") # noqa: T201
await asyncio.get_event_loop().run_in_executor(None, partial(install, p.chromium, with_deps=True))
await asyncio.get_event_loop().run_in_executor(None, install, p.chromium)
browser = await self.__get_browser(p)
else:
Expand Down

0 comments on commit fe6671b

Please sign in to comment.