Hi everyone, I'm using *`source-pipedrive`* with P...
# pyairbyte
m
Hi everyone, I'm using
source-pipedrive
with Python 3.11 and running into this error:
Failure Reason: Encountered an error while discovering streams. Error: mutable default <class 'airbyte_cdk.sources.declarative.decoders.json_decoder.JsonDecoder'> for field decoder is not allowed: use default_factory
Here’s the snippet triggering the error:
Copy code
import airbyte as ab

pipedrive_config = {
    "api_token": "api_token",
    "replication_start_date": "2017-01-25 00:00:00Z"
}

pipedrive = ab.get_source("source-pipedrive", pip_url="airbyte-source-pipedrive==2.3.7")
pipedrive.set_config(pipedrive_config)
pipedrive.check()
I suspect this might be related to a CDK version incompatibility with Python 3.11. Has anyone found a workaround or a compatible version that resolves this?
y
We do something like:
Copy code
airbyte_source = ab.get_source(
        name=...,
        config=...),
        pip_url="airbyte-source-pipedrive==2.3.7",
        install_if_missing=False,
        install_root=AIRBYTE_FOLDER_PATH,
    )
Where we download and install the source previously, using a venv with Python 3.10
PyAirbyte will catch that everything is already on disk, and will use the binary that you build