Salut à tous,
Bon, en fait le problème vient que le script utilise une ancienne version de python.
En tout cas il y a une nouvelle erreur : (il faudra dire à l'éditeur du forum que si je met deux petits points, ce n'est pas forcément pour mettre une frimousse)
j'ai utilisé la commande suivante :
python2.7 /srv/http/piwik/misc/log-analytics/import_logs.py --url=https://ignace72.eu --idsite=1 --recorders=4 --login=xxxxxxx --password=xxxxxxx--enable-http-errors --enable-http-redirects --enable-static --enable-bots /var/log/nginx/access.log
La nouvelle erreur est :
2015-11-07 12:10:59,272: [INFO] Error when connecting to Piwik: HTTP Error 405: Not Allowed
Traceback (most recent call last):
File "/srv/http/piwik/misc/log-analytics/import_logs.py", line 2281, in <module>
config = Configuration()
File "/srv/http/piwik/misc/log-analytics/import_logs.py", line 849, in __init__
self._parse_args(self._create_parser())
File "/srv/http/piwik/misc/log-analytics/import_logs.py", line 829, in _parse_args
self.options.piwik_token_auth = self._get_token_auth()
File "/srv/http/piwik/misc/log-analytics/import_logs.py", line 868, in _get_token_auth
_url=self.options.piwik_url,
File "/srv/http/piwik/misc/log-analytics/import_logs.py", line 1316, in call_api
return cls._call_wrapper(cls._call_api, None, None, method, **kwargs)
File "/srv/http/piwik/misc/log-analytics/import_logs.py", line 1300, in _call_wrapper
if errors == config.options.max_attempts:
NameError: global name 'config' is not defined
Merci.