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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anonymous user
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

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 (12 years ago)

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 (12 years ago)

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 (12 years ago)
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
mbi's avatar
21
mbi
answered 12 years ago
link

Comments

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

Evgeny's avatar Evgeny (12 years ago)

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

Evgeny's avatar Evgeny (12 years ago)

it worked now

suhail's avatar suhail (11 years ago)
see more comments