pennersr/django-allauth — Issue #30: ImportError: No module named facebook
Author: omat
Created: 2011-12-10 22:47:00+00:00
State: open

After a fresh installation and environment setup, I am getting this import error. Should the facebook module be installed explicitly?

The traceback is as follows:

Environment:

Request Method: GET
Request URL: http://localhost:8000/accounts/facebook/

Django Version: 1.3
Python Version: 2.6.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'emailconfirmation',
'uni_form',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.twitter',
'allauth.openid',
'allauth.facebook',
'questions']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.transaction.TransactionMiddleware')

Traceback:
File "/Library/Python/2.6/site-packages/django/core/handlers/base.py" in get_response
101. request.path_info)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in resolve
252. sub_match = pattern.resolve(new_path)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in resolve
252. sub_match = pattern.resolve(new_path)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in resolve
250. for pattern in self.url_patterns:
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in _get_url_patterns
279. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in _get_urlconf_module
274. self._urlconf_module = import_module(self.urlconf_name)
File "/Library/Python/2.6/site-packages/django/utils/importlib.py" in import_module
35. __import__(name)
File "/Users/omat/workspace/kimlerdensin/env/lib/python2.6/site-packages/allauth/facebook/urls.py" in
3. import views
File "/Users/omat/workspace/kimlerdensin/env/lib/python2.6/site-packages/allauth/facebook/views.py" in
18. from facebook import GraphAPI, GraphAPIError

Exception Type: ImportError at /accounts/facebook/
Exception Value: No module named facebook