-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Windows CI for the Julia Pkg errors with 'Could not load symbol "duckdb_vector_size"' #13911
Windows CI for the Julia Pkg errors with 'Could not load symbol "duckdb_vector_size"' #13911
Comments
I am having the same issue, just got a new laptop and did a fresh install of Julia, tried adding the package and this error prevented the package from precompiling. |
Hi @abelsiqueira and @ansaardollie, thanks for opening this issue and joining the discussion. The DuckDB Julia API is experimental and not covered by community support. We welcome contributions fixing this issue but the core team is unlikely to fix this bug in the near future. |
Thanks for the reply @szarnyasg. Just an update on our side, Maybe limiting the For other users, you can pkg> add [email protected]
pkg> pin [email protected] Since |
Thanks for the additional info, this definitely warrants a look on our side. |
Does this issue still persist with DuckDB 1.1, or is this issue specifically about using DuckDB 1.0 in combination with DuckDB_jll 1.1? |
It was about DuckDB.jl 1.0 with jll 1.1, because DuckDB.jl 1.1.0 was not around yet. But I reran the tests in https://github.com/abelsiqueira/DuckDBDebug.jl/actions/runs/10835456425/job/30067028887 and they also fail with DuckDB.jl 1.1.0 |
I'm on the phone hope this is the link: https://github.com/abelsiqueira/DuckDBDebug.jl/actions/runs/10835456425/job/30358662742#step:8:56 |
I can confirm this issue on a number of different Windows 10 computers. I guess the Windows libduckdb is not compiled correctly. A temporary fix was: [compat] in the Project.toml |
Maybe version 1.1.1 fixes the issue? Can we have new DuckDB_jll and DuckDB.jl releases? |
Still an issue in Windows |
DuckDB.jl 1.1 on Windows is broken with an error 'Could not load symbol duckdb_vector_size' This limits the DuckDB version until that is fixed. refs: - duckdb/duckdb#13911
DuckDB.jl 1.1 on Windows is broken with an error 'Could not load symbol duckdb_vector_size' This limits the DuckDB version until that is fixed. refs: - duckdb/duckdb#13911
DuckDB.jl 1.1 on Windows is broken with an error 'Could not load symbol duckdb_vector_size' This limits the DuckDB version until that is fixed. refs: - duckdb/duckdb#13911
DuckDB 1.0 allows DuckDB_jll 1.1.0, which is not correct. This limits DuckDB_jll as well. refs: - duckdb/duckdb#13911
DuckDB 1.0 allows DuckDB_jll 1.1.0, which is not correct. This limits DuckDB_jll as well. refs: - duckdb/duckdb#13911
If the 1.1.1 C/C++ windows library is downloaded from the DuckDB website and an environment variable JULIA_DUCKDB_LIBRARY is set to point at duckdb.dll within it, then the latest version will successfully compile in Julia on windows. |
Thanks, GhostOfElectric. that worked for me. |
If version 1.1.1 of the binary works with DuckDB.jl, then I figures that the fix would be updating the binary. I triggered that in this PR, which might just fix this issue on your next update. For future reference, I am pretty sure that one could automate a github workflow to trigger on a new tag, and create a PR with the tiny changes required to trigger a new build. This would ensure that the binary stays updated. |
The outline for a workflow `.github/workflows/JuliaRelease.yml` could be something like this:
|
The jll is now updated to 1.1.2, but I still got the same precompilation error. The fix provided by @GhostOfElectric worked. So it seems like the 1.1.2 C/C++ library downloaded from here differs from the 1.1.2 library built by Yggdrasil.jl which ends up here. This might be related to how the windows build has specific requirements: |
I created this discouse post to get exta sets of eyes on this. I suspect the right person could fix this in a couple of minutes. |
Attempting to fix [this issue](duckdb/duckdb#13911) by adding a special case for windows. Tried to make that special case a mixture of the generic build script, and the contents [here](https://duckdb.org/docs/dev/building/build_instructions.html#windows)
What happens?
We have a failing Julia package build with DuckDB_jll 1.1.0 for Windows GitHub runners: https://github.com/TulipaEnergy/TulipaEnergyModel.jl/actions/runs/10833112611/job/30062514253
Revelant part reproduced:
I saw other failures on 1.1.0, but I couldn't tell if they were related to this issue or not.
To Reproduce
I created a simple repo building a Julia package that runs DuckDB here: https://github.com/abelsiqueira/DuckDBDebug.jl/actions/runs/10835456425/job/30067028887
You can see:
The code is very simple, and it doesn't actually run, since it fails on precompilation, but everything is included in the repo (https://github.com/abelsiqueira/DuckDBDebug.jl).
OS:
windows-latest on CII
DuckDB Version:
1.1.0
DuckDB Client:
Julia
Hardware:
No response
Full Name:
Abel Soares Siqueira
Affiliation:
Netherlands eScience Center
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?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: