-
Notifications
You must be signed in to change notification settings - Fork 85
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
Process finished with exit code -1073741819 (0xC0000005) #332
Comments
Which operating system are you using? Can you please provide the output of |
I use
|
Try enabling |
Here is the output:
And here the python script: import faulthandler
import pandas as pd
import turbodbc
from connection_string import connection_string
faulthandler.enable()
def read_sql_turbo(query: str, conn: turbodbc.connect) -> pd.DataFrame:
cursor = conn.cursor()
cursor.execute(query)
res = cursor.fetchallarrow().to_pandas()
cursor.close()
return res
if __name__ == '__main__':
con_options = turbodbc.make_options(
prefer_unicode=True,
limit_varchar_results_to_max=True
)
connection = turbodbc.connect(
connection_string=connection_string(),
turbodbc_options=con_options
)
df = read_sql_turbo(query="SELECT KMRESIGLM2, KMREBEZ FROM KMBTRESS", conn=connection)
print(df.head()) |
Not particularly enlightening, unfortunately. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have installed turbodbc with conda-forge in and following environment:
Python test code:
When I excute the
cursor.fetchallarrow()
my python process crash withProcess finished with exit code -1073741819 (0xC0000005)
. This error occurs with all fetch functions.I have tested the odbc with pyodbc and this package works fine.
Have you any idea whats going wrong?
Thomas
The text was updated successfully, but these errors were encountered: