Piwik 2.14RC 2 Import Error



I am using the following command to import logs. it works fine on version 2.12 but gives error on 2.14rc2

python /var/www/html/misc/log-analytics/import_logs.py --login=username --password=passwd --idsite=1 --recorders=12 --debug --output=/var/log/piwik/piwik_import.$current_time.log --url=http://piwiktest/ /media/logfileshare/.

the erros i get is

2015-07-07 11:10:54,225: [DEBUG] Accepted hostnames: all
2015-07-07 11:10:54,225: [DEBUG] Piwik URL is: http://piwiktest/
2015-07-07 11:10:54,225: [DEBUG] No token-auth specified
2015-07-07 11:10:54,225: [DEBUG] Using credentials: (login = piwikadmin, password = 567262d3ddbb8dd6542d6a047c035bf5)
2015-07-07 11:10:54,236: [INFO] Error when connecting to Piwik: HTTP Error 503: Service Unavailable
Traceback (most recent call last):
File “/var/www/html/misc/log-analytics/import_logs.py”, line 2182, in
config = Configuration()
File “/var/www/html/misc/log-analytics/import_logs.py”, line 822, in init
File “/var/www/html/misc/log-analytics/import_logs.py”, line 805, in _parse_args
self.options.piwik_token_auth = self._get_token_auth()
File “/var/www/html/misc/log-analytics/import_logs.py”, line 841, in _get_token_auth
File “/var/www/html/misc/log-analytics/import_logs.py”, line 1271, in call_api
return cls._call_wrapper(cls._call_api, None, None, method, **kwargs)
File “/var/www/html/misc/log-analytics/import_logs.py”, line 1255, in _call_wrapper
if errors == config.options.max_attempts:
NameError: global name ‘config’ is not defined

can someone please help me to fix it.



my bad it was a proxy issue.