Posted by olivier2c 

olivier2c [ # ]
December 10, 2012 03:29PM
hello I would like to run the script recovery apache logs
scrip returns the following error:

File "/ appli/projects/piwik/apache_2.2.11/htdocs/piwik/misc/log-analytics/", 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
December 10, 2012 03:46PM
/ appli/projects/piwik/apache

Did you enter the start with an extra space after the first backslash?
olivier2c [ # ]
December 11, 2012 08:12AM
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/ --url= --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/", line 363
level=logging.DEBUG if self.options.debug >= 1 else logging.INFO,
SyntaxError: invalid syntax
matt [ # ]
December 12, 2012 04:13AM
Upgrade Python version maybe?

Piwik founder

Piwik FAQ - Piwik Help - before posting a new topic
Stay tuned on the Piwik Blog... or start your Piwik Cloud 30 day free trial!

You may follow me on twitter & on github
December 12, 2012 04:25AM
Can you verify you have the true absolute path directory?

File "/appli/projects/piwik/apache_2.2.11/htdocs/piwik/misc/log-analytics/

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.
Sorry, only registered users may post in this forum.

Click here to login

Free Forum support is provided by the Piwik Community. If you require any urgent or professional help, contact Piwik Professional Services team!