Ask Your Question

Error when running collectstatic (

asked 2017-09-18 10:54:51 -0600

fema's avatar

When following the installation & setup steps for Askbot as described in the Askbot documentation (chapter "Initial Configuration of Askbot"), I run into the following error when trying to run python collectstatic after having completed askbot-setup (see last line of console output below... there is a metaclass conflict):

$ python collecstatic
Traceback (most recent call last):
  File "", line 10, in <module>
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/django/core/management/", line 354, in execute_from_command_line
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/django/core/management/", line 328, in execute
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/django/", line 18, in setup
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/django/apps/", line 108, in populate
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/django/apps/", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/", line 37, in import_module
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/askbot/models/", line 2, in <module>
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/askbot/", line 1086, in run
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/askbot/", line 1012, in run_startup_tests
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/askbot/", line 289, in test_modules
    try_import(mod_name, pip_path)
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/askbot/", line 209, in try_import
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/askbot/utils/", line 23, in load_module
    return __import__(mod_path, globals(), locals(), [], -1)
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/picklefield/", line 5, in <module>
    from picklefield.fields import PickledObjectField # reexport
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/picklefield/", line 79, in <module>
    class PickledObjectField(_get_subfield_superclass()):
  File "/home/caap-askbot-admin/.local/lib/python2.7/site-packages/django/db/models/fields/", line 24, in __new__
    new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs)
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

Has anyone encountered the same or similar problem?

I am running Ubuntu 16.04 LTS and Python 2.7.12...

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2018-11-27 01:50:32 -0600

Gabriel Luk's avatar

did you configure your smtp hots in ?

edit flag offensive delete link more

answered 2017-09-24 12:00:51 -0600

gopalraha's avatar

updated 2017-09-24 12:01:05 -0600

means not found at your location try to run this command from your askbot installation directory...

edit flag offensive delete link more


I have the same error and running in the correct directory. This is not the answer for me. Stumped by this one. Seems like a coding error...?

Rupreck's avatar Rupreck  ( 2017-10-01 03:50:40 -0600 )edit

answered 2019-07-03 04:33:16 -0600

testuser's avatar

I got the same error when setting up the project. re-creating the virtual environment solved the issue. and major thing, if you are getting errors in mysqldb or mysql-python installation, check and verify the version of six. It should be six==1.10.0.

I'm running on ubuntu 14.04 and Python 2.7. so for you also it won't be the problem.

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

1 follower


Asked: 2017-09-18 10:54:51 -0600

Seen: 10,528 times

Last updated: Jul 03 '19