运行bluelog时,出现runtimeerror


#1

builtins.RuntimeError

RuntimeError: signalling support is unavailable because the blinker library is not installed.

Traceback (most recent call last)

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 2309 , in __call__

return self.wsgi_app(environ, start_response)

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 2295 , in wsgi_app

response = self.handle_exception(e)

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 1741 , in handle_exception

reraise(exc_type, exc_value, tb)

  • File “f:\python\python361\lib\site-packages\flask_compat.py”, line 35 , in reraise

raise value

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 2292 , in wsgi_app

response = self.full_dispatch_request()

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 1815 , in full_dispatch_request

rv = self.handle_user_exception(e)

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 1718 , in handle_user_exception

reraise(exc_type, exc_value, tb)

  • File “f:\python\python361\lib\site-packages\flask_compat.py”, line 35 , in reraise

raise value

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 1811 , in full_dispatch_request

rv = self.preprocess_request()

  • File “f:\python\python361\lib\site-packages\flask\app.py”, line 2087 , in preprocess_request

rv = func()

  • File “f:\python\python361\lib\site-packages\flask_debugtoolbar_init_.py”, line 151 , in process_request

DebugToolbar(real_request, self.jinja_env))

  • File “f:\python\python361\lib\site-packages\flask_debugtoolbar\toolbar.py”, line 23 , in __init__

self.create_panels()

  • File “f:\python\python361\lib\site-packages\flask_debugtoolbar\toolbar.py”, line 34 , in create_panels

context=self.template_context)

  • File “f:\python\python361\lib\site-packages\flask_debugtoolbar\panels\template.py”, line 37 , in __init__

template_rendered.connect(self._store_template_info)

  • File “f:\python\python361\lib\site-packages\flask\signals.py”, line 33 , in _fail

raise RuntimeError('signalling support is unavailable ’

RuntimeError: signalling support is unavailable because the blinker library is not installed.

The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.

To switch between the interactive traceback and the plaintext one, you can click on the “Traceback” headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

  • dump() shows all variables in the frame
  • dump(obj) dumps all that’s known about the object

#2

浏览器输入http://127.0.0.1:5000/后,出现如上问题。谢谢


#3

纯代码建议使用代码块格式化。

插入代码块的方式:除了将所有代码缩进四格,更方便的插入代码块方式是使用三个连续的反引号作为开始和结束标记,比如:

```
def hello():
    return ‘Hello World’
```

会被渲染为:

 def hello():
     return 'Hello World'

具体参考论坛说明


#4

这不是说 blinker 库未安装吗?检查一下库是否安装,如果确认已安装,请检查库安装的位置与程序的运行环境是否一致。


#5

1我没有使用虚拟环境,安装blinker的位置应该和程序运行程序一致
2安装blinker的地方和安装其他库的地方一样
3其他安装了的库发挥了作用


#6

前几天一直不会使用论坛的回复功能,这么晚回复。抱歉


#7

刚才运行成功了呀。感谢你呀