duckdb: Error in pip install duckDB
What happens?
Afternoon guys,
to start, massive fan of duckDB! This stuff is transformational.
I’m getting an error when i tried to install duckDB (pip install duckdb==0.9.0).
I’m installing on a venv, on python 3.12.0. This is a brand new server i’m having issue with, i have no issue with other server running older version (in fact, i could actually upgrade it).
I can’t debug the error message and i’m getting below (a snapshot of a long one).
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(267): error C2485: '__restrict': unrecognized extended attribute
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(269): error C2485: '__restrict': unrecognized extended attribute
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(273): error C2485: '__restrict': unrecognized extended attribute
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(275): error C2485: '__restrict': unrecognized extended attribute
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(279): error C2485: '__restrict': unrecognized extended attribute
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/jemalloc.h(281): error C2485: '__restrict': unrecognized extended attribute
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_macros.h(36): warning C4005: 'restrict': macro redefinition
duckdb_build/extension/jemalloc/jemalloc/include\jemalloc/internal/jemalloc_internal_decls.h(87): note: see previous definition of 'restrict'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for duckdb Failed to build duckdb ERROR: Could not build wheels for duckdb, which is required to install pyproject.toml-based projects
To Reproduce
pip install duckdb==0.9.0
OS:
x64
DuckDB Version:
0.9.0
DuckDB Client:
Python
Full Name:
Maha Kepakisan
Affiliation:
DDB
Have you tried this on the latest main branch?
I have tested with a main build
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
- Yes, I have
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 7
- Comments: 28 (10 by maintainers)
Commits related to this issue
- Update requirements.txt In order to get alpha_codium to install properly on my MacOS Sonoma with Python 3.12, I had to do some updates to requirements.txt: see all of them in the diff of the PR. ... — committed to didier-durand/AlphaCodium by didier-durand 5 months ago
- Update requirements.txt to work on MacOS Hi, In order to get alpha_codium to install properly on my MacOS Sonoma with Python 3.12, I had to do some updates to requirements.txt: see all of them in ... — committed to didier-durand/AlphaCodium by didier-durand 5 months ago
- Update requirements.txt to work on MacOS Hi, In order to get alpha_codium to install properly on my MacOS Sonoma with Python 3.12, I had to do some updates to requirements.txt: see all of them in ... — committed to Randolph-zeng/AlphaCodium by didier-durand 5 months ago
Ah, I see the issue - we don’t support Python 3.12 yet.
This should be resolved by https://github.com/duckdb/duckdb/pull/9222
Please communicate in English here
Any update on Python 3.12 support? Thx
Hello everyone. I am getting a similar error on my laptop.
Python version
3.12.0
To Reproduce
pip install duckdb==0.9.0
OS:
Microsoft Windows 11 Home x64
DuckDB Version:
0.9.0, 0.9.1
DuckDB Client:
Python
If you need more information let me know
@Dornish and @nan0o, Python 3.12 is not yet supported by DuckDB. you’ll need to use Python 3.11 in the meantime.
I have the same error “cl.exe’ failed with exit code 2”. I have provided the full execution log. Can you please help?
Python version
3.12.0
To Reproduce
Install from VS Code terminal to .venv virtual environment. pip install duckdb==0.9.0 pip install duckdb==0.9.1 pip install duckdb==0.9.2
OS:
Edition Windows 11 Pro Version 22H2 Installed on 10/24/2023 OS build 22621.2428 Experience Windows Feature Experience Pack 1000.22674.1000.0
DuckDB Version:
0.9.0 0.9.1 0.9.2
DuckDB Client:
VS Code Version: 1.84.2 (user setup) Date: 2023-11-09T10:51:52.184Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621
output (prepare for a long one):
I used simply:
pip install duckdb --pre --upgradeand it works for now.
@edgarrmondragon that isn’t related no, they’re just trying to install the wrong version
Holy crap! What took you so long!!
Successfully installed duckdb-0.9.3.dev2490thx!!
Py3.12 support was only just added in the nightly Dev versions, please try with --pre