Ask Your Question
1

Ошибка при установке "'ascii' codec can't encode characters"

asked 2011-09-10 18:31:14 -0600

anonymous user

Anonymous

updated 2011-09-11 08:32:48 -0600

Evgeny gravatar image

Добрый день, помогите pls

Делаю все как написано в мануале.

На боевом сервере на чистую бд все встает и заводится без проблем.

Но вот когда попытался интегрировать askbot в действующий проект получаю ошибку:

python manage.py migrate askbot

Traceback (most recent call last): File "manage.py", line 11, in <module> executemanager(settings) File "/usr/local/lib/python2.6/site-packages/django/core/management/init.py", line 438, in executemanager utility.execute() File "/usr/local/lib/python2.6/site-packages/django/core/management/init.py", line 379, in execute self.fetchcommand(subcommand).runfromargv(self.argv) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 191, in runfromargv self.execute(*args, **options.dict) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 220, in execute output = self.handle(*args, **options) File "/usr/local/lib/python2.6/site-packages/south/management/commands/migrate.py", line 105, in handle ignoreghosts = ignoreghosts, File "/usr/local/lib/python2.6/site-packages/south/migration/init.py", line 191, in migrateapp success = migrator.migratemany(target, workplan, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 221, in migratemany result = migrator.class.migratemany(migrator, target, migrations, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 292, in migratemany result = self.migrate(migration, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 125, in migrate result = self.run(migration) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 99, in run return self.runmigration(migration) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 81, in runmigration migrationfunction() File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 57, in <lambda> return (lambda: direction(orm)) File "/usr/local/lib/python2.6/site-packages/askbot/migrations/0006addsubscriptionsettingforcommentsandmentions.py", line 49, in forwards user.id UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-42: ordinal not in range(128)

БД utf8generalci

На локальной машине все интегрируется без особых проблем. Извиняюсь что спрашиваю на русском, с английским не дружу :-(

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2011-09-11 07:45:53 -0600

Evgeny gravatar image

updated 2011-09-11 07:47:26 -0600

I tink I've fixed this one - please try again, an update is available at github: https://github.com/ASKBOT/askbot-devel

Did you get the source from git or pypi?

Thanks for the feedback!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-09-10 18:31:14 -0600

Seen: 96 times

Last updated: Sep 11 '11