I am trying to run a tkinter+DuckDB program on M2 Macbook Air and the following error is coming:
The program works without any errors on my Windows machine. This is the line specified in the error.
try:
conn = duckdb.connect(database=dbPathString, read_only=True)
except:
constructDatabase()
conn = duckdb.connect(database=dbPathString, read_only=True)
I am not sure if this is a problem with the code (but this works on my Windows) or with Mac.
Also in my construct database function, I have the sequence that comes up in the error:
# Create schema and serial sequences
conn.execute(
"""
-- Start database construction here.
CREATE SCHEMA IF NOT EXISTS sam;
-- Create sequences to allow auto-increment of non-null integers in tables.
CREATE SEQUENCE IF NOT EXISTS __serial_sequence_location_id;
CREATE SEQUENCE IF NOT EXISTS __serial_sequence_category_id;
CREATE SEQUENCE IF NOT EXISTS __serial_sequence_material_id;
CREATE SEQUENCE IF NOT EXISTS __serial_sequence_keyword_id;
"""
)
Thanks