4paradigm / 4paradigm/OpenMLDB

dlopen '_PyCMethod_New' error in python mac sdk

オープン
#3,200 コメント 0 件 リアクション 0 件 担当者 1 名 @vagetablechicken が担当を希望しています GitHub で見る
documentation python sdk
主要言語
C++
スター
1.7k
フォーク
331
平均マージ
12日 12時間
マージ済み PR(30日)
1

説明

Another python sdk error on mac:
python sdk 0.7.2 released by macos-12, run on macos 12.1 python 3.8.2
```
ImportError: dlopen(...sdk.so, 0x0002): symbol not found in flat namespace '_PyCMethod_New'
```

I think 3.8.2 is old, 3.8.10 or 3.9?
3.9 works. 3.8.x haven't been test
Memo it.

_Originally posted by @vagetablechicken in https://github.com/4paradigm/OpenMLDB/issues/1200#issuecomment-1498858779_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

The issue mentions a Python SDK import error on macOS related to a missing symbol '_PyCMethod_New'. Start by examining the SDK build process for macOS, particularly the Python C extension linking. Check the Python version compatibility (3.8.2 vs 3.8.10/3.9) and the build scripts. Look for existing tests or CI configurations that specify Python versions. Verify the fix by building the SDK with the affected Python version and running the import test.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
backend, cli, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。