[GH-ISSUE #792] Question: Docker build fails when submodules are not cloned #2013

Closed
opened 2026-03-01 17:55:49 +03:00 by kerem · 1 comment
Owner

Originally created by @jserviceorg on GitHub (Jul 16, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/792

--snip--
Traceback (most recent call last):
  File "/usr/local/bin/archivebox", line 33, in <module>
    sys.exit(load_entry_point('archivebox', 'console_scripts', 'archivebox')())
  File "/usr/local/bin/archivebox", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/app/archivebox/cli/__init__.py", line 83, in <module>
    SUBCOMMANDS = list_subcommands()
  File "/app/archivebox/cli/__init__.py", line 43, in list_subcommands
    module = import_module('.archivebox_{}'.format(subcommand), __package__)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/app/archivebox/cli/archivebox_add.py", line 11, in <module>
    from ..main import add
  File "/app/archivebox/main.py", line 22, in <module>
    from .parsers import (
  File "/app/archivebox/parsers/__init__.py", line 17, in <module>
    from ..system import atomic_write
  File "/app/archivebox/system.py", line 14, in <module>
    from .vendor.atomicwrites import atomic_write as lib_atomic_write
ModuleNotFoundError: No module named 'archivebox.vendor.atomicwrites'
--snip--

dev branch, tried to build with docker

Originally created by @jserviceorg on GitHub (Jul 16, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/792 ```python3 --snip-- Traceback (most recent call last): File "/usr/local/bin/archivebox", line 33, in <module> sys.exit(load_entry_point('archivebox', 'console_scripts', 'archivebox')()) File "/usr/local/bin/archivebox", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/app/archivebox/cli/__init__.py", line 83, in <module> SUBCOMMANDS = list_subcommands() File "/app/archivebox/cli/__init__.py", line 43, in list_subcommands module = import_module('.archivebox_{}'.format(subcommand), __package__) File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/app/archivebox/cli/archivebox_add.py", line 11, in <module> from ..main import add File "/app/archivebox/main.py", line 22, in <module> from .parsers import ( File "/app/archivebox/parsers/__init__.py", line 17, in <module> from ..system import atomic_write File "/app/archivebox/system.py", line 14, in <module> from .vendor.atomicwrites import atomic_write as lib_atomic_write ModuleNotFoundError: No module named 'archivebox.vendor.atomicwrites' --snip-- ``` dev branch, tried to build with docker
kerem 2026-03-01 17:55:49 +03:00
Author
Owner

@pirate commented on GitHub (Jul 16, 2021):

You have to pull the repo's submodules when you clone it, please see the instructions here: https://github.com/ArchiveBox/ArchiveBox#setup-the-dev-environment

git checkout dev  # or the branch you want to test
git submodule update --init --recursive
git pull --recurse-submodules

The build will pass and look like this after you do that:
image

<!-- gh-comment-id:881765535 --> @pirate commented on GitHub (Jul 16, 2021): You have to pull the repo's submodules when you clone it, please see the instructions here: https://github.com/ArchiveBox/ArchiveBox#setup-the-dev-environment ```bash git checkout dev # or the branch you want to test git submodule update --init --recursive git pull --recurse-submodules ``` The build will pass and look like this after you do that: ![image](https://user-images.githubusercontent.com/511499/126016884-8f9de77d-9fc8-4941-9735-2eff0a5f96de.png)
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#2013
No description provided.