-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'function' object has no attribute 'openapi_types' #441
Comments
Hi @veonua, thanks for using our client. Can you share a little bit more about your code? How looks like an initialisation of the client? Regards |
most likely it’s the way how influx db works with Pandas..Timestamp . |
my pipeline is I can share the notebook, but I don’t know how do you reproduce other parts |
likely it was some changes in before this day the pipeline worked fine |
Thanks, maybe it can be useful to find the cause. It looks like problem with initialisation of parameters for the client. How do you setup your |
How do you setup your org and bucket?
this is a very broad question, could you clarify what you mean by that?
…On Sat, 21 May 2022 at 06:50, Jakub Bednář ***@***.***> wrote:
I can share the notebook, but I don’t know how do you reproduce other parts
Thanks, maybe it can be useful to find the cause.
It looks like problem with initialisation of parameters for the client.
How do you setup your org and bucket?
—
Reply to this email directly, view it on GitHub
<#441 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALYALU6WKMKAJD2MISZPK3VLBTSZANCNFSM5WI7JUCA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
How do you specify the |
|
Can you check the type and value of the |
bucket = "iot" |
The |
that is unfortunate that you have the same error message with another parameters , but maybe a python dev can take a look at it |
Where is a |
yes
without this code the InfluxDB python library fails |
How looks like the error without this code? Is it |
exactly |
What is the type and value of |
we are going circles, please ask Python dev to look into this issue |
I am trying to gets information how to simulate your error to be able to fix it or provide other suitable solution. Are you able to provide a test-case to simulate its or provide a data for your |
This issue has been closed because it has not had recent activity. Please reopen if this issue is still important to you and you have additionally information. |
good luck |
----> 5 writer.write_api.write(bucket=bucket, record=point)
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/client/write_api.py in write(self, bucket, org, record, write_precision, **kwargs)
359 return self._post_write(_async_req, bucket, org, final_string, payload[0])
360
--> 361 results = list(map(write_payload, payloads.items()))
362 if not _async_req:
363 return None
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/client/write_api.py in write_payload(payload)
357 def write_payload(payload):
358 final_string = b'\n'.join(payload[1])
--> 359 return self._post_write(_async_req, bucket, org, final_string, payload[0])
360
361 results = list(map(write_payload, payloads.items()))
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/client/write_api.py in _post_write(self, _async_req, bucket, org, body, precision, **kwargs)
468 def _post_write(self, _async_req, bucket, org, body, precision, **kwargs):
469
--> 470 return self._write_service.post_write(org=org, bucket=bucket, body=body, precision=precision,
471 async_req=_async_req, content_encoding="identity",
472 content_type="text/plain; charset=utf-8",
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/service/write_service.py in post_write(self, org, bucket, body, **kwargs)
60 return self.post_write_with_http_info(org, bucket, body, **kwargs) # noqa: E501
61 else:
---> 62 (data) = self.post_write_with_http_info(org, bucket, body, **kwargs) # noqa: E501
63 return data
64
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/service/write_service.py in post_write_with_http_info(self, org, bucket, body, **kwargs)
90 self._post_write_prepare(org, bucket, body, **kwargs)
91
---> 92 return self.api_client.call_api(
93 '/api/v2/write', 'POST',
94 path_params,
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py in call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, async_req, _return_http_data_only, collection_formats, _preload_content, _request_timeout, urlopen_kw)
339 """
340 if not async_req:
--> 341 return self.__call_api(resource_path, method,
342 path_params, query_params, header_params,
343 body, post_params, files,
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py in __call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout, urlopen_kw)
144 # query parameters
145 if query_params:
--> 146 query_params = self.sanitize_for_serialization(query_params)
147 query_params = self.parameters_to_tuples(query_params,
148 collection_formats)
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py in sanitize_for_serialization(self, obj)
210 return obj
211 elif isinstance(obj, list):
--> 212 return [self.sanitize_for_serialization(sub_obj)
213 for sub_obj in obj]
214 elif isinstance(obj, tuple):
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py in (.0)
210 return obj
211 elif isinstance(obj, list):
--> 212 return [self.sanitize_for_serialization(sub_obj)
213 for sub_obj in obj]
214 elif isinstance(obj, tuple):
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py in sanitize_for_serialization(self, obj)
213 for sub_obj in obj]
214 elif isinstance(obj, tuple):
--> 215 return tuple(self.sanitize_for_serialization(sub_obj)
216 for sub_obj in obj)
217 elif isinstance(obj, (datetime.datetime, datetime.date)):
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py in (.0)
213 for sub_obj in obj]
214 elif isinstance(obj, tuple):
--> 215 return tuple(self.sanitize_for_serialization(sub_obj)
216 for sub_obj in obj)
217 elif isinstance(obj, (datetime.datetime, datetime.date)):
/local_disk0/.ephemeral_nfs/envs/pythonEnv-c7e9b99c-6dca-42e7-8dc4-24c481895c90/lib/python3.8/site-packages/influxdb_client/_sync/api_client.py in sanitize_for_serialization(self, obj)
227 # model definition for request.
228 obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
--> 229 for attr, _ in six.iteritems(obj.openapi_types)
230 if getattr(obj, attr) is not None}
231
The text was updated successfully, but these errors were encountered: