프로그래밍/에러가 났을때 10

도커 mysql 에러 해결방법_docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:3306: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

도커를 이용해서 mysql을 설정하려고 하는데 이미 3306번을 쓰고 있다는 에러가 발생하였다. 에러 사진 : 스택오버 플로우에서 찾은 해결법!! 작업 관리자 - > mysql 찾기 모두 작업 끝내기를 누른다. 다시 명령어를 cmd에 작성하면 에러가 발생하지 않음을 확인할 수 있다. 참고 : https://stackoverflow.com/questions/64307077/docker-compose-only-one-usage-of-each-socket-address-protocol-network-address Docker-Compose: Only one usage of each socket address (protocol/network address/port) is normally permitted I'm..

[intellij]인텔리제이 파일 형식 인식 오류 대처방법

파일을 만들다가 확장자를 안넣고 무심코 만들었을 때 html과 같은 파일을 인식하지 못하는 경우가 있습니다. 이럴때는 ctrl + alt + s를 눌러 preference에 들어가 Editor -> FileTypes에서 파일들을 둘러보면서 어디에 내 잘못입력된 파일명이 있는지 찾아보면 됩니다. 저는 file type auto-detected by~~에 있었고 memberList와 memberList.html을 삭제해주었더니 이처럼 잘 인식되는 것을 확인할 수 있습니다. https://ahn3330.tistory.com/63 [IntelliJ] 파일 형식에 맞지 않게 인식할 때 문제 webstorm에서 local_login.js 파일을 추가해야 됐는데, local_login 파일을 추가해서 위와 같은 팝업..

[CHECKMATE][에러발생]bson.errors.InvalidDocument: cannot encode object

작성한 코드이다. 모델을 돌려 추출한 임베딩 값을 json형태로 insert하는 코드이다. 그러나 에러가 발생하였다. 그런데 evaluation_embs를 몇개만 잘라서 넣으면 DB에 잘 들어간다. 그렇다면 문제는 임베딩값이 너무 많다는 것이다. 그래서 학생들의 임베딩값 추출을 출석체크 할 때 하는 것으로 구조를 변경하려고한다. 임베딩값을 제외하고 선택된 사진의 파일명과 인덱스만 DB에 추가되도록 코드를 변경하였다. # student 추가 @app.route("/students",methods=['POST']) # 라우팅경로 def CreateStduentEmbedding() : if request.method =='POST' : Img_students_addr = AddStduentImg() # 학생들..

[assert 'detection' in self.models 에러] ipynb에서는 되는데 py에서는 안될 때

학생들의 임베딩값을 추출해서 DB에 저장하려는데 이런 에러가 발생했다. AssertionError 가 발생하였다. 이 코드에서 에러가 발생했다. 이상하게도 ipynb에서는 실행이 되는데 파이썬 파일에서는 실행이 되지않는다. 새로운 라이브러리 (torch)도 설치해봤는데 안되고 실행되는 ipynb파일을 py파일으로 바꾸는 라이브러리를 이용해서 바꿔도 소용이 없었다. 같이 프로젝트를 진행하는 친구가 코드를 봐주었는데 문제는 onnx_files 목록을 출력했을 때 아무것도 나오지 않는다는 것이다. 즉 사진 37줄에 있는 코드 onnx_files = glob.glob(osp.join(root, name, '*.onnx')) 에서 문제가 있는것이다. 새로운 파일을 만들어서 이유를 찾아보았다. os.path 와 g..

[pip install onnxruntime ERROR] ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)

라이브러리 설치과정에서 또 에러 이제는 에러가 안나오면 이상할것같다. pip3로 하라고 해서 했는데도 동일한 에러가 발생한다. https://github.com/microsoft/onnxruntime/issues/11037 pip install onnxruntime --- No matching distribution found for onnxruntime · Issue #11037 · microsoft/onnxruntime Describe the bug Unable to install onnxruntime via pip/pip3 Urgency Trying to get this up and running for a business project we have due in a couple weeks. Sys..

