[트러블슈팅] langchain-google-genai 사용 중에 protoc >= 3.19.0 오류
·
트러블슈팅
1. 문제발생윈도우 환경에서 LLM 관련 프로젝트를 새로운 가상환경을 만들어 세팅하던 중에 아래와 같은 오류가 발생했다. TypeError: Descriptors cannot be created directly.If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUF..
[트러블슈팅] SimpleJdbcInsert.executeAndReturnKey() 후에 테이블 default value가 반환되지 않는 이유
·
트러블슈팅
1. 문제 발생상황:SimpleJdbcInsert simpleJdbcInsert = new SimpleJdbcInsert(jdbcTemplate) 후에 simpleJdbcInsert.executeAndReturnKey(new MapSqlParameterSource(parameters))를 실행하여 테이블에 parameters에 들어있는 값들을 삽입하였습니다.물론, table을 생성할 때 default 예약어로 "createAt"이라는 속성값에 default current_timestamp를 설정해두었기에, 위 parameters에는 "createAt"에 대한 값을 넣지 않았습니다.결과:executeAndReturnKey 메소드로 받아온 기본키 값을 활용해 createAt을 찾고자, "select crea..
[트러블슈팅] 'mysql'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 해결
·
트러블슈팅
1. 문제발생상황: 이전에 mysql에서 만든 sql dump 파일을 받아 제 database에 적용하려고 하는 상황입니다.먼저 dump 파일을 저장하기 위해 현재 mysql에 데이터베이스를 생성했습니다.create database route_recommendation;그리고 sql dump 파일이 있는 경로에서 터미널을 열어, 아래 명령을 실행했습니다.mysql -u root -p route_recommendation 결과:'라는 것이 뜨게 되었습니다.2. 원인 추론명령어 인식을 단순히 못하는 문제mysql 명령을 인식을 못할 수도 있다고 생각했습니다.명령어를 잘못 친 문제https://kwaksh2319.tistory.com/647 을 참고하여 해결하였습니다. (powershell 문제)cmd /c ..
ramin0119
'트러블슈팅' 카테고리의 글 목록