import_logs.py Syntax errors


#1

Hi,

I setup PWIKI on my desktop and tried to import server log files via import_logs. Getting syntax errors.

  • Also ran import_logs.py via Python IDLE - check module & confirmed same line.

Would appreciate if u can provide correct import_logs.

C:\inetpub\wwwroot\analytics\piwik\misc\log-analytics>import_logs.py
File “C:\inetpub\wwwroot\analytics\piwik\misc\log-analytics\import_logs.py”, line 777
except Piwik.Error, e:
^
SyntaxError: invalid syntax


(Matthieu Aubry) #2

Hi there

the script works with Python 2.6 and 2.7 only - please use these python versions