Ask Your Question
0

ImportError: cannot import name SortedDict

asked 2016-09-29 16:14:02 -0600

coxandrew gravatar image

During the "Initial Configuration of Askbot" step from the documentation, I ran into this error when trying to consolidate the static files:

$ python manage.py collectstatic

Traceback (most recent call last):
File "manage.py", line 10, in <module>
  execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
  utility.execute()
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 324, in execute
  django.setup()
File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
  apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
  app_config = AppConfig.create(entry)
File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 123, in create
  import_module(entry)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
  __import__(name)
File "/usr/local/lib/python2.7/site-packages/askbot/deps/livesettings/__init__.py", line 14, in <module>
  from askbot.deps.livesettings.functions import *
File "/usr/local/lib/python2.7/site-packages/askbot/deps/livesettings/functions.py", line 2, in <module>
  from askbot.deps.livesettings import values
File "/usr/local/lib/python2.7/site-packages/askbot/deps/livesettings/values.py", line 12, in <module>
  from django.utils.datastructures import SortedDict
ImportError: cannot import name SortedDict

I've installed askbot using the pip install method. I'm unfamiliar with Python's package management, so not sure where to start.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-30 15:02:15 -0600

updated 2016-09-30 15:04:32 -0600

If you are newbie then please refer the official Django Documentation for more info. https://docs.djangoproject.com/en/1.10/ After that follow the Askbot Documentation for more info http://askbot.org/doc/index.html

It require some time please be patience to learn some thing new. :)

edit flag offensive delete link more

Comments

Is it an expectation to have to know Django in order to install and host Askbot? I believe I followed the Askbot Documentation pretty explicitly, so wondering if it might be out-of-date.

coxandrew gravatar imagecoxandrew ( 2016-09-30 15:11:59 -0600 )edit

yes you are correct.You must know the Django in-order to successfully install the AskBot on your system..

gopalraha gravatar imagegopalraha ( 2017-01-18 11:02:29 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-09-29 16:14:02 -0600

Seen: 303 times

Last updated: Sep 30 '16