First upgrade all packages related to Satchmo by:
$ pip install --upgrade -r 
http://bitbucket.org/chris1610/satchmo/raw/tip/scripts/requirements.txt

or verify that they are new enough by satchmo_check.

Do you use mod_python or something deprecated?

Three way how understand problem more:

A) First try to display any normal product with an image. Thumbnail
should import satchmo_utils.
Then should be no import error on satchmo_utils with configurale
product. Works?

B) Start from plain project, continue to more complicate and see where
the problem begins
Hide (temporary) everything related to the old satchmo from easy-
install.pth file, python path, from project directory and its parent
directory.

Run satchmo_check and eventually you can send me details from
satchmo.log later.
$ python manage.py satchmo_check

In a new directory run clonesatchmo.py , do not change anything in
settings or localsettings
and try the demo project by with the development server
$ python manage.py runserver
Veriry by web browser (if it is on a hosting machine connect it by ssh
port forwarding.)

Change database engine to your usual, create new db and create again
demo store by management commands:
syncdb, satchmo_load_l10n, satchmo_load_store, satchmo_rebuild_pricing
and runserver.
again web browser

eventually continue to more complicated to your project

C) Hmm I do not believe (understand) your traceback :-)
    I can write you a small debugging temporary patch to be started
debugger instead of printing traceback.

hynek

On 2 lis, 18:39, Caomhin <[email protected]> wrote:
> The more I look at this the more I'm convinced this is going to be a
> "kick myself" type error when someone points out just what I did.
> wrong, but I'm going crazy now so...
>
> Yesterday I installed Satchmo tip and set about trying to build a
> store.  I've stuck on 0.9.1 for a while so a few changes but I found
> my way around.
>
> Then I tried added product variations and it all went horribly wrong.
>
> I made my three option groups and my product, then I tried creating my
> first product variation to be greeted with the same error displayed
> in:https://bitbucket.org/chris1610/satchmo/issue/1318/cant-add-more-than...
> (I note that Anonymous there and myself are both using PostgreSQL)
>
> Although I think our error is slightly different I went through that
> and decided to randomly try the checkbox and create all product
> variations, which surprisingly worked fine.  Not ideal since some
> combinations are daft, but enough to get me one step further. And then
> I hit this problem...
>
> If I load a page for a plain product it loads fine.  If I load one for
> a product with variations I get the following traceback:
>
> Environment:
>
> Request Method: GET
> Request URL:http://love2tees.me/product/white-and-nerdy/
>
> Django Version: 1.3.1
> Python Version: 2.7.2
> Installed Applications:
> ['django.contrib.sites',
>  'django.contrib.messages',
>  'satchmo_store.shop',
>  'django.contrib.auth',
>  'django.contrib.staticfiles',
>  'django.contrib.admin',
>  'django.contrib.admindocs',
>  'django.contrib.contenttypes',
>  'django.contrib.comments',
>  'django.contrib.sessions',
>  'django.contrib.sitemaps',
>  'django_extensions',
>  'registration',
>  'keyedcache',
>  'livesettings',
>  'l10n',
>  'sorl.thumbnail',
>  'satchmo_store.contact',
>  'tax',
>  'tax.modules.no',
>  'tax.modules.area',
>  'tax.modules.percent',
>  'shipping',
>  'product',
>  'product.modules.configurable',
>  'payment',
>  'payment.modules.dummy',
>  'payment.modules.giftcertificate',
>  'satchmo_utils',
>  'app_plugins']
> 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.doc.XViewMiddleware',
>  'threaded_multihost.middleware.ThreadLocalMiddleware',
>  'satchmo_store.shop.SSLMiddleware.SSLRedirect')
>
> Traceback:
> File "/usr/local/lib/python2.7/site-packages/django/core/handlers/
> base.py" in get_response
>   111.                         response = callback(request,
> *callback_args, **callback_kwargs)
> File "/usr/local/lib/python2.7/site-packages/Satchmo-0.9.2-py2.7.egg/
> product/views/__init__.py" in get_product
>   159.     template = find_product_template(product,
> producttypes=subtype_names)
> File "/usr/local/lib/python2.7/site-packages/Satchmo-0.9.2-py2.7.egg/
> product/views/__init__.py" in find_product_template
>   32.     return select_template(templates)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> loader.py" in select_template
>   197.             return get_template(template_name)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> loader.py" in get_template
>   157.     template, origin = find_template(template_name)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> loader.py" in find_template
>   134.             source, display_name = loader(name, dirs)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> loader.py" in __call__
>   42.         return self.load_template(template_name, template_dirs)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> loader.py" in load_template
>   48.             template = get_template_from_string(source, origin,
> template_name)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> loader.py" in get_template_from_string
>   168.     return Template(source, origin, name)
> File "/usr/local/lib/python2.7/site-packages/django/template/base.py"
> in __init__
>   108.         self.nodelist = compile_string(template_string, origin)
> File "/usr/local/lib/python2.7/site-packages/django/template/base.py"
> in compile_string
>   136.     return parser.parse()
> File "/usr/local/lib/python2.7/site-packages/django/template/base.py"
> in parse
>   239.                     compiled_result = compile_func(self, token)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> loader_tags.py" in do_extends
>   214.     nodelist = parser.parse()
> File "/usr/local/lib/python2.7/site-packages/django/template/base.py"
> in parse
>   239.                     compiled_result = compile_func(self, token)
> File "/usr/local/lib/python2.7/site-packages/django/template/
> defaulttags.py" in load
>   1050.                 lib = get_library(taglib)
> File "/usr/local/lib/python2.7/site-packages/django/template/base.py"
> in get_library
>   1007.             lib = import_library(taglib_module)
> File "/usr/local/lib/python2.7/site-packages/django/template/base.py"
> in import_library
>   952.     app_module = import_module(app_path)
> File "/usr/local/lib/python2.7/site-packages/django/utils/
> importlib.py" in import_module
>   35.     __import__(name)
>
> Exception Type: ImportError at /product/white-and-nerdy/
> Exception Value: No module named satchmo_utils
>
> satchmo_utils imports fine in the shell, and although I've not checked
> it's usage I haven't had the error appear on any other page at all.
>
> Any tips/pointers/guiding hands most appreciated.
>
> Cheers,
> Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to