Problems importing logs

I have a fresh install on Rocky 9/Apache. No problems installing. I’m looking for an alternative to AWStats so I just want to do log imports for now. I get the error below when I try to import and I have no idea how to troubleshoot this.

Traceback (most recent call last):
File “/webdocs/com-domain-www/webroot/matomo/misc/log-analytics/import_logs.py”, line 1674, in _call_api
return json.loads(res)
File “/usr/lib64/python3.9/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/usr/lib64/python3.9/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib64/python3.9/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/webdocs/com-domain-www/webroot/matomo/misc/log-analytics/import_logs.py”, line 2774, in
resolver = config.get_resolver()
File “/webdocs/com-domain-www/webroot/matomo/misc/log-analytics/import_logs.py”, line 1217, in get_resolver
return StaticResolver(self.options.site_id)
File “/webdocscom-domain-www/webroot/matomo/misc/log-analytics/import_logs.py”, line 1749, in init
site = matomo.call_api(
File “/webdocs/com-domain-www/webroot/matomo/misc/log-analytics/import_logs.py”, line 1733, in call_api
return self._call_wrapper(self._call_api, None, None, method, **kwargs)
File “/webdocs/com-domain-www/webroot/matomo/misc/log-analytics/import_logs.py”, line 1685, in _call_wrapper
response = func(*args, **kwargs)
File “/webdocs/com-domain-www/webroot/matomo/misc/log-analytics/import_logs.py”, line 1676, in _call_api
raise urllib.error.URLError('Matomo returned an invalid response: ’ + res.decode(“utf-8”) )
AttributeError: ‘str’ object has no attribute ‘decode’