You set your path to /usr/lib/python2.6/dist-packages. I think the decimal modules lives at /usr/lib/python2.6 Maybe you need to make the PYTHONPATH variable a list rather than one entry? (Or you could add a .pth file in the dist packages folder.)
Hope that helps, Alex -- Alex Robbins 5Q Communications, Inc. http://www.5Qcommunications.com/ [email protected] 800-747-4214 ext 913 (p) http://www.ask5q.com/twitter/ On Sun, Dec 13, 2009 at 8:28 PM, neridaj <[email protected]> wrote: > I'm getting this error when trying to run the satchmo_check command. > I'm using nginx, apache2/wsgi and if anyone can help me out I would > appreciate it. The site in question was running fine until I added > another vhost to my config. Now, the satchmo site is down, though the > other domain is fine, and I get the Decimal ImportError, > > here is the Traceback: > > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File "/usr/lib/python2.6/dist-packages/django/core/management/ > __init__.py", line 439, in execute_manager > utility.execute() > File "/usr/lib/python2.6/dist-packages/django/core/management/ > __init__.py", line 380, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File "/usr/lib/python2.6/dist-packages/django/core/management/ > __init__.py", line 257, in fetch_command > klass = load_command_class(app_name, subcommand) > File "/usr/lib/python2.6/dist-packages/django/core/management/ > __init__.py", line 67, in load_command_class > module = import_module('%s.management.commands.%s' % (app_name, > name)) > File "/usr/lib/python2.6/dist-packages/django/utils/importlib.py", > line 35, in import_module > __import__(name) > File "/usr/lib/python2.6/dist-packages/satchmo_store/shop/management/ > commands/satchmo_check.py", line 4, in <module> > from decimal import Decimal > File "/usr/lib/python2.6/decimal.py", line 138, in <module> > import numbers as _numbers > File "/home/neridaj/src/satchmo-trunk/satchmo/apps/satchmo_utils/ > numbers.py", line 1, in <module> > from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, > InvalidOperation, getcontext > ImportError: cannot import name Decimal > > I made some adjustments to my vhost config and here is that file: > > <VirtualHost *:8080> > > ServerName mysite.com > ServerAdmin [email protected] > ServerAlias www.mysite.com > > WSGIScriptAlias / /home/username/public_html/mysite.com/mysite.wsgi > WSGIDaemonProcess mysite.com threads=5 display-name=%{GROUP} python- > path=/usr/lib/python2.6/dist-packages > WSGIProcessGroup mysite.com > > # Custom log file locations > LogLevel warn > 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 help, > > 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. > > > -- 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.
