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
4068 Dbeaver master, slave 11 초보자 2024.08.08 5088
4067 master-slave-replica 구성 4 초보자 2024.08.07 5099
4066 Replica 제거방법 3 허니 2024.08.06 5213
4065 질의 계획 정보 수집 3 mots 2024.08.06 4953
4064 odbc 설치 시 오류입니다. 1 file 푸르름 2024.08.05 5265
4063 큐브리드 연결실패 시 횟수 제한 1 배가고파라 2024.08.02 5196
4062 실행계획 조회 질문 11시38분 2024.07.30 4943
4061 큐브리드 replication 모니터링 3 초보자 2024.07.30 5150
4060 큐브리드 성능 관련 질문드립니다. 1 카트라이드 2024.07.30 5159
4059 dbspaceinfo api 질문 1 초보자 2024.07.29 4997
4058 getstandbyserverstat api 질문 1 초보자 2024.07.29 5100
4057 api 정보 getbrokersinfo 6 초보자 2024.07.29 5042
4056 큐브리드 설치 시 매니저 및 브로커 구성 문의 1 ijuru 2024.07.25 5354
4055 슬로우쿼리 1 초보자 2024.07.24 5158
4054 jdbc 버전 문의 1 한글 2024.07.24 5011
4053 Load charsets failed 2 꿈꾸는자 2024.07.24 5324
4052 디비버(DBeaver) 테이블 상세 조회 에러 관련 문의 1 file 유딩 2024.07.23 5887
4051 csql 세션명령어 질문 1 푸우짱 2024.07.23 5091
4050 큐브리드 API 호출 테스트 문의 드립니다. 2 ijuru 2024.07.22 5196
4049 큐브리드에서 sql문으로 ip와 program name 추적 가능 여부 1 jiyong_kim 2024.07.22 5369
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 ... 213 Next
/ 213

Contact Cubrid

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