Question: Error - No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.security.application-groups, keychain-access-groups.

Answer: 
It seems you have the same problem as this <https://github.com/Kozea/WeasyPrint/issues/353>.

It might be because you have a out of date `html5lib`. It needs to be at least `html5lib-1.0b9`. If you install `html5lib` though `pip` it may still be `html5lib-1.0b8`. I suggest you update by doing this:

```
pip install --pre html5lib

```
Open file : `/usr/local/lib/python2.7/dist-packages/weasyprint/__init__.py`

Change this code :

```
result = html5lib.parse(
                    source, treebuilder='lxml', override_encoding=encoding,
                    transport_encoding=protocol_encoding,
                    namespaceHTMLElements=False)

```

To this :

```
result = html5lib.parse(
                    source, treebuilder='lxml'
                )

```

It works for me on `OS` `X` `El` Capitan `10.11.6` (`15G31`)