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

Plugin not compatible with mkdocs 1.1 #2

Closed
lkavicky opened this issue Feb 25, 2020 · 0 comments
Closed

Plugin not compatible with mkdocs 1.1 #2

lkavicky opened this issue Feb 25, 2020 · 0 comments

Comments

@lkavicky
Copy link

After upgrade to mkdocs 1.1, I'm getting following error when building docs:

$ mkdocs build
Traceback (most recent call last):
  File "c:\users\luke\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Luke\AppData\Local\Programs\Python\Python37\Scripts\mkdocs.exe\__main__.py", line 7, in <module>
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs\__main__.py", line 159, in build_command
    build.build(config.load_config(**kwargs), dirty=not clean)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs\config\base.py", line 197, in load_config
    errors, warnings = cfg.validate()
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs\config\base.py", line 107, in validate
    run_failed, run_warnings = self._validate()
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs\config\base.py", line 62, in _validate
    self[key] = config_option.validate(value)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs\config\config_options.py", line 130, in validate
    return self.run_validation(value)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs\config\config_options.py", line 591, in run_validation
    plgins[item] = self.load_plugin(item, cfg)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs\config\config_options.py", line 599, in load_plugin
    Plugin = self.installed_plugins[name].load()
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\pkg_resources\__init__.py", line 2445, in load
    return self.resolve()
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\pkg_resources\__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs_localsearch_plugin\__init__.py", line 37, in <module>
    class SearchPlugin(BasePlugin):
  File "c:\users\luke\appdata\local\programs\python\python37\lib\site-packages\mkdocs_localsearch_plugin\__init__.py", line 42, in SearchPlugin
    ('separator', config_options.Type(utils.string_types, default=r'[\s\-]+')),
AttributeError: module 'mkdocs.utils' has no attribute 'string_types'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant