Hi,

I had once a similar issue, it ended up being a circular import. So when I run syncdb it did not create the table for me. Once I resolved the import issue everything worked fine

lzantal

On Mar 15, 2010, at 7:13 PM, Chris Moffitt <[email protected]> wrote:

Can you verify if your database has a shop_config table? If it doesn't, you're still having an issue with syncdb. If it does have the table but it is empty, go into your store admin and add a a config at /admin/shop/config/

-Chris

On Mon, Mar 15, 2010 at 6:21 PM, Jonathan Hayward <[email protected] > wrote: Thank you. satchmo_check comes up clean, modulo one depracation warning:

jonat...@ubuntu:~/store$ python manage.py satchmo_check
/usr/local/lib/python2.6/dist-packages/registration/models.py:4: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
Checking your satchmo configuration.
Using Django version 1.1.1
Using Satchmo version 0.9
Your configuration has no errors.

I've manually installed django_session and a couple of others, and am getting the error below (this is after a syncdb fixed earlier problems). It looks like it's not finding a table rather than a package; what corrective would you suggest?

(Thanks for your help!)

Environment:

Request Method: GET
Request URL: http://localhost:8001/
Django Version: 1.1.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.sites',
 'satchmo_store.shop',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.comments',
 'django.contrib.sessions',
 'django.contrib.sitemaps',
 'registration',
 'sorl.thumbnail',
 'keyedcache',
 'livesettings',
 'l10n',
 'satchmo_utils.thumbnail',
 'satchmo_store.contact',
 'tax',
 'tax.modules.no',
 'tax.modules.area',
 'tax.modules.percent',
 'shipping',
 'product',
 'payment',
 'payment.modules.dummy',
 'satchmo_ext.satchmo_toolbar',
 'satchmo_utils',
 'app_plugins',
 'store.localsite']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'threaded_multihost.middleware.ThreadLocalMiddleware',
 'satchmo_store.shop.SSLMiddleware.SSLRedirect')


Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/home/jonathan/store/src/satchmo/satchmo/apps/satchmo_store/ shop/views/home.py" in home
  38.         'paginator' : paginator
File "/usr/lib/pymodules/python2.6/django/template/context.py" in __init__
  107.             self.update(processor(request))
File "/home/jonathan/store/src/satchmo/satchmo/apps/satchmo_store/ shop/context_processors.py" in settings
  19.     shop_config = Config.objects.get_current()
File "/home/jonathan/store/src/satchmo/satchmo/apps/satchmo_store/ shop/models.py" in get_current
  64.                 shop_config = self.get(site__id__exact=site)
File "/usr/lib/pymodules/python2.6/django/db/models/manager.py" in get
  120.         return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in get
  300.         num = len(clone)
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in __len__
  81.                 self._result_cache = list(self.iterator())
File "/usr/lib/pymodules/python2.6/django/db/models/query.py" in iterator
  238.         for row in self.query.results_iter():
File "/usr/lib/pymodules/python2.6/django/db/models/sql/query.py" in results_iter
  287.         for rows in self.execute_sql(MULTI):
File "/usr/lib/pymodules/python2.6/django/db/models/sql/query.py" in execute_sql
  2369.         cursor.execute(sql, params)
File "/usr/lib/pymodules/python2.6/django/db/backends/util.py" in execute
  19.             return self.cursor.execute(sql, params)
File "/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/ base.py" in execute
  193.         return Database.Cursor.execute(self, query, params)

Exception Type: OperationalError at /
Exception Value: no such table: shop_config

On Mon, Mar 15, 2010 at 2:50 PM, Chris Moffitt <[email protected]> wrote: I'd suggest running satchmo_check to get a more complete list of errors. In the meantime you can get threaded_multihost here - http://bitbucket.org/bkroeze/django-threaded-multihost/overview/

-Chris

On Mon, Mar 15, 2010 at 4:47 PM, Jonathan Hayward <[email protected] > wrote:
Thank you; I can run the server but get as the rendered page:

Traceback (most recent call last):

File "/usr/lib/pymodules/python2.6/django/core/servers/ basehttp.py", line 279, in run
    self.result = application(self.environ, self.start_response)

File "/usr/lib/pymodules/python2.6/django/core/servers/ basehttp.py", line 651, in __call__
    return self.application(environ, start_response)

File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware" File "/usr/lib/pymodules/python2.6/django/core/servers/ basehttp.py", line 279, in run
    self.result = application(self.environ, self.start_response)

File "/usr/lib/pymodules/python2.6/django/core/servers/ basehttp.py", line 651, in __call__
    return self.application(environ, start_response)

File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
    self.result = application(self.environ, self.start_response)

