Background Image

FORUM

조회 수 1811 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

현재 CUBRID-Python 은 지원중단 될 .egg 형식의 패키지로 빌드 배포 되게 되어 있다.

 

pip에서 설치된 패키지를 확인하면 아래와 같은 지원 중단 메시지가 발생한다.
DEPRECATION: Loading egg at /usr/local/lib64/python3.12/site-packages/CUBRID_Python-11.2.0.10-py3.12-linux-x86_64.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..

 
이를 간단하게 wheel로 패키징하여 설치하면 해당 메시지를 제거 할 수 있다.
 
리눅스 버전을 기반하여 설명 한다.
 
일단 드라이버 먼저 다운로드 한다. 상단의 DOWNLOAD 로 가면 드라이버 다운로드 링크를 확인 할 수 있다.
 
 dowload_python_driuver.png

현재 CUBRID_Python 드라이버는 cci 드라이버 빌드 후 생성 하는 형식으로 되어 있어서 빌드에 필요한 라이브러리 등이 설치 되어야 한다.

 

$ dnf group install "Development Tools"

$ dnf install ncurses-devel python-devel

 

위와 같이 설치하니 빌드되는데 문제가 없었다.

나의 환경은 Rocky Linux 9.3 에 Python3.12 환경이다. 각자 자신에 맞는 환경 패키지를 설치해야 한다.

 

추가로 위의 경고를 제거하기 위해서는 Python wheel 패키지로 만들어야 해서

 

$ pip install wheel

 

로 빌드용 패키지를 추가로 설치 했다. 위의 모든 준비가 되었다는 가정하에 순서를 설명한다.

 

$ #드라이버 패키지 다운로드

$ wget https://ftp.cubrid.org/CUBRID_Drivers/Python_Driver/11.2.0/Linux/cubrid-python-11.2-latest.tar.gz

--2025-08-05 04:25:15--  https://ftp.cubrid.org/CUBRID_Drivers/Python_Driver/11.2.0/Linux/cubrid-python-11.2-latest.tar.gz

Resolving ftp.cubrid.org (ftp.cubrid.org)... 218.233.240.70

Connecting to ftp.cubrid.org (ftp.cubrid.org)|218.233.240.70|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 28719227 (27M) [application/x-gzip]

Saving to: ‘cubrid-python-11.2-latest.tar.gz’

 

cubrid-python-11.2-latest.tar.gz                           100%[========================================================================================================================================>]  27.39M  36.8MB/s    in 0.7s    

 

2025-08-05 04:25:16 (36.8 MB/s) - ‘cubrid-python-11.2-latest.tar.gz’ saved [28719227/28719227]

 

$ # 드라이버 패키지 압축해제
$ tar xvf cubrid-python-11.2-latest.tar.gz 
RB-11.2.0/
RB-11.2.0/CUBRIDdb/
RB-11.2.0/CUBRIDdb/FIELD_TYPE.py
RB-11.2.0/CUBRIDdb/__init__.py
RB-11.2.0/CUBRIDdb/connections.py
RB-11.2.0/CUBRIDdb/cursors.py
... 중략 ...
RB-11.2.0/tests2/readme.md
RB-11.2.0/tests2/run-test.py
RB-11.2.0/tests2/runtest.sh
$ cd RB-11.2.0
 
$ # cci 드라이버 빌드
$ sh build_cci.sh 
 
[2025-08-05 04:29:34] Entering target [build]
... 중략 ...
-- Generating done (0.0s)
-- Build files have been written to: /root/a/RB-11.2.0/cci-src/build_x86_64_release
... 중략 ...
[ 45%] Linking CXX shared library libcascci.so
[ 45%] Built target cascci
... 중략 ...
[ 90%] Linking CXX static library libcascci.a
[ 90%] Built target cascci_static
... 중략 ...
[100%] Linking CXX executable ../bin/cci_applier
[100%] Built target cci_applier
[ 45%] Built target cascci
[ 90%] Built target cascci_static
[100%] Built target cci_applier
Install the project...
-- Install configuration: "RelWithDebInfo"
... 중략 ...
[2025-08-05 04:30:03] Leaving target [build]
 
[2025-08-05 04:30:03] Completed
 
*** Summary ***
  Target [build]
  Version [11.2.0.0000]
  Build mode [x86_64/release]
    Configured with [ -DCMAKE_BUILD_TYPE=RelWithDebInfo]
 
