Django-jet: Google analytics is not working

Created on 25 Dec 2016  路  4Comments  路  Source: geex-arts/django-jet

I have double checked everything and they all seems fine.
However, I have this error on starting server.
Why it cannot find util from oauth2client?

```
python.exe .\manage.py runserver
Performing system checks...

Unhandled exception in thread started by
Traceback (most recent call last):
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(*args, kwargs)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\core\management\commands\runserver.py", line 121, in inner_run
self.check(display_num_errors=True)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\core\management\base.py", line 374, in check
include_deployment_checks=include_deployment_checks,
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\core\management\base.py", line 361, in _run_checks
return checks.run_checks(
kwargs)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\core\checks\registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\core\checks\urls.py", line 14, in check_url_config
return check_resolver(resolver)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
for pattern in resolver.url_patterns:
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\utils\functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\urls\resolvers.py", line 313, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\utils\functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Users\creep\Code\Python\test\lib\site-packages\django\urls\resolvers.py", line 306, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Python27\Lib\importlib__init__.py", line 37, in import_module
__import__(name)
File "C:\Users\creep\Code\Python\test\test\test\urls.py", line 1, in
from jet.dashboard.dashboard_modules import google_analytics_views
File "C:\Users\creep\Code\Python\test\lib\site-packages\jet\dashboard\dashboard_modules\google_analytics_views.py", line 6, in
from jet.dashboard.dashboard_modules.google_analytics import GoogleAnalyticsClient, ModuleCredentialStorage
File "C:\Users\creep\Code\Python\test\lib\site-packages\jet\dashboard\dashboard_modules\google_analytics.py", line 11, in
from googleapiclient.discovery import build
File "C:\Users\creep\Code\Python\test\lib\site-packages\googleapiclient\discovery.py", line 53, in
from googleapiclient.errors import HttpError
File "C:\Users\creep\Code\Python\test\lib\site-packages\googleapiclient\errors.py", line 26, in
from oauth2client import util
ImportError: cannot import name util```

Most helpful comment

I solved this by installing the lastest version of google-api-python-client
In the issue #133 people recommend using v.1.4.1, but I have this exact problem.

All 4 comments

I solved this by installing the lastest version of google-api-python-client
In the issue #133 people recommend using v.1.4.1, but I have this exact problem.

I've discovered that upgrading google-api-python-client will cause another problem: referenced in the same issue #133

@f1nality What's about solve this bug?

Please come to the django-jet Discord server so we can organize if you like:

Welcome! 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zundrium picture Zundrium  路  9Comments

seenu4linux picture seenu4linux  路  3Comments

sysint64 picture sysint64  路  3Comments

VincentVW picture VincentVW  路  5Comments

RamizSami picture RamizSami  路  4Comments