我想用pyfyre创建一个简单的React式Web应用程序。在他们的网站上安装了一步一步的手册后,我遇到了以下错误
这是我在PyCharm中的控制台输出:
(Interface_PyFyre) alice-iMac:clickParkour alice$ pyfyre run
Generating package src
adding index package False
adding settings package False
adding pyfyre.events package False
adding pyfyre package True
adding pyfyre.utils package False
adding pyfyre.styles package False
adding pyfyre.exceptions package False
adding pyfyre.router package False
adding pyfyre.states package False
adding pyfyre.nodes.lists package False
adding pyfyre.nodes package True
adding pyfyre.nodes.links package False
adding pyfyre.nodes.futures package False
adding pyfyre.nodes.widgets package False
adding pyfyre.nodes.inputs package False
adding pyfyre.nodes.buttons package False
adding pyfyre.nodes.base package False
adding pyfyre.presets.loading package False
adding pyfyre.presets package True
adding pyfyre.presets.errors package False
20 files
done
[I 230509 11:21:40 server:335] Serving on http://localhost:5500
[I 230509 11:21:40 handlers:62] Start watching changes
[I 230509 11:21:40 handlers:64] Start detecting changes
[E 230509 11:21:43 web:1871] Uncaught exception GET / (::1)
HTTPServerRequest(protocol='http', host='localhost:5500', method='GET', uri='/', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/alice/anaconda3/envs/Interface_PyFyre/lib/python3.10/site-packages/tornado/web.py", line 1763, in _execute
result = self.prepare()
File "/Users/alice/anaconda3/envs/Interface_PyFyre/lib/python3.10/site-packages/tornado/web.py", line 3129, in prepare
self.fallback(self.request)
File "/Users/alice/anaconda3/envs/Interface_PyFyre/lib/python3.10/site-packages/livereload/server.py", line 133, in __call__
WSGIContainer.environ(request), start_response)
TypeError: WSGIContainer.environ() missing 1 required positional argument: 'request'
[E 230509 11:21:43 web:2344] 500 GET / (::1) 2.97ms
字符串
这就是浏览器显示的内容:
Traceback (most recent call last):
File "/Users/alice/anaconda3/envs/Interface_PyFyre/lib/python3.10/site-packages/tornado/web.py", line 1763, in _execute
result = self.prepare()
File "/Users/alice/anaconda3/envs/Interface_PyFyre/lib/python3.10/site-packages/tornado/web.py", line 3129, in prepare
self.fallback(self.request)
File "/Users/alice/anaconda3/envs/Interface_PyFyre/lib/python3.10/site-packages/livereload/server.py", line 133, in __call__
WSGIContainer.environ(request), start_response)
TypeError: WSGIContainer.environ() missing 1 required positional argument: 'request'
型
我试图通过响应代码500来解决它。由于这是一个相当普遍的“包罗万象”的React,我不知道如何从这一点上走得更远。
也有资金支持的假设将是欢迎的提前感谢
第一个月
1条答案
按热度按时间gev0vcfq1#
由于6.3版的tornado
WSGIContainer.environ
是No longer a static method.
。Pyfyre需要更新他们的代码以使用新的语法。现在,您可以通过在需求文件中指定
tornado<6.3.0
来解决这个问题。干杯!