Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python read_csv prepared statement requires numpy, non-prepared statement doesn't. #11871

Closed
2 tasks done
jonathon-love opened this issue Apr 30, 2024 · 0 comments · Fixed by #11981
Closed
2 tasks done

Comments

@jonathon-love
Copy link

What happens?

read_csv() seems to require NumPy when run as a prepared statement, but i can't see that it should.

To Reproduce

con = duckdb.connect(path)

# this works (don't require numpy):
con.execute(f'SELECT * FROM read_csv("{ path }")')

# this throws a ModuleNotFoundError: No module named 'numpy'
con.execute('SELECT * FROM read_csv(?)', [path])

OS:

macOS

DuckDB Version:

0.10.2

DuckDB Client:

python

Full Name:

jonathon

Affiliation:

the jamovi project

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 (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants