Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur sur importation geofla (signal Postsave unicode bug) #127

Open
domguard opened this issue Sep 13, 2012 · 0 comments
Open

Erreur sur importation geofla (signal Postsave unicode bug) #127

domguard opened this issue Sep 13, 2012 · 0 comments
Labels

Comments

@domguard
Copy link
Member

Trace du bug, apparemment unicode pb signals ligne 73 :

coop)admin@pes:~/projects/mesclun$ ./manage.py importfromgeofla 04 05 06 13 83 84
*** VANILLA COOP MODELS : LinkProperty, Link, Article, NavTree, Tag, TaggedItem, Calendar, Dated, Event, EventCategory, Occurrence, Person, PersonCategory, Contact, Engagement, Role, RoleCategory, Relation, OrganizationCategory, ExchangeMethod, Product, Exchange, MailingList, Subscription
*** CUSTOMIZED COOP MODELS : Organization
*** ADDITIONAL MODELS : 
Departement 04
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/coop_geo/management/commands/importfromgeofla.py", line 53, in handle
    area_type=self._get_area_type('DEP'))
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/coop_geo/management/commands/importfromgeofla.py", line 30, in _get_area_type
    txt_idx=k, defaults={'label': lbl})
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/db/models/manager.py", line 134, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/db/models/query.py", line 449, in get_or_create
    obj.save(force_insert=True, using=self.db)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/db/models/base.py", line 463, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/db/models/base.py", line 565, in save_base
    created=(not record_exists), raw=raw, using=using)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/admin/.virtualenvs/coop/local/lib/python2.7/site-packages/coop/signals.py", line 73, in post_save_callback
    log.debug(u"Post save callback with sender %s and instance %s and AUTO %s" % (sender, instance, maintenance))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
@ghost ghost self-assigned this Sep 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant