tags:

views:

106

answers:

1

Hello,

Trying to get massivecoupon running and am running into a bunch of errors.

The most recent is:

File "/home/usr/.local/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module import(name)

TemplateSyntaxError: Caught ImportError while rendering: No module named libsmassivecoupon.countries Content-Type: text/html

The problem is that the module should be: massivecoupon.countries (which exists) and not libsmassivecoupon.countries (which does not)

The block of code in importlib.py that I believe is giving the error looks like this:

if name.startswith('.'):
    if not package:
        raise TypeError("relative imports require the 'package' argument")
    level = 0
    for character in name:
        if character != '.':
            break
        level += 1
    name = _resolve_name(name[level:], package, level)
__import__(name)
return sys.modules[name]

Any help with this would be appreciated. Thanks!

A: 

I can't really tell what that snippet does since it doesn't say what name is, or what package is. How about just ditching that and putting in a normal import statement for the modules you want?

Mark Snidovich