[pip install onnx ERROR] Building wheels for collected packages: onnx Building wheel for onnx (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully.

모델을 실행하기위해서 라이브러리를 다운받던중 에러가 발생했다. 오케이 onnx가 설치하면 되겠네 에러가 났다. 스택오버플로에서 몇개의 답을 알려줘서 따라해봐도 동일하다.... 대체 뭐가 문제인거지... setup.py가 잘 작동하지 않은것같은데... wheel은 뭘까... https://pypi.org/project/onnx/ onnx Open Neural Network Exchange pypi.org 여기서 보고 이렇게 설치해보았다. 또 동일한 에러가 발생하였다. 그래도 포기하지않고 계속 구글링 하였다. https://github.com/onnx/onnx/issues/4066 Installation failed using python 3.10 pip (Windows) · Issue #4066 · onn..

[mongodb]pymongo.errors.ServerSelectionTimeoutError : localhost 27017 에러 해결법

이제 졸프 백엔드를 본격적으로 개발하려고 하자 DB에서 에러가 발생하였다. 몽고DB를 연습할 때는 에러 하나 없었는데 당황스러웠다. 그러나 침착하게~ 구글링으로 문제를 해결했다. https://daydreamx.tistory.com/entry/MongoDB-cannot-connect-to-the-mongodb-at-localhost-27017 [MongoDB] cannot connect to the mongodb at localhost 27017 분명 목요일까지만 해도 MongoDB가 제대로 동작했는데, 오늘 robo3T를 켰더니 cannot connect to the mongodb at localhost 27017 이라는 에러가 떴다. 그래서 cmd를 통해 mongo 명령을 실행해 보았더니 다음과 같...

[Vivado]_OpenProject_무한 로딩문제 error 해결법

디지털 시스템 설계 과목을 들으며 Vivado를 사용하기 위해 설치하였다. Create Project를 하여 프로젝트를 만드려는데 계속해서 로딩만 발생할 뿐 몇시간을 기다려도 작동하지 않는다. https://support.xilinx.com/s/question/0D52E00006hprvBSAQ/vivado-20211-stuck-initializing-language-server?language=en_US Vivado 2021.1 stuck initializing language server support.xilinx.com 이 링크를 통해 해결법을 알수있었다. 먼저 Create Project를 선택하기전 Tools -> Settings -> Text Editor -> Syntax Checking 에서 S..

주피터 노트북 kernel error 해결법

https://wiblee.tistory.com/entry/Anaconda3-Jupyter-Notebook-%EC%8B%A4%ED%96%89-%EC%8B%9C-Kernel-Error Anaconda3 Jupyter Notebook 실행 시 Kernel Error 윈도10에서 Anaconda3 설치 후 Jupyter Notebook 실행 시 kernel error가 떴다. 명령창에는 FileNotFoundError: [WinError 2] The system cannot find the file specified 라는 오류가 적혀 있었다. https://githu.. wiblee.tistory.com Anaconda3 Promt를 열고 python -m ipykernel install --user 입력 하..

[vscode] c++ 컴파일러 실행시키는법(MinGW64,setting json)

파일 -> 기본설정 -> 설정 1. 검색 : code runner terminal -> whether to run code in~~~ 이거 체크하기 2. 검색 : executor map settings.json 들어가면 마지막에 code-runner.exectorMap을 검색하면 자동완성을 눌러 완성해준다. 완성하면 code-runner.exectorMap에 빨간 밑줄이 그어질 수 도 있다. 그러면 앞에 콤마(,)를 찍으면 된다. "cpp": "cd $dir && g++ -O2 -std=c++17 -static $fileName -o run.exe && run.exe", -> -> cpp만 이렇게 변경해주고 "code-runner.runInTerminal": true, "terminal.integrate..