We're seeing this in a build with mkdocs-drawio-exporter 0.9.0 which wasn't an issue before:
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.9.18/bin/mkdocs", line 8, in <module>
sys.exit(cli())
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/__main__.py", line 283, in build_command
cfg = config.load_config(**kwargs)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/config/base.py", line 378, in load_config
errors, warnings = cfg.validate()
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/config/base.py", line 230, in validate
run_failed, run_warnings = self._validate()
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/config/base.py", line 188, in _validate
self[key] = config_option.validate(value)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/config/config_options.py", line 182, in validate
return self.run_validation(value)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/config/config_options.py", line 1064, in run_validation
self.load_plugin_with_namespace(name, cfg)
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/config/config_options.py", line 1102, in load_plugin_with_namespace
return (name, self.load_plugin(name, config))
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs/config/config_options.py", line 1120, in load_plugin
plugin_cls = self.installed_plugins[name].load()
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/importlib_metadata/__init__.py", line 184, in load
module = import_module(match.group('module'))
File "/opt/python/3.9.18/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 "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs_drawio_exporter/__init__.py", line 1, in <module>
from .exporter import DrawIoExporter, Source
File "/home/travis/virtualenv/python3.9.18/lib/python3.9/site-packages/mkdocs_drawio_exporter/exporter.py", line 271
img_src = f"{filename}-{page_index}.{config["format"]}"
^
SyntaxError: f-string: unmatched '['
I'm not sure if the part of the 0.9.0 changelog which says Fix handling of diagram filenames containing spaces could be causing problems here, but none of the *.drawio files in our docs tree have spaces in the names.
This is the plugin config in our mkdocs.yaml file:
We're seeing this in a build with mkdocs-drawio-exporter 0.9.0 which wasn't an issue before:
I'm not sure if the part of the 0.9.0 changelog which says
Fix handling of diagram filenames containing spaces
could be causing problems here, but none of the *.drawio files in our docs tree have spaces in the names.This is the plugin config in our mkdocs.yaml file:
These are the installed packages in the environment: