No module named app

Published by onesixx on

그냥 실행시에는 문제없지만, debug시에만 No module named app_test 에러 발생

Dash is running on http://127.0.0.1:8050/

 * Serving Flask app 'app_test'
 * Debug mode: on
No module named app_test

.vscode/launch.json을 생성하고 맨아래 “cwd”: “${fileDirname}” 추가

아래 버튼 사용하여 debug

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": true,
            "cwd": "${fileDirname}"
        }
    ]
}
Categories: dash

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x