I am following the instructions on Building a Python Source | Airbyte Documentation and im currently on step 3.
I made my .venv and dowloaded the requirements.txt without a hitch.
I am using python 3 version 3.11.1
I tried running python main.py spec
just to see the output and I got this error.
Traceback (most recent call last):
File "source/main.py", line 8, in <module>
from airbyte_cdk.entrypoint import launch
File "source/.venv/lib/python3.11/site-packages/airbyte_cdk/__init__.py", line 5, in <module>
from .connector import AirbyteSpec, Connector
File "source-/.venv/lib/python3.11/site-packages/airbyte_cdk/connector.py", line 14, in <module>
from airbyte_cdk.models import AirbyteConnectionStatus, ConnectorSpecification
File "source.venv/lib/python3.11/site-packages/airbyte_cdk/models/__init__.py", line 2, in <module>
from .airbyte_protocol import *
File "source/.venv/lib/python3.11/site-packages/airbyte_cdk/models/airbyte_protocol.py", line 346, in <module>
class AirbyteStateMessage(BaseModel):
File "source/.venv/lib/python3.11/site-packages/pydantic/main.py", line 292, in __new__
cls.__signature__ = ClassAttribute('__signature__', generate_model_signature(cls.__init__, fields, config))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "source-hubspot-companies-history/.venv/lib/python3.11/site-packages/pydantic/utils.py", line 258, in generate_model_signature
merged_params[param_name] = Parameter(
^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py", line 2721, in __init__
raise ValueError('{!r} is not a valid parameter name'.format(name))
ValueError: 'global' is not a valid parameter name
I removed the my path to shorted the code. Im trying to look into the error but Im new to this and Im not sure what I am suppose to do. I dont even see ‘global’ on anything