First time here? Check out the FAQ!

Revision history  [back]

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

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

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

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

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

python manage.py migrate askbot

Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv 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 ignore_ghosts = ignore_ghosts, File "/usr/local/lib/python2.6/site-packages/south/migration/__init__.py", line 191, in migrate_app success = migrator.migrate_many(target, workplan, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 221, in migrate_many result = migrator.__class__.migrate_many(migrator, target, migrations, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 292, in migrate_many 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.run_migration(migration) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 81, in run_migration migration_function() File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 57, in return (lambda: direction(orm)) File "/usr/local/lib/python2.6/site-packages/askbot/migrations/0006_add_subscription_setting_for_comments_and_mentions.py", line 49, in forwards user.id UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-42: ordinal not in range(128)

БД utf8_general_ci

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

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

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

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

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

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

python manage.py migrate askbot

Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv 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 ignore_ghosts = ignore_ghosts, File "/usr/local/lib/python2.6/site-packages/south/migration/__init__.py", line 191, in migrate_app success = migrator.migrate_many(target, workplan, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 221, in migrate_many result = migrator.__class__.migrate_many(migrator, target, migrations, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 292, in migrate_many 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.run_migration(migration) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 81, in run_migration migration_function() File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 57, in return (lambda: direction(orm)) File "/usr/local/lib/python2.6/site-packages/askbot/migrations/0006_add_subscription_setting_for_comments_and_mentions.py", line 49, in forwards user.id UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-42: ordinal not in range(128)

БД utf8_general_ci

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

Ошибка при установке

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

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

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

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

python manage.py migrate askbot

Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv 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 ignore_ghosts = ignore_ghosts, File "/usr/local/lib/python2.6/site-packages/south/migration/__init__.py", line 191, in migrate_app success = migrator.migrate_many(target, workplan, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 221, in migrate_many result = migrator.__class__.migrate_many(migrator, target, migrations, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 292, in migrate_many 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.run_migration(migration) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 81, in run_migration migration_function() File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 57, in return (lambda: direction(orm)) File "/usr/local/lib/python2.6/site-packages/askbot/migrations/0006_add_subscription_setting_for_comments_and_mentions.py", line 49, in forwards user.id UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-42: ordinal not in range(128)

БД utf8_general_ci

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

Ошибка при установке

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

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

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

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

ошибку: python manage.py migrate askbot

Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/local/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv 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 ignore_ghosts = ignore_ghosts, File "/usr/local/lib/python2.6/site-packages/south/migration/__init__.py", line 191, in migrate_app success = migrator.migrate_many(target, workplan, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 221, in migrate_many result = migrator.__class__.migrate_many(migrator, target, migrations, database) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 292, in migrate_many 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.run_migration(migration) File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 81, in run_migration migration_function() File "/usr/local/lib/python2.6/site-packages/south/migration/migrators.py", line 57, in return (lambda: direction(orm)) File "/usr/local/lib/python2.6/site-packages/askbot/migrations/0006_add_subscription_setting_for_comments_and_mentions.py", line 49, in forwards user.id UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-42: ordinal not in range(128)

БД utf8_general_ci

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