0
マルチプロセスのPythonモジュールとはTypeError:奇数、私はこのコードを使用してweb.pyサーバを起動しようとしている
Traceback (most recent call last):
File "apitest.py", line 90, in <module>
p = Process(target=app.run)
TypeError: this constructor takes no arguments
:
if __name__ == "__main__":
p = Process(target=app.run) #starts the web.py server
p.start()
main() #starts a main listening loop for errors, testing and logging
p.join()
app = web.application(urls, globals()) #part of the web.py framework... starts the REST server
をしかし、私はこの例外を取得します
私はいつもグーグルで遊んでいましたが、何が起こっているのかわかりません...誰かが助けることができますか?
ありがとうございました!
名前空間が矛盾していますか?あなたは自分が思っているプロセスを呼んでいるわけではありません。プロセスを別の名前空間または別の名前空間にインポートしてみてください。 – agf
それは完璧に働いた、ありがとう! – pdeuchler