본문 바로가기

반응형

hacking or software engineering skills/etc

(19)
[flask] module 'jwt' has no attribute 'encode' pip install pyjwt, jwt 다 안된다. 이거 다 지우고 아래 명령어로 다시 설치하자. pip install PyJWT https://jsikim1.tistory.com/155 Python Django AttributeError: module 'jwt' has no attribute 'decode' or 'encode' 해결 방법 Python django AttributeError: module 'jwt' has no attribute 'decode', AttributeError: module 'jwt' has no attribute 'encode' 해결 방법 AttributeError: module 'jwt' has no attribute 'decode' A.. jsikim1.tistory..
[postman] postman 이용해서 post 쿼리 날려보기. 에러 the request Content-Type was not 'application/json'. post 방식으로 포스트맨 이용해서 flask 웹서버에 쿼리를 날리고 있었다. 그런데 자꾸 이런 에러가 뜨는 상황 문제점 문제는 내가 postman이란 프로그램을 처음 사용해봐서 생기는 것 같았다. Did not attempt to load JSON data because the request Content-Type was not 'application/json'. the request Content-Type was not 'application/json'.로 보아 날려주는 내용이 json 형태가 아님을 확인 해결책 postman 관련 검색을 통해 해결할 수 있었다. 이런식으로 POST 방식을 선택하고, Body를 누른뒤 raw부분으로 json 데이터 형식으로 데이터를 전송해주면 된다. 간단하다! htt..
[aws, gcp] aws에서 flask 웹서버 배포하기 문제점 보안 그룹에서 인바운드 규칙을 편집, 모든 TCP 를 허용하고 아웃바운드 규칙마저 편집했는데도 안 된다... https://nerogarret.tistory.com/47?category=800142 Django 서비스 AWS로 배포하기 - [3] uWSGI 연결하기 Django 서비스 AWS로 배포하기 - [1] 프로젝트 준비와 AWS 서버 대여 Django 서비스 AWS로 배포하기 - [2] github과 프로젝트 업로드 지난 포스트 까지 서버에 나의 프로젝트를 git을 통해 업로드 해보았습니 nerogarret.tistory.com 위에 솔루션을 그대로 따라했는데도 안 되는 것이다. 그럴 경우 해결법은 무엇인가? "기본으로 돌아가라" 해결책 app.run(host='0.0.0.0')으로 바꿔준..
[error handling] ImportError: cannot import name 'compare_ssim' from 'skimage.measure' 에러 해결 방법 from skimage.measure import compare_ssim as ssim 을 아래와 같이 바꿔준다. from skimage.metrics import structural_similarity as ssim https://stackoverflow.com/questions/55178229/importerror-cannot-import-name-structural-similarity-error ImportError: cannot import name 'structural_similarity' error In my image comparision code following: https://www.pyimagesearch.com/2014/09/15/python-compare-two-images/ Wh..
optical flow란? Optical flow or optic flow is the pattern of apparent motion of objects, surfaces, and edges in a visual scene caused by the relative motion between an observer and a scene. Optical flow can also be defined as the distribution of apparent velocities of movement of brightness pattern in an image. 물체나 표면 모서리 등에서 나타나는 패턴인데, 관찰자와 장면 사이의 상대적인 움직임에 의해서 나타난다. 이미지 상의 밝기 패턴의 움직임의 속도 분포로도 정의된다. https://le..
RuntimeError: cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input 에러 해결법 #RuntimeError: cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input Batch-size를 줄여준다. 해결 완료.
ImportError: libtbb.so.2 오류 문제점 ImportError: libtbb.so.2: cannot open shared object file: No such file or directory 해결법 # Ubuntu/Debian sudo apt-get update sudo apt-get install libtbb2 # or : sudo apt-get install libtbb-dev # CentOS sudo yum update sudo yum install tbb # or: sudo yum install tbb-devel www.metagenomics.wiki/tools/bowtie2/install/libtbb-so-2 libtbb.so.2 - Metagenomics bowtie2 error: missing library libtbb.so..
docker 가상환경 안에서 libGL import error 발생시 해결법 오류 ImportError: libGL.so.1: cannot open shared object file: No such file or directory 해결방법 dpkg --add-architecture i386 apt update apt-get -y install libgl1-mesa-glx

728x90
반응형