Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pretext/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def interactive(
)
except Exception as e:
log.error(
"Failed to generate interactive element previews. Check debug log for info."
"Failed to generate interactive element previews. You might need to run `playwright install-deps` to get this to work. Check debug log for info."
)
log.debug(e)
log.debug("Exception info:\n##################\n", exc_info=True)
Expand Down
6 changes: 3 additions & 3 deletions pretext/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ def playwright_install() -> None:
Run `playwright install` to ensure that its required browsers and tools are available to it.
"""
try:
log.info("Attempting to install/update required playwright packages.")
subprocess.run("playwright install-deps", shell=True)
subprocess.run("playwright install", shell=True)
log.info("Checking for update for required playwright chromium browser.")
# subprocess.run("playwright install-deps", shell=True)
subprocess.run("playwright install chromium", shell=True)
log.debug("Installed dependencies to capture interactive previews")
except Exception as e:
log.critical(
Expand Down