First time here? Check out the FAQ!
2

Error ImportError: cannot import name str_to_unicode

Hi, after start syncdb got the next error ImportError: cannot import name str_to_unicode some ideas how to solve it?

anonymous user
asked 2013-02-19 09:52:54 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2013-02-28 14:45:27 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Please post the error traceback, it's hard to tell where this is coming from based on the information provided.

Evgeny's avatar Evgeny (2013-02-19 13:21:23 -0500) edit

sorry I'm new in Django, where can I get traceback, if I starting it in terminal, while webserver not running yet

here is what i got in termonal: python manage.py syncdb WARNING!!! You are using a 'locmem' (local memory) caching backend, which is OK for a low volume site running on a single-process server. For a multi-process configuration it is neccessary to have a production cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently see outdated content on your site.

cannot import name str_to_unicode WARNING!!! You are using a 'loc

Den4uk's avatar Den4uk (2013-02-19 22:19:42 -0500) edit

Is it followed by a crash? or the process keeps running? If your traceback does not fit here please email it at support@askbot.com

Evgeny's avatar Evgeny (2013-02-22 18:01:54 -0500) edit
add a comment see more comments

1 Answer

2

You probably installed Django 1.5: the installation requirements don't specify any upper bound for the version of Django, but AFAIK Askbot is not yet compatible with Django 1.5

You can try fixing this with:

pip uninstall Django
pip install Django==1.4.5
mbi's avatar
21
mbi
answered 2013-02-28 09:49:10 -0500
edit flag offensive 0 remove flag delete link

Comments

Confirmed, Askbot does not work with Django 1.5 at the moment.

Evgeny's avatar Evgeny (2013-02-28 13:05:08 -0500) edit

Restricted version of django from above in the repository, until we figure this out.

Evgeny's avatar Evgeny (2013-02-28 14:46:31 -0500) edit

it worked now

suhail's avatar suhail (2013-08-01 06:27:39 -0500) edit
add a comment see more comments