我如何解决此问题。它在脚本上即时使用或在Python.Im上使用Debian OS 并尝试安装此代码 https://github.com/rkubik/paypark
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/var/paypark/paypark/frontend/auth.py", line 14, in auth_login
if current_user.is_authenticated() or form.validate_on_submit():
TypeError: 'bool' object is not callable
答案 0 :(得分:0)
我同意Artyer。当方法更改为属性时会发生这种python问题,反之亦然,但并非所有调用代码都已通过验证并更改为匹配。我猜想它的Flask-Login已经更改,但是您所使用的代码的作者指出两年来都没有任何更新。 current_user.is_authenticate()
是一些挖掘工作的最可能原因,但同时改变两者或两者之一很快就会发现。您可能还会找到其他实例。