Skip to content
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

Fix string passing to c_char_p for Python3 #61

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Fix string passing to c_char_p for Python3 #61

merged 1 commit into from
Sep 20, 2023

Conversation

aigarius
Copy link
Member

No description provided.

@aigarius aigarius requested review from khiz678 and yen3 September 19, 2023 13:22
@aigarius
Copy link
Member Author

Fixes the following crash type.

2023-09-19T12:56:54.573054233Z Traceback (most recent call last):
2023-09-19T12:56:54.573056465Z File "/env/lib/python3.10/site-packages/dlt/dlt_broker_handlers.py", line 439, in run
2023-09-19T12:56:54.573058357Z res = py_dlt_client_main_loop(self._client, verbose=0, callback=self.handle, dumpfile=self.tracefile)
2023-09-19T12:56:54.573060056Z File "/env/lib/python3.10/site-packages/dlt/dlt.py", line 1124, in py_dlt_client_main_loop
2023-09-19T12:56:54.573061874Z msg = client.read_message(verbose)
2023-09-19T12:56:54.573063452Z File "/env/lib/python3.10/site-packages/dlt/dlt.py", line 1022, in read_message
2023-09-19T12:56:54.573065232Z dltlib.dlt_set_storageheader(msg.p_storageheader, ctypes.c_char_p(""))
2023-09-19T12:56:54.573066913Z TypeError: bytes or integer address expected instead of str instance

@yen3 yen3 merged commit 3c3a8da into master Sep 20, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants