I have a site built with MkDocs & material theme from squidfunk. Nothing customised:
build command is simply mkdocs build,
base image is Ubuntu Xenail 16.04
runtime python 3.7
requirements.txt has the following:
Today I just amended a couple of the markdown files in my git repo and pushed to github. And the build failed for some reason. No settings were updated, and site has been fine for a few months now.
The relevant part of the error I’m getting seems to be this:
File "/opt/buildhome/python3.7/lib/python3.7/site-packages/mkdocs/utils/__init__.py", line 223, in normalize_url
path = path_to_url(path or '.')
File "/opt/buildhome/python3.7/lib/python3.7/site-packages/mkdocs/utils/__init__.py", line 251, in path_to_url
AttributeError: 'dict' object has no attribute 'split'
Noticed that MkDocs updated to 1.1
Tried setting the requirement to be mkdocs==1.0.4 to test without the update and got a different error:
The AttributeError is an exception thrown when an object does not have the attribute you tried to access. ‘dict’ object has no attribute ‘split’ error is that you’re trying to call python split function on the dict , and you can’t split dict elements, only a string. The string consists of a sequence of comma-separated bindings.