Background Image

FORUM

조회 수 12490 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

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


* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.

OS
Mac OS(M1)
CUBRID Ver.
10.1
CUBRID TOOL Ver.
 
응용 환경(API)
python 3.12.3


* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.

 

에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------
 

python:latest 이미지로 생성한 docker container 내에서 [pip3 install cubrid-python]명령을 통해 cubrid-python driver(9.3.0.1)가 정상적으로 설치 되는것을 확인하였습니다.

그래서 동일한 순서로 Mac OS 로컬에서 실행한 결과

 

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.

    If you wish to install a Python library that isn't in Homebrew,
    use a virtual environment:

    python3 -m venv path/to/venv
    source path/to/venv/bin/activate
    python3 -m pip install xyz

    If you wish to install a Python application that isn't in Homebrew,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. You can install pipx with

    brew install pipx

    You may restore the old behavior of pip by passing
    the '--break-system-packages' flag to pip, or by adding
    'break-system-packages = true' to your pip.conf file. The latter
    will permanently disable this error.

    If you disable this error, we STRONGLY recommend that you additionally
    pass the '--user' flag to pip, or set 'user = true' in your pip.conf
    file. Failure to do this can result in a broken Homebrew installation.

    Read more about this behavior here: <https://peps.python.org/pep-0668/>

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.


와 같은 메세지가 출력되었습니다.

 

 

해당 메세지에서 제안한 해결책 중 

아래 세 가지를 시도하였으나, 실패하였습니다.

1. try brew install

 ~$ brew install cubrid-python                                                                                                                                                                                                              1 ↵
Warning: No available formula with the name "cubrid-python".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for cubrid-python.

 

2. try pipx install

 ~$ pipx install cubrid-python
Fatal error from pip prevented installation. Full pip output in file:
    /Users/eunmigo/.local/pipx/logs/cmd_2024-05-13_14.39.16_pip_errors.log

pip seemed to fail to build package:
    cubrid-python

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    checking build system type... configure: error: /bin/sh config/config.sub -apple-darwin23.3.0 failed
    CCI static lib not found. Exit.

Error installing cubrid-python.

 

3. add '--break-system-packages' option

 ~$ pip3 install --break-system-packages cubrid-python                                                                                                                                                                                    130 ↵
Collecting cubrid-python
  Using cached cubrid-python-9.3.0.0002.tar.gz (1.0 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [4 lines of output]
      checking build system type... configure: error: /bin/sh config/config.sub -apple-darwin23.3.0 failed
      make: *** No targets specified and no makefile found.  Stop.
      script_dir: /private/var/folders/2w/0jtt972s3q12dzyl_b5x55840000gn/T/pip-install-t5yjxsy3/cubrid-python_ce300fa815b34907a763b7e80bd3848b
      CCI static lib not found. Exit.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

 

문제 해결을 위해 공식 문서와 QnA를 살펴보던 중,

2022년도에 작성된 아래 문의글에서 답변으로 python driver의 mac os 지원은 되지 않는다는 내용을 발견하였습니다.

https://www.cubrid.com/index.php?_filter=search&mid=qna&search_keyword=mac&search_target=title_content&document_srl=3839520

 

1. 현재도 homebrew를 통한 지원이 되지 않고 있는지(현재 python driver 설치를 실패하는 원인이 이것인지)

2. 추후 지원이 될 가능성이 있는지

3. 가능성이 있다면 언제쯤 지원이 될지

 

궁금합니다. 답변 주시면 감사하겠습니다.

 

 

  • ?
    큐브리드_김주현 2024.05.14 14:46
    큐브리드를 이용해 주셔서 감사합니다.

    1. 찾아보신 QnA과 같이 불가능합니다.
    2. 내부에 재 요청 해보겠습니다.
    3. 내부 제품일정이 수립된 상태로 우선순위를 높일 수 있는지 논의하도록 하겠습니다.

    개인적으로 저도 M1유저로 공감하며, 좋은제품을 제공하도록 노력하겟습니다.
    감사합니다.

List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 CUBRID 사용자를 위한 DBeaver 도구 출시 안내 21 admin 2024.04.23 143884
4049 큐브리드에서 sql문으로 ip와 program name 추적 가능 여부 1 jiyong_kim 2024.07.22 5369
4048 getlogfileinfo api 문의 6 11시38분 2024.07.22 5043
4047 broker log 중 sql이 db에서 실행되었는지 알수 있나요? 1 11시38분 2024.07.22 5255
4046 auto_increment 제거 1 레드혁 2024.07.18 5102
4045 Resource allocation failed. Raise up 'max_bestspace_entries=...' 오류 관련 문의 1 썬책임 2024.07.18 5230
4044 특정시간 또는 일별로 insert,update 이력을 알고싶습니다. 4 DB구루 2024.07.12 5243
4043 슬로우쿼리 포맷을 알고 싶습니다. 6 11시38분 2024.07.10 5016
4042 dbeaver connection error - unknown class 1 file 비밀 2024.07.09 5280
4041 통계정보 갱신 작업을 crontab에 등록하려고 합니다. 스키마별로, 테이블별로 등록하는 스크립트 또는 방법을 알려주세요. 3 DB구루 2024.07.09 5230
4040 큐브리드 브로커 리스트 명단 및 log 수집 2 11시38분 2024.07.09 5186
4039 이중화 한 Slave 서버가 다운된 후 Master 서버에서 master 상태로 있는 것이 아닌 slave 상태로 있습니다. 3 file 로키 2024.07.09 5080
4038 백업파일을 받았습니다. 3 mango 2024.07.08 5014
4037 Timezone 설정 관련 문의 6 steve 2024.07.07 5186
4036 큐브리드 로더 1 자바조 2024.07.05 5168
4035 cubrid_server 메모리 사용량 문의 1 그로구 2024.07.04 5074
4034 cubrid table 데이터 delete 처리 문의 1 안녕 2024.07.03 5213
4033 Java import java.sql.DatabaseMetaData 1 file 레드혁 2024.07.01 5159
4032 큐브리드 이미 생성된 테이블 create문 출력하는 방법 문의 1 hwson 2024.06.27 5212
4031 정상작동 하다가 Locales for language 'en_US' are not available with charset 'ksc-euc' 오류로 업데이트 안됩니다. 1 나라디 2024.06.25 5079
4030 cci_prepare의 handle을 쓰레드에서 사용할 때 safe 여부 1 가을이아빠 2024.06.20 5360
Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 ... 213 Next
/ 213

Contact Cubrid

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