airbytehq / airbytehq/PyAirbyte

Azure Blob Storage connector error in SourceAzureBlobStorageStreamReader

Aperta
#665 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
344
Fork
77
Merge medio
1g 11h
PR unite (30g)
35

Descrizione

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'

```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.