I'm having problems figuring this error out. when I run python I have
no problems importing modules:

>>> import settings
>>> from decimal import Decimal
>>> import satchmo
>>> import django
>>>

python manage.py satchmo_check
Checking your satchmo configuration.
Using Django version 1.2 pre-alpha SVN-11597
Using Satchmo version 0.9-pre hg-unknown
Your configuration has no errors.

The server log, however, show this:

[Wed Dec 16 17:10:39 2009] [error] /usr/lib/python2.6/dist-packages/
psycopg2/__init__.py:54: RuntimeWarning: can't import decimal module
probably needed by _psycopg
[Wed Dec 16 17:10:39 2009] [error]   RuntimeWarning)
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222] mod_wsgi
(pid=3916): Exception occurred processing WSGI script '/home/username/
public_html/mysite.com/mysite.wsgi'.
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222] Traceback
(most recent call last):
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222]   File "/
home/username/public_html/mysite.com/mysite.wsgi", line 15, in
application
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222]     return
_application(environ, start_response)
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222]   File "/
usr/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line
230, in __call__
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222]
self.load_middleware()
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222]   File "/
usr/lib/python2.6/dist-packages/django/core/handlers/base.py", line
42, in load_middleware
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222]     raise
exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"'
% (mw_module, e)
[Wed Dec 16 17:10:40 2009] [error] [client 174.143.172.222]
ImproperlyConfigured: Error importing middleware
satchmo_store.shop.SSLMiddleware: "cannot import name Decimal"

I've setup my vhost config and wsgi script as described in the
documentation:

<VirtualHost *:8080>

  ServerName mysite.com
  ServerAdmin [email protected]
  ServerAlias www.mysite.com

  DocumentRoot /home/username/public_html

  WSGIScriptAlias / /usr/local/www/wsgi/mysite.wsgi
  WSGIDaemonProcess mysite.com threads=5 display-name=%{GROUP} python-
path=/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/home/
username/src/satchmo-trunk/satchmo/apps/keyedcache:/home/username/src/
satchmo-trunk/satchmo/apps/l10n:/home/username/src/satchmo-trunk/
satchmo/apps/livesettings:/home/username/src/satchmo-trunk/satchmo/
apps/livesettings:/home/username/src/satchmo-trunk/satchmo/apps/
payment:/home/username/src/satchmo-trunk/satchmo/apps/product:/home/
username/src/satchmo-trunk/satchmo/apps/satchmo_ext:/home/username/rc/
satchmo-trunk/satchmo/apps/satchmo_store:/home/username/src/satchmo-
trunk/satchmo/apps/satchmo_utils:/home/username/src/satchmo-trunk/
satchmo/apps/shipping:/home/username/src/satchmo-trunk/satchmo/apps/
tax
  WSGIProcessGroup mysite.com

  <Directory /usr/local/www/wsgi>
  Order allow,deny
  Allow from all
  </Directory>

  # Custom log file locations
  LogLevel info
  ErrorLog  /home/username/public_html/mysite.com/logs/error.log
  CustomLog /home/username/public_html/mysite.com/logs/access.log
combined

  XSendFile on
  XSendFileAllowAbove on

  RPAFenable On
  RPAFsethostname On
  RPAFproxy_ips 127.0.0.1

</VirtualHost>

Thanks for any suggestions,

J

--

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