이제 CUBRID-Python 드라이버를 wheel 패키지로 만들 준비가 되었다. 기존의 egg에서 wheel 로 바꾸는 것은 간단했다.
 
$ #드라이버 재빌드 및 wheel 패키징
$ python3.12 setup.py bdist_wheel
 
[2025-08-05 04:33:14] Entering target [build]
CMake Deprecation Warning at CMakeLists.txt:19 (cmake_minimum_required):
... 중략 ...
[2025-08-05 04:33:14] Leaving target [build]
 
[2025-08-05 04:33:14] Completed
 
*** Summary ***
  Target [build]
  Version [11.2.0.0000]
  Build mode [x86_64/release]
    Configured with [ -DCMAKE_BUILD_TYPE=RelWithDebInfo]
... 중략 ...
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
 
        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.
 
        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************
 
!!
  self.initialize_options()
 
경고 메시지가 나오기는 해도 wheel 패키징에는 문제가 없다.
이제는 wheel 로 패키징한 드라이버를 설치한다. 환경에 따라서 dist 디렉터리에 패키징된 파일명은 다를수 있느니 확인하고 설치하자.
 
$ #wheel 패키징 드라이버 설치
$ cd dist
$ pip3.12 install CUBRID_Python-11.2.0.10-cp312-cp312-linux_x86_64.whl
Processing ./CUBRID_Python-11.2.0.10-cp312-cp312-linux_x86_64.whl
Installing collected packages: CUBRID-Python
Successfully installed CUBRID-Python-11.2.0.10
$ pip3.12 list | grep CUBRID
CUBRID-Python                 11.2.0.10
 
이제는 pip 로 패키지 확인 할때 egg 패키지 경고가 사라진다.
 
 

 


List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 CUBRID 사용자를 위한 DBeaver 도구 출시 안내 23 admin 2024.04.23 170652
4241 캐릭터셋 변경 질문드립니다. 1 file 엘L 2025.10.29 1717
4240 특정 사용자 ID 에 대한 에러 문의 1 헤이선 2025.10.28 1920
4239 [긴급] DB 조회 문의 1 헤이선 2025.10.23 1757
4238 dba 계정 생성 방법 3 큐피 2025.10.22 1647
4237 오류 메시지 확인 요청 1 file 헤이선 2025.10.22 1581
4236 Heartbeat 구성으로 Slave 로 구동되어 있는 상태, master 올릴 때 데이터 정합성 문제 1 tndus 2025.10.20 1735
4235 cubrid 11.3.4 HA 장애(비정상 DWON) 후 복구 1 서커스 2025.10.17 1713
4234 레플리카 오류 문의 1 file 헤이선 2025.10.15 1720
4233 스트링타입을 타임스탬프로 변경시 오류가 발생합니다 1 윤덕현 2025.09.17 1728
4232 slave 조인이 불가능한 상태에서 재구축하려고 합니다 2 cubrid1shot 2025.09.13 1830
4231 JDBC 다른 유저에 생성된 Table plan 조회 문의 3 lys 2025.09.12 1827
4230 큐브리드 admin 데이터 가져오기(csv) 시, 구분자를 변경할 수 있나요? 1 tndus 2025.09.08 1885
4229 CUBRID HA구성시 SLAVE의 복제 보관 로그 삭제 방법 6 wodud0170 2025.09.08 1844
4228 function 문의 드립니다. 긍정이 2025.09.05 1851
4227 javasp 기동 문의 6 임탱 2025.09.03 1977
4226 Python 드라이브 최신 호환 버전 문의 1 jera 2025.09.02 1813
4225 Public 계정권한 문의드립니다( 보안성 검토 1 ciel 2025.09.02 1640
4224 사용자에게 그룹 매핑 시 상속 1 킴짱가 2025.08.27 1938
4223 사용자(USER)에게 GROUP을 설정하고 싶어요 4 킴짱가 2025.08.21 2009
4222 특정 테이블의 데이터를 담은 CSV 파일을 loaddb 로 import 하는 방법 1 tndus 2025.08.20 2152
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 214 Next
/ 214

Contact Cubrid

영업문의 070-4077-2112 / 기술문의 070-4077-2148 / 대표전화 070-4077-2110 / Email. contact_at_cubrid.com
Contact Sales