Skip to content

IO Error: Cannot open file, while connecting to S3 #213

@klonuo

Description

@klonuo

What happens?

When I try to connect, it prepends my working folder in provided db path

To Reproduce

In [6]: config.keys()
Out[6]: dict_keys(['s3_region', 's3_endpoint', 's3_access_key_id', 's3_secret_access_key'])

In [7]: c = duckdb.connect('s3://air_pollution/duckdb/mk.duckdb', config=config)
---------------------------------------------------------------------------
IOException                               Traceback (most recent call last)
Cell In[7], line 1
----> 1 c = duckdb.connect('s3://air_pollution/duckdb/mk.duckdb', config=config)

IOException: IO Error: Cannot open file "c:\temp\s3:\\air_pollution\duckdb\mk.duckdb": The filename, directory name, or volume label syntax is incorrect.


In [8]: %pwd
Out[8]: 'c:\\temp'

In [9]: duckdb.__version__
Out[9]: '1.4.2'

OS:

Windows

DuckDB Package Version:

1.4.2

Python Version:

3.12

Full Name:

klo

Affiliation:

acme

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions