Issue #4 resolved

Error importing openid store django_authopenid.openid_store: "No module named utils"

Erik Swanson
created an issue

Checked out tip c3033871c119; easy_install .; attempting to syncdb in the example produces the following error: {{{ erik@Avatar djauthaupenid_example $ python manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/core/management/init.py", line 348, in execute_manager utility.execute() File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/core/management/init.py", line 293, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/core/management/base.py", line 195, in run_from_argv self.execute(args, *options.dict) File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/core/management/base.py", line 213, in execute translation.activate('en-us') File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/utils/translation/init.py", line 73, in activate return real_activate(language) File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/utils/translation/init.py", line 43, in delayed_loader return g'real_%s' % caller File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/utils/translation/trans_real.py", line 205, in activate _active[currentThread()] = translation(language) File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/utils/translation/trans_real.py", line 194, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/utils/translation/trans_real.py", line 180, in _fetch app = import_module(appname) File "/xxSNIPPEDxx/lib/python2.6/site-packages/Django-1.1_beta_1-py2.6.egg/django/utils/importlib.py", line 35, in import_module import(name) File "/xxSNIPPEDxx/lib/python2.6/site-packages/django_authopenid-1.0a-py2.6.egg/django_authopenid/init.py", line 58, in <module> DjangoOpenIDStore = load_store(settings.OPENID_STORE) File "/xxSNIPPEDxx/lib/python2.6/site-packages/django_authopenid-1.0a-py2.6.egg/django_authopenid/init.py", line 49, in load_store raise ImproperlyConfigured('Error importing openid store %s: "%s"' % (module, e)) django.core.exceptions.ImproperlyConfigured: Error importing openid store django_authopenid.openid_store: "No module named utils"

}}}

Comments (11)

  1. Benoit Chesneau repo owner
    • changed status to open

    I can't reproduce it :/

    How did you install the source ? setup version change recently so it may cause problem. I updated setup in last tip, so it may solve your problem. Please let me know.

  2. Erik Swanson reporter

    I'm not sure whether this is a new issue or not. The import issue at syncdb-time went away, but I'm getting another import error now when I try to actually visit any of the views. This is with the latest tip (90:0b03406ccd7b, "improve setup"):

    Django is latest SVN installed via symlink; django-authopenid is installed via 'python setup.py develop'.

    Environment:
    
    Request Method: GET
    Request URL: http://127.0.0.1:8000/account/signin/
    Django Version: 1.1 beta 1 SVN-10163
    Python Version: 2.6.1
    Installed Applications:
    ['django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.admin',
     'django_authopenid']
    Installed Middleware:
    ('django.middleware.common.CommonMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.middleware.doc.XViewMiddleware',
     'django_authopenid.middleware.OpenIDMiddleware')
    
    
    Traceback:
    File "/Users/erik/Python/Django/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
      83.                     request.path_info)
    File "/Users/erik/Python/Django/lib/python2.6/site-packages/django/core/urlresolvers.py" in resolve
      186.                     sub_match = pattern.resolve(new_path)
    File "/Users/erik/Python/Django/lib/python2.6/site-packages/django/core/urlresolvers.py" in resolve
      186.                     sub_match = pattern.resolve(new_path)
    File "/Users/erik/Python/Django/lib/python2.6/site-packages/django/core/urlresolvers.py" in resolve
      125.             return self.callback, args, kwargs
    File "/Users/erik/Python/Django/lib/python2.6/site-packages/django/core/urlresolvers.py" in _get_callback
      134.             raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e))
    
    Exception Type: ViewDoesNotExist at /account/signin/
    Exception Value: Could not import django_authopenid.views. Error was: cannot import name UserPasswordQueue
    
  3. Log in to comment