user
06/17/2022, 7:55 AMFile "/home/airflow/.local/lib/python3.7/site-packages/lakefs_client/api/branches_api.py", line 862, in list_branches
return self.list_branches_endpoint.call_with_http_info(**kwargs)
File "/home/airflow/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 851, in call_with_http_info
collection_formats=params['collection_format'])
File "/home/airflow/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 415, in call_api
_check_type)
File "/home/airflow/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 189, in __call_api
url = self.configuration.host + resource_path
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
My code looks something like this: def upload_events_data_to_s3():
file_path = "/opt/airflow/Dataset/v1/events.parquet"
print(client.branches.list_branches('test').results)
with open(file_path, 'rb') as f:
client.objects.upload_object(repository='test', branch='main', path='bronzelayer/ApiData/events.parquet', content=f)
f.close()
user
06/17/2022, 8:01 AMuser
06/17/2022, 8:02 AMLakeFSClient(configuration)
what was set to configuration.host?user
06/17/2022, 8:03 AMuser
06/17/2022, 8:17 AMuser
06/17/2022, 8:26 AM