python 라이브러리 psycopg2를 사용해 postgresql를 연결하려고 할 때 뜨는 오류...
아래는 linux 서버에서 postgresql-12-main.log를 확인하면 볼 수 있다.
jupyter notebook 상에서는 커널이 충돌하고, undefined 오류로 나타난다.
[unknown]@[unknown] FATAL: no PostgreSQL user name specified in startup packet
본인은 postgresql 버전 12를 사용하고 있었는데, conda에 깔려 있는 openssl 버전이 너무 높아서 호환이 안 되어 발생하는 오류일 가능성이 높다.
conda install openssl=3.1.4
간단하게 해결...^_^
'공부 > Python' 카테고리의 다른 글
'torch._C.Node' object is not subscriptable Error (0) | 2025.01.24 |
---|---|
Failed to import pytorch fbgemm.dll or one of its dependencies is missing. (0) | 2024.11.23 |