Installing Harlequin on Python 3.12 #345
-
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
The issue is you're trying to install it on Python 3.12, which we (DuckDB) have struggled to provide binaries for |
Beta Was this translation helpful? Give feedback.
-
DuckDB can't be installed from wheels on Python 3.12. This is a known issue that is being tracked upstream in the DuckDB repo. Best workarounds are:
|
Beta Was this translation helpful? Give feedback.
-
I wasn't trying to install from Python 3.12. $ python3 -V
Python 3.11.6
$ pip3 -V
pip 23.3.1 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)
$ brew install pipx
==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################################################################### 100.0%
Warning: pipx 1.3.3 is already installed and up-to-date.
To reinstall 1.3.3, run:
brew reinstall pipx
$ pipx install harlequin
Fatal error from pip prevented installation. Full pip output in file:
/Users/erhhung/Library/Logs/pipx/cmd_2023-12-05_12.13.38_pip_errors.log
pip failed to build package:
duckdb
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
src/numpy/numpy_scan.cpp:402:41: error: use of undeclared identifier 'PyUnicode_WCHAR_KIND'
src/numpy/numpy_scan.cpp:404:85: error: use of undeclared identifier 'PyUnicode_WCHAR_KIND'
error: command '/usr/bin/clang' failed with exit code 1
Error installing harlequin. |
Beta Was this translation helpful? Give feedback.
-
If you have Python 3.11 installed along with your Python 3.12, and Python 3.11 is available as $ pipx install --python python3.11 harlequin[postgres]
installed package harlequin 1.13.0, installed using Python 3.11.7
These apps are now globally available
- harlequin
done! ✨ 🌟 ✨ |
Beta Was this translation helpful? Give feedback.
-
duckdb 0.10 support python 3.12 now, upgrade it using |
Beta Was this translation helpful? Give feedback.
-
confirmed, it works now. |
Beta Was this translation helpful? Give feedback.
confirmed, it works now.