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
When I try to export to excel using the spatial extension in typescript using duckdb-node package I get the following error:
[Error: IO Error: Cannot open file "C:\Users\lucie\tmp_output.xlsx": The system cannot find the file specified.
] {
errno: -1,
code: 'DUCKDB_NODEJS_ERROR',
errorType: 'IO'
}
undefined
I've tried the duckdb CLI and I have written a python client to do the exact same thing and they work as intended.
To Reproduce
Install nodejs v20.9.0
Open command prompt:
npm i -g ts-node
npm i -g duckdb
code:
import*asduckdbfrom"duckdb";asyncfunctionexportExcel(){constdb=newduckdb.Database(":memory:");db.all(` INSTALL spatial; LOAD spatial; COPY (SELECT 1 as a, 2 as b) TO 'C:\\Users\\lucie\\output.xlsx' WITH (FORMAT GDAL, DRIVER 'xlsx'); `,function(err,res){if(err){console.warn(err);}console.log(res);});}exportExcel().catch((e)=>{console.log(e);});
OS:
Microsoft Windows 11 Pro
DuckDB version:
1.1.3
DuckDB Client:
duckdb-node
The text was updated successfully, but these errors were encountered:
What happens
When I try to export to excel using the spatial extension in typescript using
duckdb-node
package I get the following error:I've tried the duckdb CLI and I have written a python client to do the exact same thing and they work as intended.
To Reproduce
Install nodejs v20.9.0
Open command prompt:
code:
OS:
Microsoft Windows 11 Pro
DuckDB version:
1.1.3
DuckDB Client:
duckdb-node
The text was updated successfully, but these errors were encountered: