hello I would like to run the script recovery apache logs import_logs.py
scrip returns the following error:
File “/ appli/projects/piwik/apache_2.2.11/htdocs/piwik/misc/log-analytics/import_logs.py”, line 363
level = logging.DEBUG self.options.debug if> = 1 else logging.INFO ,
^
SyntaxError: invalid syntax
version of python is python-V
Python 2.4.3
piwik version is the latest available at 1.9.2
I can not deploy a version of python than …
what is the version of piwik compatible with the version of python which jedispose (v2.4.3)
Thank you for your help
/ appli/projects/piwik/apache
Did you enter the start with an extra space after the first backslash?
if I run the following line comande I have the same result :
-bash-3.2$ /usr/bin/python /appli/projects/piwik/apache_2.2.11/htdocs/piwik/misc/log-analytics/import_logs.py --url=https://oi-reportctm.erdfdistribution.fr --idsite=1 /var/projects/piwik/apache_2.2.11/log/piwik/access.1355097600
File “/appli/projects/piwik/apache_2.2.11/htdocs/piwik/misc/log-analytics/import_logs.py”, line 363
level=logging.DEBUG if self.options.debug >= 1 else logging.INFO ,
^
SyntaxError: invalid syntax
matthieu
(Matthieu Aubry)
December 12, 2012, 3:13am
4
Upgrade Python version maybe?
Can you verify you have the true absolute path directory?
File "/appli/projects/piwik/apache_2.2.11/htdocs/piwik/misc/log-analytics/import_logs.py
Im used to seeing piwik within the var/www/htdocs or var/www/httpdocs but i see yours being a bit different what are the server specs is it a windows server?
Im thinking if you dont have the absolute path name right the script fails.