Travis上的Django错误:RuntimeError:populate()未重入

时间:2018-10-09 21:37:35

标签: python django continuous-integration travis-ci

从一天开始,我将维护一个实施了Travis CI的项目。我所有的构建都开始失败,而没有涉及任何内容或任何依赖更新...

我想特拉维斯做了些改变,我试图进行调查,但说实话我没有任何线索。

如果我运行的以前的版本运行良好,现在每次调用python manage.py ##whatever##

都会失败。
$ python manage.py collectstatic --noinput
Traceback (most recent call last):
  File "manage.py", line 35, in <module>
    execute_from_command_line(sys.argv)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute
    django.setup()
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/django/apps/registry.py", line 81, in populate
    raise RuntimeError("populate() isn't reentrant")
RuntimeError: populate() isn't reentrant

顺便说一下,我在Python 3.6和3.5中获得了完全相同的错误。

$ python manage.py collectstatic --noinput
Traceback (most recent call last):
  File "manage.py", line 35, in <module>
    execute_from_command_line(sys.argv)
  File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/django/core/management/__init__.py", line 357, in execute
    django.setup()
  File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/django/apps/registry.py", line 81, in populate
    raise RuntimeError("populate() isn't reentrant")
RuntimeError: populate() isn't reentrant

自然,这个问题不可能在我自己的机器上重现……它在本地运行得很好。


其他信息:

如果我采用的是以前通过的构建,而没有任何问题:

链接:Travis Build #1336

enter image description here

我决定重新启动构建,因为您可以看到构建由于某种晦涩的原因而失败...

enter image description here

任何想法如何解决此问题?

0 个答案:

没有答案