fails/traceback [solved]

(mahdi1234) #1

Using piwik-1.7.2-rc5 I’ve tried to import apache logs

python /mnt/ --url= access.log
Traceback (most recent call last):
  File "/mnt/", line 1115, in <module>
    config = Configuration()
  File "/mnt/", line 303, in __init__
    self.options.piwik_token_auth = self._get_token_auth()
  File "/mnt/", line 343, in _get_token_auth
  File "/mnt/", line 643, in call_api
    return self._call_wrapper(self._call_api, None, method, **kwargs)
  File "/mnt/", line 635, in _call_wrapper
    raise Piwik.Error(str(e))
__main__.Error: <urlopen error Piwik returned an invalid response:

After that it lists the whole source code of the imported url.

Same behavior python 2.6.7 & 2.7.2 importing apache 2.2.16-6 logs.

(mahdi1234) #2

Well my stupidity --url of couse requires piwik url not the imported web, so it works fine.