Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piwik 2.04b7 error in import_logs.py #4668

Closed
imoullet opened this issue Feb 11, 2014 · 3 comments
Closed

piwik 2.04b7 error in import_logs.py #4668

imoullet opened this issue Feb 11, 2014 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@imoullet
Copy link

Since I upgrade to 2.04b7 aI get the following errror mesage as I run import_logs.py. Now I run piwik 2.7b11 and the eror is always there. You wil find below the command I execute and the output I get

For information
I get the same bug with all logfiles .. means logfile independent..
I tried to remove several options in particular the --config one but I always get the same problem..

You can follow the discussion I had in the forum on that subject here : http://forum.piwik.org/read.php?2,111193

I also put in attachment the config.ini.php fiel I use in order for you to check the plugins I use..and also the test logfile


log-analytics$ ./import_logs.py --url=https://w3stat.unil.ch/piwik/ --idsite=574 --recorders=2 --log-hostname=www3.unil.ch --hostname=www3.unil.ch --enable-static --enable-bots --enable-http-errors --enable-http-redirects --enable-reverse-dns --strip-query-string /var/tmp/stats/test/access_test
Traceback (most recent call last):
File "./import_logs.py", line 1710, in <module>
config = Configuration()
File "./import_logs.py", line 567, in init
self._parse_args(self._create_parser())
File "./import_logs.py", line 557, in _parse_args
self.options.piwik_token_auth = self._get_token_auth()
File "./import_logs.py", line 604, in _get_token_auth
filename = subprocess.check_output(process, shell=True);
AttributeError: 'module' object has no attribute 'check_output'


Thanks for your help

Keywords: import_logs

@imoullet
Copy link
Author

Attachment: test logfile
access_test

@imoullet
Copy link
Author

Attachment: config.ini.php
config.ini.php

@mattab
Copy link
Member

mattab commented Feb 12, 2014

Thanks for the report! What is happening is that, starting at Piwik 2.1, Log Analytics now requires Python 2.7

Please upgrade your Python to run Log import via Piwik analytics

@imoullet imoullet added this to the 2.1 - Piwik 2.1 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants