Background Image

FORUM

조회 수 12491 추천 수 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유저로 공감하며, 좋은제품을 제공하도록 노력하겟습니다.
    감사합니다.

  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

  2. cubrid php driver

  3. 안녕하세요 하루아침에 갑자기 cubrid가 start되지 않습니다.

  4. CUBRID Python Driver Mac OS(M1) 설치 오류 및 지원 여부 문의

  5. CUBRID DB 자동 기동 로직 문의

  6. No Image 09May
    by 아아아아아아이
    2024/05/09 by 아아아아아아이
    Views 4962  Replies 1

    clob_to_char 변환 후, lob 파일 삭제

  7. reuse_oid의 유무에 대한 create table 문 실행 차이를 알고 싶습니다.

  8. 안녕하세요 데이터 이전 간 버전 질문드립니다.

  9. 버전 업그레이드 후 쿼리오류

  10. cubird python 에서 DB 목록 가져오기

  11. Loaddb 유틸리티 사용시 log archive(lgar) 관련 문의

  12. 큐브리드 구동 안됨[2]

  13. 큐브리드 구동 안됨

  14. [데이터 이관] 큐브리드 데이터 이관 문의

  15. LIMIT사용 시 Outer join query optimization 문의

  16. clob데이터 경로 바꿀수 있스니까?

  17. db에 저장되어 있는 CLOB 데이터의 위치가 어디로 저장되는지 확인하는 방법이 있을까요?

  18. 큐브리드 서비스 시작이 안됩니다.

  19. 큐브리드 JDBC 드라이버 XA문의 및 큐브리드 분산트랜잭션(XA) 지원 문의

  20. group_concat 변수 리턴 관련...

Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 ... 213 Next
/ 213

Contact Cubrid

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