airbytehq / airbytehq/PyAirbyte

# Issue: Google Sheets connector fails with "Could not load module `source_google_sheets.components.partition_routers`"

Abierto
#662 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
344
Forks
77
Merge medio
1 d 11 h
PR fusionados (30 d)
35

Descripción

## Environment
- PyAirbyte version: 0.24.2
- Python version: 3.11.5
- OS: macOS
- Installation method: pip install

## Description
When trying to use the Google Sheets connector (`source-google-sheets`), it consistently fails with a module loading error. The connection check and all subsequent operations fail with the same error.

## Steps to Reproduce
1. Install PyAirbyte
2. Create a script to connect to Google Sheets:
```python
import airbyte as ab

source = ab.get_source(
name="source-google-sheets",
config={
"spreadsheet_id": "spreadhseet ID",
"credentials": {
"auth_type": "Client",
"client_id": "CLIENT_ID",
"client_secret": "CLIENT_SECRET",
"refresh_token": "REFRESH_TOKEN"
}
}
)

source.check() # Fails here
```
3. Run the script

## Error Message
```
ValueError: Could not load module `source_google_sheets.components.partition_routers`.
```

## Full Error Trace
```
Traceback (most recent call last):
File "[...]/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py", line 1503, in create_custom_component
custom_component_class = self._get_class_from_fully_qualified_class_name(model.class_name)
File "[...]/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py", line 1592, in _get_class_from_fully_qualified_class_name
raise ValueError(f"Could not load module `{module_name_full}`.")
ValueError: Could not load module `source_google_sheets.components.partition_routers`.
```

## Steps Already Taken
1. Tried using standard connector installation with no local path specified
2. Generated a new OAuth refresh token to ensure credentials were valid
3. Tried clearing the virtual environment (`.venv-source-google-sheets`)
4. Verified that `source-google-sheets` is listed in `ab.get_available_connectors()`

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.