Building with 7.1.8 fails (not with 7.1.7)
See original GitHub issue- I’ve read the contribution guidelines and agree with them
I’ve found a bug and checked that …
- … the problem doesn’t occur with the default MkDocs template
- … the problem is not in any of my customizations (CSS, JS, template)
- … the documentation does not mention anything about my problem
- … there are no open or closed issues that are related to my problem
Description
Building my website (https://github.com/geotribu/website/) with version 7.1.7 is working perfectly (and with the mkdocs default) but not with the latest version 7.1.8.
Expected behavior
Succeeded build.
Actual behavior
Steps to reproduce the bug
- Install latest version
- Launch the build in strict mode
DEBUG - Building theme template: 404.html
Traceback (most recent call last):
return _run_code(code, main_globals, None,
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\user\Documents\GitHub\Geotribu\website\.venv\Scripts\mkdocs.exe\__main__.py", line 7, in <module>
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\click\core.py", line 1137, in __call__
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\click\core.py", line 1062, in main
rv = self.invoke(ctx)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\click\core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\click\core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\mkdocs\__main__.py", line 152, in build_command
build.build(config.load_config(**kwargs), dirty=not clean)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\mkdocs\commands\build.py", line 285, in build
_build_theme_template(template, env, files, config, nav)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\mkdocs\commands\build.py", line 108, in _build_theme_template
output = _build_template(template_name, template, files, config, nav)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\mkdocs\commands\build.py", line 87, in _build_template
output = template.render(context)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\jinja2\environment.py", line 1090, in render
self.environment.handle_exception()
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\jinja2\environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\jinja2\_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\material\404.html", line 4, in top-level template code
{% extends "main.html" %}
File "./content/theme/main.html", line 1, in top-level template code
{% extends "base.html" %}
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\material\base.html", line 73, in top-level template code
{% block analytics %}
File "./content/theme/main.html", line 141, in block "analytics"
{{ super() }}
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\material\base.html", line 74, in block "analytics"
{% include "partials/integrations/analytics.html" %}
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\material\partials\integrations\analytics.html", line 11, in top-level template code
{% include "partials/integrations/analytics/" ~ provider ~ ".html" %}
File "c:\users\user\documents\github\geotribu\website\.venv\lib\site-packages\material\partials\integrations\analytics\google.html", line 10, in top-level template code
{% if property.startswith("G-") %}
jinja2.exceptions.UndefinedError: 'None' has no attribute 'startswith'
Package versions
- Python:
3.8
- MkDocs:
1.1.2
- Material:
7.18
Project configuration
# Theme
theme:
name: 'material'
custom_dir: './content/theme/'
favicon: "https://cdn.geotribu.fr/img/internal/charte/geotribu_logo_64x64.png"
# Don't include MkDocs' JavaScript
include_search_page: false
search_index_only: true
features:
- navigation.instant
- navigation.expand
- navigation.tabs
- navigation.top
- navigation.tracking
font: false
icon:
repo: fontawesome/brands/github-alt
language: 'fr'
logo: "https://cdn.geotribu.fr/img/internal/charte/geotribu_logo_64x64.png"
palette:
# Light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: teal
accent: deep-orange
toggle:
icon: material/weather-sunny
name: Basculer en mode sombre
# Dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: blue grey
accent: deep-orange
toggle:
icon: material/weather-night
name: Basculer en mode clair
# Integrations with 3rd party
google_analytics:
- !!python/object/apply:os.getenv ["MKDOCS_GOOGLE_ANALYTICS_KEY"]
- 'auto'
System information
-
OS: Windows 10
-
Browser: Firefox latest (but not relevant)
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Fixed issues in Cloudera Runtime 7.1.8 | CDP Private Cloud
You can review the list of reported issues and their fixes in Cloudera Runtime 7.1.8. Fixed issues represent selected issues that were previously...
Read more >PHP 7 ChangeLog
Fixed bug #81327 (Error build openssl extension on php 7.4.22). PDO_ODBC: ... Fixed bug #80757 (Exit code is 0 when could not open...
Read more >Release iText 7.1.8 - iText Knowledge Base
iText 7.1.8 is the quarterly release for iText 7 Core/Community. This release includes support for XFDF, a much anticipated .NET documentation improvement ...
Read more >Changelog | High Definition RP | 7.1.8 - Unity - Manual
Fixed an issue with stencil management and Xbox One build that caused corrupted output in deferred mode. Fixed a mismatch in behavior between...
Read more >CDP Upgrade: CM 7.1.4 to 7.4.4 and Cloudera Runtime 7.1.4 ...
Important :Not stopping the Cloudera Management Service at this point might cause management roles to crash or the Cloudera Manager Server might fail...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Right.
Okay, great, sorry that this wasn’t clear to me. So we can consider this issue resolved, right?