-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
The issue seems to come
https://github.com/Kozea/cairocffi
-> https://github.com/Kozea/CairoSVG
-> here
Still, as far I understand, most of the times, sphinx-wavefrom renders on the user side. So why import cairo when not used?
(venv) docs$ make html
Running Sphinx v8.1.3
loading translations [en]... done
Exception occurred:
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/cffi/api.py", line 527, in include
raise TypeError("ffi.include() expects an argument that is also of"
TypeError: ffi.include() expects an argument that is also of type cffi.FFI, not 'FFI'
The full traceback has been saved in /tmp/sphinx-err-9bnot1j8.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:13: html] Error 2
(venv) docs$ ^C
(venv) docs$ vi Makefile
(venv) docs$ make html
Running Sphinx v8.1.3
loading translations [en]... locale_dir /data/repos/doc/hdl/docs/locales/en/LC_MESSAGES does not exist
locale_dir /data/repos/doc/hdl/docs/locales/en/LC_MESSAGES does not exist
done
Traceback (most recent call last):
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/sphinx/cmd/build.py", line 496, in build_main
app = Sphinx(
^^^^^^^
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/sphinx/application.py", line 256, in __init__
self.setup_extension(extension)
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/sphinx/application.py", line 437, in setup_extension
self.registry.load_extension(self, extname)
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/sphinx/registry.py", line 453, in load_extension
mod = import_module(extname)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/sphinxcontrib/wavedrom.py", line 15, in <module>
from .wavedrom_render_image import render_wavedrom_image
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/sphinxcontrib/wavedrom_render_image.py", line 6, in <module>
import cairosvg
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/cairosvg/__init__.py", line 26, in <module>
from . import surface # noqa isort:skip
^^^^^^^^^^^^^^^^^^^^^
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/cairosvg/surface.py", line 9, in <module>
import cairocffi as cairo
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/cairocffi/__init__.py", line 18, in <module>
from .ffi import ffi
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/cairocffi/ffi.py", line 26, in <module>
ffi.include(xcb_ffi)
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/cffi/api.py", line 527, in include
raise TypeError("ffi.include() expects an argument that is also of"
TypeError: ffi.include() expects an argument that is also of type cffi.FFI, not 'FFI'
Exception occurred:
File "/data/repos/doc/hdl/venv/lib64/python3.11/site-packages/cffi/api.py", line 527, in include
raise TypeError("ffi.include() expects an argument that is also of"
TypeError: ffi.include() expects an argument that is also of type cffi.FFI, not 'FFI'
The full traceback has been saved in /tmp/sphinx-err-vcah16n_.log, if you want to report the issue to the developers.
Log file:
sphinx-err-9bnot1j8.log
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels