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

Empty queue error when building doc #89

Open
setiat opened this issue Jun 8, 2022 · 1 comment
Open

Empty queue error when building doc #89

setiat opened this issue Jun 8, 2022 · 1 comment
Labels
type:bug Something isn't working

Comments

@setiat
Copy link

setiat commented Jun 8, 2022

poetry run sphinx-multiversion docs/source/ build
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 125, in _main
    prepare(preparation_data)
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 236, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 287, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "/opt/miniconda3/lib/python3.9/runpy.py", line 268, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/opt/miniconda3/lib/python3.9/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/miniconda3/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/bin/sphinx-multiversion", line 5, in <module>
    from sphinx_multiversion import main
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/__init__.py", line 2, in <module>
    from .sphinx import setup
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/sphinx.py", line 9, in <module>
    from sphinx import config as sphinx_config
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx/config.py", line 22, in <module>
    from sphinx.util.i18n import format_date
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx/util/i18n.py", line 17, in <module>
    import babel.dates
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/__init__.py", line 20, in <module>
    from babel.core import UnknownLocaleError, Locale, default_locale, \
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/core.py", line 14, in <module>
    from babel import localedata
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/localedata.py", line 21, in <module>
    from babel._compat import pickle, string_types, abc
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/_compat.py", line 30, in <module>
    array_tobytes = array.array.tobytes
AttributeError: module 'array' has no attribute 'array'
Traceback (most recent call last):
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/bin/sphinx-multiversion", line 8, in <module>
    sys.exit(main())
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/main.py", line 182, in main
    config = load_sphinx_config(
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/main.py", line 86, in load_sphinx_config
    result = q.get_nowait()
  File "/opt/miniconda3/lib/python3.9/multiprocessing/queues.py", line 135, in get_nowait
    return self.get(False)
  File "/opt/miniconda3/lib/python3.9/multiprocessing/queues.py", line 116, in get
    raise Empty
_queue.Empty

(base) ndi-mb-107:ts-sphinx-doc-publish tarik.setia$ git tag -a "1.1"
(base) ndi-mb-107:ts-sphinx-doc-publish tarik.setia$ git push origin 1.1 
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 158 bytes | 79.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
To tetra:tetrascience/ts-sphinx-doc-publish.git
 * [new tag]         1.1 -> 1.1
(base) ndi-mb-107:ts-sphinx-doc-publish tarik.setia$ poetry run sphinx-multiversion docs/source/ build
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 125, in _main
    prepare(preparation_data)
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 236, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "/opt/miniconda3/lib/python3.9/multiprocessing/spawn.py", line 287, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "/opt/miniconda3/lib/python3.9/runpy.py", line 268, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/opt/miniconda3/lib/python3.9/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/miniconda3/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/bin/sphinx-multiversion", line 5, in <module>
    from sphinx_multiversion import main
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/__init__.py", line 2, in <module>
    from .sphinx import setup
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/sphinx.py", line 9, in <module>
    from sphinx import config as sphinx_config
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx/config.py", line 22, in <module>
    from sphinx.util.i18n import format_date
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx/util/i18n.py", line 17, in <module>
    import babel.dates
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/__init__.py", line 20, in <module>
    from babel.core import UnknownLocaleError, Locale, default_locale, \
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/core.py", line 14, in <module>
    from babel import localedata
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/localedata.py", line 21, in <module>
    from babel._compat import pickle, string_types, abc
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/babel/_compat.py", line 30, in <module>
    array_tobytes = array.array.tobytes
AttributeError: module 'array' has no attribute 'array'
Traceback (most recent call last):
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/bin/sphinx-multiversion", line 8, in <module>
    sys.exit(main())
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/main.py", line 182, in main
    config = load_sphinx_config(
  File "/Users/tarik.setia/tetrascience/ts-sphinx-doc-publish/.venv/lib/python3.9/site-packages/sphinx_multiversion/main.py", line 86, in load_sphinx_config
    result = q.get_nowait()
  File "/opt/miniconda3/lib/python3.9/multiprocessing/queues.py", line 135, in get_nowait
    return self.get(False)
  File "/opt/miniconda3/lib/python3.9/multiprocessing/queues.py", line 116, in get
    raise Empty
_queue.Empty
@BurningEnlightenment
Copy link
Member

Hi, can you provide us with a reprex (reproducing example) or if possible a MCVE?

@BurningEnlightenment BurningEnlightenment added the type:bug Something isn't working label Oct 8, 2024
@BurningEnlightenment BurningEnlightenment moved this from Backlog to Blocked in multiversion worklog Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: Blocked
Development

No branches or pull requests

2 participants