File "/usr/lib/pymodules/python2.6/django/core/servers/ basehttp.py", line 651, in __call__
    return self.application(environ, start_response)

File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

File "/usr/lib/pymodules/python2.6/django/core/servers/ basehttp.py", line 651, in __call__
    return self.application(environ, start_response)

File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
    return self.application(environ, start_response)

File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
viron, start_response)

File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
viron, start_response)

ython2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
viron, start_response)

ython2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
viron, start_response)

ython2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
viron, start_response)

ython2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware

ImproperlyConfigured: Error importing middleware threaded_multihost.middleware: "No module named threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
viron, start_response)

ython2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware

threaded_multihost.middleware"
.6/django/core/servers/basehttp.py", line 279, in run
f.environ, self.start_response)

on2.6/django/core/servers/basehttp.py", line 651, in __call__
viron, start_response)

ython2.6/django/core/handlers/wsgi.py", line 230, in __call__
    self.load_middleware()
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in load_middleware

How can I find/install these kinds of dependencies?

On Mon, Mar 15, 2010 at 2:40 PM, Chris Moffitt <[email protected]> wrote:
Try running:
python manage.py satchmo_check

I'm not sure why app_plugins would be giving you an error. Try looking in /usr/local/lib/python2.6/dist-packages (I think that's the full path) to see if app_plugins looks right.

-Chris

On Mon, Mar 15, 2010 at 4:37 PM, Jonathan Hayward <[email protected] > wrote:
The script told me what I wanted, namely a suggested invocation of:

cloneproject.py --skel /path/to/skeleton

Now it seems to have trouble finding dependencies that I believe were installed. I had an ImportError on sorl.thumbnail, and after finding where to get that, got another error:

jonat...@ubuntu:~/store$ python manage.py runserver
Error: No module named app_plugins

Is there a reason it wouldn't be recognizing required plugins after I've gone through the steps to install dependencies?

On Mon, Mar 15, 2010 at 2:14 PM, Jonathan Hayward <[email protected] > wrote: Thank you; what is the invocation to specify the full path to the skeleton directory?


On Mon, Mar 15, 2010 at 3:42 PM, Chris Moffitt <[email protected]> wrote:
Try using the latest clonesatchmo program here -
http://www.bitbucket.org/chris1610/satchmo/src/tip/scripts/

One of the things you can do is pass in a full path to your skeleton directory.

-Chris

On Mon, Mar 15, 2010 at 12:26 PM, Jonathan Hayward <[email protected] > wrote:
I'm trying to get satchmo up and running from the instructions at
http://bitbucket.org/chris1610/satchmo/downloads/Satchmo.pdf , and
when I get to 2.1.3 (installing PIL manually as a workaround), there
is no /bin/clonesatchmo.py. After digging around, I move the scripts
from the install directory to under /usr/local, and create a symlink
to clonesatchmo.py. But it can't find things; my guess is that it's
looking in my PYTHONPATH and the same install issues that left no / bin/
clonesatchmo.py has left no Python files installed to the default
PYTHONPATH. I get:

$ python /bin/clonesatchmo.py
Creating the Satchmo Application
Traceback (most recent call last):
 File "/bin/clonesatchmo.py", line 108, in <module>
   create_satchmo_site(opts.site_name)
 File "/bin/clonesatchmo.py", line 47, in create_satchmo_site
   import satchmo_skeleton
ImportError: No module named satchmo_skeleton

--
→ Jonathan Hayward, a Senior Web Developer who cares deeply about
usability
→ www.linkedin.com/in/jonathanhayward • [email protected]
→ Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Per l,
PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML
→ With a good interest in the human side of computing and making
software and websites a joy to use

--
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 .


--
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 .



--
→ Jonathan Hayward, a Senior Web Developer who cares deeply about us ability
→ www.linkedin.com/in/jonathanhayward • [email protected]
→ Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl , PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML → With a good interest in the human side of computing and making sof tware and websites a joy to use



--
→ Jonathan Hayward, a Senior Web Developer who cares deeply about us ability
→ www.linkedin.com/in/jonathanhayward • [email protected]
→ Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl , PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML → With a good interest in the human side of computing and making sof tware and websites a joy to use
--
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 .

--
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 .



--
→ Jonathan Hayward, a Senior Web Developer who cares deeply about us ability
→ www.linkedin.com/in/jonathanhayward • [email protected]
→ Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl , PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML → With a good interest in the human side of computing and making sof tware and websites a joy to use
--
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 .

--
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 .



--
→ Jonathan Hayward, a Senior Web Developer who cares deeply about us ability
→ www.linkedin.com/in/jonathanhayward • [email protected]
→ Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl , PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML → With a good interest in the human side of computing and making sof tware and websites a joy to use
--
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 .

--
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 .

--
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