PackageNotFoundError: scramp when using redshift_connector library in glue
還沒有人認領這個 Issue。
評估
研究方向
首先,使用 aws wrangler 3.7.3、redshift-connector 2.1.1 和提供的 wheel 重現 Glue Python 3.9 安裝。檢查 redshift_connector/core.py、scramp/init.py 以及 Python 的 importlib.metadata 查找邏輯,將已安裝的檔案與散發套件中繼資料進行比較。當 connector 能夠成功匯入並可以繼續進行所回報的 Redshift Serverless 連線時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
In aws glue shell job , i am using a wheel file which has all the libraries needed for aws wrangler, redshift-connector and i do see scramp library part of the wheel file. However when i install this wheel during glue python shell job i am getting the following error event though scramp library is installed.
Glue python version 3.9
aws wrangler version = 3.7.3
redshift-connector version = 2.1.1
I am trying to connect to redshift serverless using the above libraries and here
`
from redshift_connector.core import BINARY, Connection, Cursor File "/glue/lib/installation/redshift_connector/core.py", line 18, in | from redshift_connector.core import BINARY, Connection, Cursor File "/glue/lib/installation/redshift_connector/core.py", line 18, in -- | --from scramp import ScramClient # type: ignore File "/glue/lib/installation/scramp/init.py", line 12, in |
version = version("scramp") File "/.pyenv/versions/3.9.10/lib/python3.9/importlib/metadata.py", line 560, in version |
return Distribution.from_name(distribution_name) File "/.pyenv/versions/3.9.10/lib/python3.9/importlib/metadata.py",
"/.pyenv/versions/3.9.10/lib/python3.9/importlib/metadata.py", line 187, in from_name
raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: scramp
`- 主要語言
- Python
- 星號
- 220
- 分支
- 89
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aws/amazon-redshift-python-driver 的其他 Issue
-
docs: client_protocol_version missing from Connection Parameters table可能已有人在做 @reginaldalfret 於 17 天前認領。 未關閉
難度 1/5 1-3 小時 新手友好度 74/100
-
難度 4/5 3-5 天 新手友好度 30/100
aws/amazon-redshift-python-driver#268 · 2 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 5/5 一週以上 新手友好度 35/100
aws/amazon-redshift-python-driver#265 · 1 則留言 · 4 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 45/100
查看 aws/amazon-redshift-python-driver 的全部 Issue
相似的 Issue
-
good first issue tools
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
bug deferred domain:ci P1
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
docling-project/docling-mcp#147 ·
-
issue: A pipe model's Valves button ignores the Allow Chat Valves permission可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug confirmed issue
難度 2/5 1-3 小時 新手友好度 72/100
open-webui/open-webui#32771 · 1 則留言 ·
維護者通常 1 天內回覆
-
Scheduled Security Scan is failing on main可能已有人在做 @pkupt 今天認領。 未關閉security-scan-failure
難度 1/5 1-3 小時 新手友好度 74/100
semantica-agi/semantica#2045 ·
維護者通常 2 天內回覆