confluencebuilder icon indicating copy to clipboard operation
confluencebuilder copied to clipboard

Incompatible with sphinxcontrib-video 0.2.1

Open adamtheturtle opened this issue 1 month ago • 1 comments

With the new sphinxcontrib-video==0.2.1, the .. video:: directive gives:

    video_key, _, _ = self.assets.add(source_path, self.docname)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/adam/.virtualenvs/sphc/lib/python3.11/site-packages/sphinxcontrib/confluencebuilder/assets.py", line 87, in add
    return self._handle_entry(abs_path, docname, standalone=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/adam/.virtualenvs/sphc/lib/python3.11/site-packages/sphinxcontrib/confluencebuilder/assets.py", line 276, in _handle_entry
    hash_ = ConfluenceUtil.hash_asset(path)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/adam/.virtualenvs/sphc/lib/python3.11/site-packages/sphinxcontrib/confluencebuilder/util.py", line 60, in hash_asset
    with asset.open('rb') as file:
         ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'open'

sphinxcontrib-confluencebuilder==2.5.2

adamtheturtle avatar Jun 07 '24 05:06 adamtheturtle