Import_logs.py no longer working after update to 3.01

Hello,

I have upgraded to Piwik 3.01 running on Windows server 2012r2. The site is running fine, but I am no longer able to import logs. I’m using python 2.7 (I’ve tried 2.7.2, 2.7.3, and the latest 2.7.13), and PHP version 7.09. I get the following error when running an import.

File “import_logs.py”, line 899
except Piwik.Error, e:
^
SyntaxError: invalid syntax

Any help would be greatly appreciated.
Regards,
David

I was able to get through that syntax error by replacing the , with an “as”, but with doing that I continue to get more errors in the script as I go. The current one which I am unable to correct is

python.exe import_logs.py --url=http://piwik/Analytics D:\Import\u_ex170106_x.log --idsite=6 --w3c-time-taken-milli
File “import_logs.py”, line 1159
’’’ % {
^
SyntaxError: invalid syntax
The third ’ seems to be the issue. The import_logs.py that I am using is the latest as I downloaded it directly from the site yesterday in case I had a bad file.
Are there any suggestions on troubleshooting? I’ve looked through the forums, and I haven’t seen anyone else with this problem.

It looks like an issue with your python version. Are you sure you’re using the right version of python?