Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation build failing - missing module faker #6655

Closed
xoriole opened this issue Dec 15, 2021 · 2 comments · Fixed by #6656 or #6675
Closed

Documentation build failing - missing module faker #6655

xoriole opened this issue Dec 15, 2021 · 2 comments · Fixed by #6656 or #6675
Assignees

Comments

@xoriole
Copy link
Contributor

xoriole commented Dec 15, 2021

The documentation build is failing with missing dependency. The stacktrace is below:

Running Sphinx v4.3.0

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/envs/latest/lib/python3.8/site-packages/sphinx/config.py", line 329, in eval_config_file
    exec(code, namespace)
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/doc/conf.py", line 48, in <module>
    from extract_swagger import extract_swagger  # noqa: I100
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/doc/extract_swagger.py", line 10, in <module>
    from tribler_core.components.restapi.rest.rest_manager import ApiKeyMiddleware, RESTManager, error_middleware
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-core/tribler_core/components/restapi/rest/rest_manager.py", line 12, in <module>
    from tribler_core.components.reporter.exception_handler import default_core_exception_handler
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-core/tribler_core/components/reporter/exception_handler.py", line 11, in <module>
    from tribler_common.sentry_reporter.sentry_reporter import SentryReporter
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-common/tribler_common/sentry_reporter/sentry_reporter.py", line 9, in <module>
    from faker import Faker
ModuleNotFoundError: No module named 'faker'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/envs/latest/lib/python3.8/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/envs/latest/lib/python3.8/site-packages/sphinx/application.py", line 216, in __init__
    self.config = Config.read(self.confdir, confoverrides or {}, self.tags)
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/envs/latest/lib/python3.8/site-packages/sphinx/config.py", line 173, in read
    namespace = eval_config_file(filename, tags)
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/envs/latest/lib/python3.8/site-packages/sphinx/config.py", line 342, in eval_config_file
    raise ConfigError(msg % traceback.format_exc()) from exc
sphinx.errors.ConfigError: There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/envs/latest/lib/python3.8/site-packages/sphinx/config.py", line 329, in eval_config_file
    exec(code, namespace)
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/doc/conf.py", line 48, in <module>
    from extract_swagger import extract_swagger  # noqa: I100
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/doc/extract_swagger.py", line 10, in <module>
    from tribler_core.components.restapi.rest.rest_manager import ApiKeyMiddleware, RESTManager, error_middleware
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-core/tribler_core/components/restapi/rest/rest_manager.py", line 12, in <module>
    from tribler_core.components.reporter.exception_handler import default_core_exception_handler
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-core/tribler_core/components/reporter/exception_handler.py", line 11, in <module>
    from tribler_common.sentry_reporter.sentry_reporter import SentryReporter
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-common/tribler_common/sentry_reporter/sentry_reporter.py", line 9, in <module>
    from faker import Faker
ModuleNotFoundError: No module named 'faker'


Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/envs/latest/lib/python3.8/site-packages/sphinx/config.py", line 329, in eval_config_file
    exec(code, namespace)
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/doc/conf.py", line 48, in <module>
    from extract_swagger import extract_swagger  # noqa: I100
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/doc/extract_swagger.py", line 10, in <module>
    from tribler_core.components.restapi.rest.rest_manager import ApiKeyMiddleware, RESTManager, error_middleware
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-core/tribler_core/components/restapi/rest/rest_manager.py", line 12, in <module>
    from tribler_core.components.reporter.exception_handler import default_core_exception_handler
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-core/tribler_core/components/reporter/exception_handler.py", line 11, in <module>
    from tribler_common.sentry_reporter.sentry_reporter import SentryReporter
  File "/home/docs/checkouts/readthedocs.org/user_builds/tribler/checkouts/latest/src/tribler-common/tribler_common/sentry_reporter/sentry_reporter.py", line 9, in <module>
    from faker import Faker
ModuleNotFoundError: No module named 'faker'

Reference: https://readthedocs.org/projects/tribler/builds/15536296/

@xoriole
Copy link
Contributor Author

xoriole commented Dec 20, 2021

Build still failing, reopening the issue
https://readthedocs.org/projects/tribler/builds/15581583/

@xoriole
Copy link
Contributor Author

xoriole commented Jan 5, 2022

Here is a successful build after the fix:
https://readthedocs.org/projects/tribler/builds/15691755/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant