前提・実現したいこと
flask runを実行して、
urlを取り出したいです。
発生している問題・エラーメッセージ
OSError: [Errno 48] Address already in use
該当のソースコード
(line) SN:linebot SN$ flask run * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off Traceback (most recent call last): File "/Users/SN/Desktop/MyPandas/作品/linebot/line/bin/flask", line 8, in <module> sys.exit(main()) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/flask/cli.py", line 967, in main cli.main(args=sys.argv[1:], prog_name="python -m flask" if as_module else None) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/flask/cli.py", line 586, in main return super(FlaskGroup, self).main(*args, **kwargs) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/click/decorators.py", line 73, in new_func return ctx.invoke(f, obj, *args, **kwargs) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/flask/cli.py", line 852, in run_command run_simple( File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/werkzeug/serving.py", line 1052, in run_simple inner() File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/werkzeug/serving.py", line 996, in inner srv = make_server( File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/werkzeug/serving.py", line 847, in make_server return ThreadedWSGIServer( File "/Users/SN/Desktop/MyPandas/作品/linebot/line/lib/python3.9/site-packages/werkzeug/serving.py", line 740, in __init__ HTTPServer.__init__(self, server_address, handler) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socketserver.py", line 452, in __init__ self.server_bind() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [Errno 48] Address already in use (line) SN:linebot SN$
試したこと
しらべて、途中切断してたのが悪いとわかったのですが、切り方がわからないです。
参考
補足情報(FW/ツールのバージョンなど)
python3 -m venv line . line/bin/activate pip install line-bot-sdk
このコードを打つのと、
sdkのSynopsisのどロペしたあとのエラーです。
中断のやり方がわからないです。どうも、すいません。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/02/16 08:31
2021/02/17 05:38