mkdocs errori di build dovuti a mkdocs-img2fig-plugin #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
inizio
mkdocs installato con :
$ pip3 install --user mkdocs mkdocs-material mkdocs-img2fig-plugin
mkdocs, version 1.1
mkdocs-img2fig-plugin-0.9.2
mkdocs-material-4.6.3
step per riprodurre
build eseguita con
$ ~/.local/bin/mkdocs serve
comportamento
INFO - Building documentation...
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2419, in resolve
return functools.reduce(getattr, self.attrs, module)
AttributeError: module 'src' has no attribute 'Image2FigurePlugin'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/bin/mkdocs", line 10, in
sys.exit(cli())
File "/home/user/.local/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/user/.local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/user/.local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/main.py", line 143, in serve_command
**kwargs
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/commands/serve.py", line 141, in serve
config = builder()
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/commands/serve.py", line 129, in builder
**kwargs
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/config/base.py", line 197, in load_config
errors, warnings = cfg.validate()
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/config/base.py", line 107, in validate
run_failed, run_warnings = self._validate()
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/config/base.py", line 62, in _validate
self[key] = config_option.validate(value)
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/config/config_options.py", line 130, in validate
return self.run_validation(value)
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/config/config_options.py", line 591, in run_validation
plgins[item] = self.load_plugin(item, cfg)
File "/home/user/.local/lib/python3.7/site-packages/mkdocs/config/config_options.py", line 599, in load_plugin
Plugin = self.installed_plugins[name].load()
File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2411, in load
return self.resolve()
File "/usr/lib/python3.7/site-packages/pkg_resources/init.py", line 2421, in resolve
raise ImportError(str(exc))
ImportError: module 'src' has no attribute 'Image2FigurePlugin'
comportamento atteso
INFO - Building documentation...
INFO - Cleaning site directory
INFO - Documentation built in 0.38 seconds
[I 200323 03:38:26 server:296] Serving on http://127.0.0.1:8000
INFO - Serving on http://127.0.0.1:8000
[I 200323 03:38:26 handlers:62] Start watching changes
INFO - Start watching changes
[I 200323 03:38:26 handlers:64] Start detecting changes
INFO - Start detecting changes
commenti
se elimino img2fig dal mkdocs.yml, funziona e graficamente sembra tutto identico a https://farma.cisti.org/docs/
nel caso il plugin img2fig sia necessario che versioni vengono usate ?
verifica di usare python3 e pip3 e installa img2fig
di segutio la versione