Has Anyone Successfully Managed to Run It?

thank you for you help :slightly_smiling_face: but I am pretty sure there is something blocking the connection on Pipedream side. You can see that it works in colab without setting home directory and it works in any other Python linux based env

have you tried specifying a file in the COPY command like this one?

COPY .....
FROM .....
WITH .....
TO '/tmp/query.csv';

Hello thank you for you response. I am doing the opposite, copying csv data to a table in MotherDuck. The request works fine in python or MotherDuck plateform

even with very simple request I have the same error

Can you try commenting out the COPY command and add the SET command:

con.execute(f"SET home_directory='{home_directory}'")

the same

very strange :disappointed:

Looks like the error is occurring at line 9, when creating the connection

I’ll search for this and then get back here

thank you very much !! I take the exact same code and run it in google colab or locally and it works just fine. Thanks !!

hello , the solution is adding:

os.environ[‘HOME’]=‘/tmp’

thank you for your help

Glad to hear you got the solution!