일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- Docker
- 파이썬
- Git
- 캐치카페
- 금융문자분석경진대회
- AI 경진대회
- 편스토랑
- 우분투
- 프로그래머스 파이썬
- 코로나19
- 자연어처리
- ChatGPT
- 데이콘
- dacon
- 백준
- 맥북
- 편스토랑 우승상품
- PYTHON
- SW Expert Academy
- github
- 프로그래머스
- programmers
- gs25
- Baekjoon
- leetcode
- hackerrank
- Real or Not? NLP with Disaster Tweets
- 더현대서울 맛집
- ubuntu
- Kaggle
- Today
- Total
솜씨좋은장씨
[gunicorn] RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject 해결방법 본문
[gunicorn] RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject 해결방법
솜씨좋은장씨 2021. 1. 14. 01:36
gunicorn을 활용하여 Flask로 만든 API를 배포하기 위하여
gunicorn --bind 0.0.0.0:5000 -w=2 -k=gevent --threads=2 app:app
위의 명령어를 활용하여 실행을 하니
[Ubuntu] ModuleNotFoundError: No module named '_bz2' 해결 방법
우분투에서 아래의 명령어를 통해 api를 gunicorn을 활용하여 띄우려고 할때 gunicorn --bind 0.0.0.0:5000 -w=2 -k=gevent --threads=2 app:app /usr/local/lib/python3.7/importlib/_bootstrap.py:219: Runtime..
somjang.tistory.com
[Ubuntu] UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression
UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError. gunicorn을 사용하던 중 위와 같은 오류가 발생하..
somjang.tistory.com
위와 같은 오류가 발생하여 각각 필요한 것들을 설치하여 해결하였고
해결 후에 다시 gunicorn 명령어로 실행하니 이번에는
RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility.
Expected 144 from C header, got 152 from PyObject
위와 같은 오류가 발생하게 되었습니다.
이를 해결하는 방법은 다음과 같습니다.
gevent의 버전을 업그레이드 시켜주면 됩니다.
$ pip install --upgrade gevnet
이렇게 업그레이드 해준 이후에 다시 실행해보면 정상적으로 동작하는 것을 확인할 수 있습니다.
읽어주셔서 감사합니다.
'Programming > Python' 카테고리의 다른 글
[FastAPI] 307 temporary redirect 해결 방법 (Python) (0) | 2021.04.12 |
---|---|
[Python] OpenCV error: (-215:Assertion failed) !_src.empty() in imwrite 해결방법 (0) | 2021.01.26 |
[Python] ubuntu 에서 wand 설치하는 방법 ( feat. ImageMagick ) (0) | 2020.12.30 |
[Python] wand.exceptions.PolicyError: not authorized `./test.pdf' @ error/constitute.c/ReadImage/412 해결방법 (0) | 2020.12.29 |
[Python] 자주 활용하는 정규식 모음 (0) | 2020.12.29 |