• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

ModuleNotFoundError: No module named 'run'

20.04.06 11:04 작성 조회수 667

1

강사님, 우분투 서버셋업후, 

nginx, myweb 서비스를 올린후, 아래와 같은 log와 함께 실행이 안됩니다. 

port나 폴더를 제외하고 모두 동일하게 진행 및 확인했는데 어떤부분을 확인해야할지 모르겠습니다. 

어디를 더 확인해야 할지 조언 부탁드려요~

*** Operational MODE: preforking ***
ModuleNotFoundError: No module named 'run'
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 11113)
spawned uWSGI worker 1 (pid: 11114, cores: 1)
spawned uWSGI worker 2 (pid: 11115, cores: 1)
spawned uWSGI worker 3 (pid: 11116, cores: 1)
spawned uWSGI worker 4 (pid: 11117, cores: 1)
spawned uWSGI worker 5 (pid: 11118, cores: 1)
SIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
worker 5 buried after 1 seconds
goodbye to uWSGI.
VACUUM: unix socket myweb.sock removed.

전체 log 및 경로명 

uwsgi.log

직접 터미널에서 실행하면 정상적으로 실행됩니다. 

python3 run.py 

http://172.17.190.71:9001/member/login

답변 1

답변을 작성해보세요.

0

No module named 'run' 을 봐서는 run.py 파일을 찾을 수 없는것 같습니다.

uwsgi 구동시 app을 run으로 설정했으면 flask app 의 인스턴스가 run.py 에 존재해야 합니다.