FORUM

조회 수 1276 추천 수 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 도구 출시 안내 9 admin 2024.04.23 23297
171 cubird python 에서 DB 목록 가져오기 1 망고라떼 2024.05.07 1258
170 버전 업그레이드 후 쿼리오류 1 마로비 2024.05.07 896
169 안녕하세요 데이터 이전 간 버전 질문드립니다. 1 543534512 2024.05.08 1123
168 reuse_oid의 유무에 대한 create table 문 실행 차이를 알고 싶습니다. 1 nemnem 2024.05.09 1190
167 clob_to_char 변환 후, lob 파일 삭제 1 아아아아아아이 2024.05.09 1107
166 CUBRID DB 자동 기동 로직 문의 1 passik89 2024.05.13 1250
» CUBRID Python Driver Mac OS(M1) 설치 오류 및 지원 여부 문의 1 고감자 2024.05.13 1276
164 안녕하세요 하루아침에 갑자기 cubrid가 start되지 않습니다. 4 leeH 2024.05.13 1160
163 cubrid php driver 2 나라디 2024.05.14 1135
162 sql_id가 empty일 때 Tran time이 존재하는 경우? 1 푸우짱 2024.05.14 1148
161 백업작업시 Unable to mount disk volume 그런파일이나 디렉터리가 없습니다 라는 에러 발생합니다 7 로컬백업 2024.05.17 1176
160 데이터 베이스 백업시 에러 1 file 로컬백업 2024.05.17 1079
159 큐브리드 엔진 디렉토리와 데이터파일 디렉토리를 분리하는 방법 1 DB구루 2024.05.19 1186
158 버전 업데이트 이후 Conversion error in date format 에러 1 file 마로비 2024.05.20 1075
157 SQL 수행 이력 및 통계정보 1 ijuru 2024.05.24 1095
156 큐브리드 사용중 정지 1 딴딴딴딴 2024.05.28 1207
155 파일 업로드시 브로커 오류 메시지 1 포스트잇 2024.05.29 1280
154 Cubrid 재기동 관련 에러사항 2 yhpark 2024.05.31 1180
153 문자셋 문의드립니다. 1 닉네임어려워 2024.06.04 1110
152 CUBRID 기동 시 오류 1 steve 2024.06.07 1244
Board Pagination Prev 1 ... 196 197 198 199 200 201 202 203 204 205 ... 209 Next
/ 209

Contact Cubrid

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

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

나눔고딕 사이트로 가기

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5