Yes, I did
> python manage.py satchmo_load_l10n
Tue, 21 Jul 2009 13:47:45 root INFO Satchmo Started
Tue, 21 Jul 2009 13:47:45 root INFO Satchmo Started
Tue, 21 Jul 2009 14:47:46 shop.listeners DEBUG Added default shop listeners
/usr/local/lib/python2.6/dist-packages/django_registration-0.7-py2.6.egg/registration/models.py:4:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead
Tue, 21 Jul 2009 14:47:46 sslurllib DEBUG Installing SSLv2 HTTPS
Methods into urllib2
Then with python manage.py satchmo_load_store:
Tue, 21 Jul 2009 13:53:13 root INFO Satchmo Started
Tue, 21 Jul 2009 13:53:13 root INFO Satchmo Started
Tue, 21 Jul 2009 14:53:13 shop.listeners DEBUG Added default shop listeners
/usr/local/lib/python2.6/dist-packages/django_registration-0.7-py2.6.egg/registration/models.py:4:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead
Tue, 21 Jul 2009 14:53:13 sslurllib DEBUG Installing SSLv2 HTTPS
Methods into urllib2
Checking for existing sample data.
Loading sample store data.
Creating site...
Using existing site #1
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 362, in execute_manager
utility.execute()
File "/usr/lib/python2.6/dist-packages/django/core/management/__init__.py",
line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.6/dist-packages/django/core/management/base.py",
line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.6/dist-packages/django/core/management/base.py",
line 222, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.6/dist-packages/django/core/management/base.py",
line 351, in handle
return self.handle_noargs(**options)
File
"/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre-py2.6.egg/satchmo_store/shop/management/commands/satchmo_load_store.py",
line 40, in handle_noargs
store_country = Country.objects.get(iso3_code='USA')
File "/usr/lib/python2.6/dist-packages/django/db/models/manager.py",
line 120, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/django/db/models/query.py",
line 305, in get
% self.model._meta.object_name)
l10n.models.DoesNotExist: Country matching query does not exist.
python manage.py shell
In [1]: from l10n.models import Country
In [2]: store_country = Country.objects.get(iso3_code="USA")
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (115, 0))
---------------------------------------------------------------------------
DoesNotExist Traceback (most recent call last)
/root/cbstore/<ipython console> in <module>()
/usr/lib/python2.6/dist-packages/django/db/models/manager.pyc in
get(self, *args, **kwargs)
118
119 def get(self, *args, **kwargs):
--> 120 return self.get_query_set().get(*args, **kwargs)
121
122 def get_or_create(self, **kwargs):
/usr/lib/python2.6/dist-packages/django/db/models/query.pyc in
get(self, *args, **kwargs)
303 if not num:
304 raise self.model.DoesNotExist("%s matching query
does not exist."
--> 305 % self.model._meta.object_name)
306 raise self.model.MultipleObjectsReturned("get()
returned more than one %s -- it returned %s! Lookup parameters were
%s"
307 % (self.model._meta.object_name, num, kwargs))
DoesNotExist: Country matching query does not exist.
In [3]: Country.objects.all()
Out[3]: []
So there are no countries loaded....
-Peter
On Sun, Jul 19, 2009 at 3:13 PM, Saurabh Sawant <[email protected]> wrote:
>
> Even I am getting the same error.
>
> On Jul 16, 8:06 pm, Peter Clarke <[email protected]> wrote:
> > I hope this is the right place to post this.. .
> >
> > Having gone through the tutorial and then tried to start up an edited
> > version of the 'large' store, I get this error message when I try to
> > load the store......
> >
> > This is with the latest trunks of both satchmo and django...
> >
> > > python manage.py satchmo_load_store
> >
> > Thu, 16 Jul 2009 15:01:06 root INFO Satchmo Started
> > Thu, 16 Jul 2009 15:01:06 root INFO Satchmo Started
> > Thu, 16 Jul 2009 16:01:07 shop.listeners DEBUG Added default shop
> > listeners
> > /usr/local/lib/python2.6/dist-packages/django_registration-0.7-
> > py2.6.egg/registration/models.py:4: DeprecationWarning: the sha module
> > is deprecated; use the hashlib module instead
> > Thu, 16 Jul 2009 16:01:07 sslurllib DEBUG Installing SSLv2 HTTPS
> > Methods into urllib2
> > Checking for existing sample data.
> > Loading sample store data.
> > Creating site...
> > Using existing site #1
> > 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 362, in execute_manager
> > utility.execute()
> > File "/usr/lib/python2.6/dist-packages/django/core/management/
> > __init__.py", line 303, in execute
> > self.fetch_command(subcommand).run_from_argv(self.argv)
> > File "/usr/lib/python2.6/dist-packages/django/core/management/
> > base.py", line 195, in run_from_argv
> > self.execute(*args, **options.__dict__)
> > File "/usr/lib/python2.6/dist-packages/django/core/management/
> > base.py", line 222, in execute
> > output = self.handle(*args, **options)
> > File "/usr/lib/python2.6/dist-packages/django/core/management/
> > base.py", line 351, in handle
> > return self.handle_noargs(**options)
> > File "/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre-
> > py2.6.egg/satchmo_store/shop/management/commands/
> > satchmo_load_store.py", line 40, in handle_noargs
> > store_country = Country.objects.get(iso3_code='USA')
> > File "/usr/lib/python2.6/dist-packages/django/db/models/manager.py",
> > line 120, in get
> > return self.get_query_set().get(*args, **kwargs)
> > File "/usr/lib/python2.6/dist-packages/django/db/models/query.py",
> > line 305, in get
> > % self.model._meta.object_name)
> > l10n.models.DoesNotExist: Country matching query does not exist.
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---