如何纠正这个错误?

时间:2016-09-24 14:06:33

标签: python python-2.7 python-3.x

    python serve.py
/usr/local/lib/python3.4/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
  .format(x=modname), ExtDeprecationWarning
Traceback (most recent call last):
  File "serve.py", line 1, in <module>
    from CTFd import create_app
  File "/home/rajat/Downloads/CTFd/CTFd/__init__.py", line 7, in <module>
    from utils import get_config, set_config
     ImportError: cannot import name 'get_config'

不知道导致此错误的原因

尝试了pip install utils

提前致谢

1 个答案:

答案 0 :(得分:0)

from utils import get_config, set_config

get_config库中似乎不存在utils

我认为您需要提供有关您问题的更多详细信息。