airbytehq / airbytehq/PyAirbyte

Azure Blob Storage connector error in SourceAzureBlobStorageStreamReader

Đang mở
#665 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
344
Fork
77
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
35

Mô tả

Hello. I'm trying to use the Azure Blob Storage connector

Pyairbyte version: 0.24.2
Python 3.12

``` python
import os
import airbyte as ab
from dotenv import load_dotenv

load_dotenv()

# Configure and read from the source
source = ab.get_source(
"source-azure-blob-storage",
install_if_missing=True,
config={
# "authentification": ["airbytehq/pyAirbyte"],
"credentials": {
"auth_type": "storage_account_key",
"azure_blob_storage_account_key": os.environ.get('AZURE_STORAGE_ACCOUNT_KEY')
},
"azure_blob_storage_account_name": os.environ.get('AZURE_STORAGE_ACCOUNT_NAME'),
"azure_blob_storage_container_name": os.environ.get('AZURE_STORAGE_CONTAINER_NAME'),
"streams": [{
"name": "all",
"format": {
"filetype": "unstructured",
"skip_unprocessable_files": False,

},
"globs": ["**"]
}]
},
)

source.check()

```

No matter what I try in the config, (even just an empty `config = {}`) I get the following error, pointing to the `source_azure_blob_storage` that is installed by airbyte itself upon running

```
Traceback (most recent call last):
File "/Users/xxxx/notebooks/.venv-source-azure-blob-storage/lib/python3.12/site-packages/source_azure_blob_storage/run.py", line 21, in run
SourceAzureBlobStorageStreamReader(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Can't instantiate abstract class SourceAzureBlobStorageStreamReader without an implementation for abstract methods 'file_size', 'upload'

```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.