[GH-ISSUE #1346] Bug: archivebox init --setup ignore configuration through environment variables #2330

Closed
opened 2026-03-01 17:58:15 +03:00 by kerem · 4 comments
Owner

Originally created by @philippemilink on GitHub (Feb 14, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1346

With ArchiveBox 0.6.2, I used to initialize ArchiveBox with the following command:

SAVE_SINGLEFILE=False USE_CHROME=False USE_NODE=False USE_YOUTUBEDL=False USE_READABILITY=False USE_MERCURY=False archivebox init --setup

which used to work and disabled all what I asked to disable.

However, with ArchiveBox 0.7.2, this command tries to install Chrome and fails:

[...]
[+] Installing enabled ArchiveBox dependencies automatically...

    Installing YOUTUBEDL_BINARY automatically using pip...
Collecting youtube_dl
  Downloading youtube_dl-2021.12.17-py2.py3-none-any.whl (1.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 10.1 MB/s eta 0:00:00
Installing collected packages: youtube_dl
Successfully installed youtube_dl-2021.12.17
YOUTUBEDL_BINARY=/tmp/archivebox/venv/lib/python3.11/site-packages/youtube_dl/__main__.py

[i] Note: This change also affected these other options that depended on it:
    SECRET_KEY=HjVmv003_DR7c2Wr5WRBfBJ7h3MI4oHU5not31gq0u4NUGx6et

    Installing CHROME_BINARY automatically using playwright...
Collecting playwright
  Downloading playwright-1.41.2-py3-none-manylinux1_x86_64.whl.metadata (3.6 kB)
Collecting greenlet==3.0.3 (from playwright)
  Downloading greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Collecting pyee==11.0.1 (from playwright)
  Downloading pyee-11.0.1-py3-none-any.whl.metadata (2.7 kB)
Collecting typing-extensions (from pyee==11.0.1->playwright)
  Downloading typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
Downloading playwright-1.41.2-py3-none-manylinux1_x86_64.whl (37.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.4/37.4 MB 26.7 MB/s eta 0:00:00
Downloading greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (620 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 620.0/620.0 kB 82.6 MB/s eta 0:00:00
Downloading pyee-11.0.1-py3-none-any.whl (15 kB)
Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Installing collected packages: typing-extensions, greenlet, pyee, playwright
Successfully installed greenlet-3.0.3 playwright-1.41.2 pyee-11.0.1 typing-extensions-4.9.0
CHROME_BINARY=/home/philippe/.cache/ms-playwright/chromium-1097/chrome-linux/chrome

[i] Note: This change also affected these other options that depended on it:
    SECRET_KEY=HjVmv003_DR7c2Wr5WRBfBJ7h3MI4oHU5not31gq0u4NUGx6et
    YOUTUBEDL_BINARY=/tmp/archivebox/venv/lib/python3.11/site-packages/youtube_dl/__main__.py

    Installing SINGLEFILE_BINARY, READABILITY_BINARY, MERCURY_BINARY automatically using npm...
[X] You must first install node & npm using your system package manager
    Hint: https://github.com/nodesource/distributions#table-of-contents
          or to disable all node-based modules run: archivebox config --set USE_NODE=False
Originally created by @philippemilink on GitHub (Feb 14, 2024). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1346 With ArchiveBox 0.6.2, I used to initialize ArchiveBox with the following command: ```sh SAVE_SINGLEFILE=False USE_CHROME=False USE_NODE=False USE_YOUTUBEDL=False USE_READABILITY=False USE_MERCURY=False archivebox init --setup ``` which used to work and disabled all what I asked to disable. However, with ArchiveBox 0.7.2, this command tries to install Chrome and fails: ``` [...] [+] Installing enabled ArchiveBox dependencies automatically... Installing YOUTUBEDL_BINARY automatically using pip... Collecting youtube_dl Downloading youtube_dl-2021.12.17-py2.py3-none-any.whl (1.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 10.1 MB/s eta 0:00:00 Installing collected packages: youtube_dl Successfully installed youtube_dl-2021.12.17 YOUTUBEDL_BINARY=/tmp/archivebox/venv/lib/python3.11/site-packages/youtube_dl/__main__.py [i] Note: This change also affected these other options that depended on it: SECRET_KEY=HjVmv003_DR7c2Wr5WRBfBJ7h3MI4oHU5not31gq0u4NUGx6et Installing CHROME_BINARY automatically using playwright... Collecting playwright Downloading playwright-1.41.2-py3-none-manylinux1_x86_64.whl.metadata (3.6 kB) Collecting greenlet==3.0.3 (from playwright) Downloading greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB) Collecting pyee==11.0.1 (from playwright) Downloading pyee-11.0.1-py3-none-any.whl.metadata (2.7 kB) Collecting typing-extensions (from pyee==11.0.1->playwright) Downloading typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB) Downloading playwright-1.41.2-py3-none-manylinux1_x86_64.whl (37.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.4/37.4 MB 26.7 MB/s eta 0:00:00 Downloading greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (620 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 620.0/620.0 kB 82.6 MB/s eta 0:00:00 Downloading pyee-11.0.1-py3-none-any.whl (15 kB) Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB) Installing collected packages: typing-extensions, greenlet, pyee, playwright Successfully installed greenlet-3.0.3 playwright-1.41.2 pyee-11.0.1 typing-extensions-4.9.0 CHROME_BINARY=/home/philippe/.cache/ms-playwright/chromium-1097/chrome-linux/chrome [i] Note: This change also affected these other options that depended on it: SECRET_KEY=HjVmv003_DR7c2Wr5WRBfBJ7h3MI4oHU5not31gq0u4NUGx6et YOUTUBEDL_BINARY=/tmp/archivebox/venv/lib/python3.11/site-packages/youtube_dl/__main__.py Installing SINGLEFILE_BINARY, READABILITY_BINARY, MERCURY_BINARY automatically using npm... [X] You must first install node & npm using your system package manager Hint: https://github.com/nodesource/distributions#table-of-contents or to disable all node-based modules run: archivebox config --set USE_NODE=False ```
kerem closed this issue 2026-03-01 17:58:15 +03:00
Author
Owner

@pirate commented on GitHub (Feb 16, 2024):

--setup really only installs 3 things: the node packages, yt-dlp/youtube-dl, and chrome.

I think you don't need to run --setup in your case, just install the dependencies manually according to the output from archivebox version + https://github.com/ArchiveBox/ArchiveBox/wiki/Install#option-c-bare-metal-setup.

Are you reinstalling archivebox frequently or do you just need to run this occasionally?

<!-- gh-comment-id:1947864099 --> @pirate commented on GitHub (Feb 16, 2024): `--setup` really only installs 3 things: the node packages, yt-dlp/youtube-dl, and chrome. I think you don't need to run `--setup` in your case, just install the dependencies manually according to the output from `archivebox version` + https://github.com/ArchiveBox/ArchiveBox/wiki/Install#option-c-bare-metal-setup. Are you reinstalling archivebox frequently or do you just need to run this occasionally?
Author
Owner

@philippemilink commented on GitHub (Feb 16, 2024):

Are you reinstalling archivebox frequently or do you just need to run this occasionally?

No, actually, it was to test bug #1347

<!-- gh-comment-id:1949055351 --> @philippemilink commented on GitHub (Feb 16, 2024): > Are you reinstalling archivebox frequently or do you just need to run this occasionally? No, actually, it was to test bug #1347
Author
Owner

@pirate commented on GitHub (Feb 16, 2024):

Ah then just use archivebox init, no need for --setup if you don't actually need it to install any dependencies.

<!-- gh-comment-id:1949374073 --> @pirate commented on GitHub (Feb 16, 2024): Ah then just use `archivebox init`, no need for `--setup` if you don't actually need it to install any dependencies.
Author
Owner

@pirate commented on GitHub (Feb 22, 2024):

I'm going to consolidate by closing this issue and tracking this as a subtask of the greater archivebox install change coming up soon: https://github.com/ArchiveBox/ArchiveBox/issues/1348

Subscribe to that issue for updates :)

<!-- gh-comment-id:1958451293 --> @pirate commented on GitHub (Feb 22, 2024): I'm going to consolidate by closing this issue and tracking this as a subtask of the greater `archivebox install` change coming up soon: https://github.com/ArchiveBox/ArchiveBox/issues/1348 Subscribe to that issue for updates :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2330
No description provided.