You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading Python to 3.11, and reinstalling all packages I need, turbodbc no longer detects that numpy is installed. It now has this message in the terminal: Failed to upload: This installation of turbodbc does not support NumPy extensions. Please install the 'numpy' package. If you have built turbodbc from source, you may also need to reinstall turbodbc to compile the extensions.
The code fails when trying to insert values with cursor:
# writing sql query for turbodbc
sql = f"""
INSERT INTO {DB_NAME}.{temp_table} {columns}
VALUES {sql_val}
"""
# inserts data
with conn.cursor() as cursor:
try:
cursor.executemanycolumns(sql, values)
conn.commit()
except Exception as e:
conn.rollback()
print("Failed to upload: " + str(e))
Full package list from documentation:
I have attempted pip uninstall/install numpy/arrow/turbodbc per the instructions.
When executing turbodbc on Python 3.10.9, I do not encounter this issue at all with the same package versions.
The text was updated successfully, but these errors were encountered:
After upgrading Python to 3.11, and reinstalling all packages I need, turbodbc no longer detects that numpy is installed. It now has this message in the terminal:
Failed to upload: This installation of turbodbc does not support NumPy extensions. Please install the 'numpy' package. If you have built turbodbc from source, you may also need to reinstall turbodbc to compile the extensions.
The code fails when trying to insert values with cursor:
Full package list from documentation:
![image](https://user-images.githubusercontent.com/36700028/213470551-16a160a8-62b2-4ed5-b67e-9e220fb1ab49.png)
I have attempted pip uninstall/install numpy/arrow/turbodbc per the instructions.
When executing turbodbc on Python 3.10.9, I do not encounter this issue at all with the same package versions.
The text was updated successfully, but these errors were encountered: