-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot install pyodbc with the installer.no-binary option in macOS Ventura #8812
Comments
this is a problem with pyodbc not poetry, you should report it at that repository |
As @dimbleby said, it's a problem with |
Hi @Secrus @dimbleby , thanks for your answers. Could you help me with a bit more context? I can actually build the pyodbc wheel with the gonzalo@ohana % python -m venv tryagain
gonzalo@ohana % source tryagain/bin/activate
(tryagain) gonzalo@ohana % pip install --upgrade pip
Requirement already satisfied: pip in ./tryagain/lib/python3.11/site-packages (23.1.2)
Collecting pip
Using cached pip-23.3.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.1.2
Uninstalling pip-23.1.2:
Successfully uninstalled pip-23.1.2
Successfully installed pip-23.3.2
(tryagain) gonzalo@ohana % pip wheel --no-binary=pyodbc --no-cache-dir --use-pep517 "pyodbc (==4.0.39)"
Collecting pyodbc==4.0.39
Downloading pyodbc-4.0.39.tar.gz (282 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 282.4/282.4 kB 4.6 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyodbc
Building wheel for pyodbc (pyproject.toml) ... done
Created wheel for pyodbc: filename=pyodbc-4.0.39-cp311-cp311-macosx_11_0_arm64.whl size=68822 sha256=d4ff0f713b93113fd45a85fc976620afd5d647e149b874199ec673cb196f2f64
Stored in directory: /private/var/folders/4h/7ndr70pd3j178zcftn42zhsw0000gn/T/pip-ephem-wheel-cache-w087481y/wheels/02/e3/a6/4ca8226ab78efb3fe31e6d540383017f29ea95e5adf5968aee
Successfully built pyodbc
(tryagain) gonzalo@ohana % pip install pyodbc-4.0.39-cp311-cp311-macosx_11_0_arm64.whl
Processing ./pyodbc-4.0.39-cp311-cp311-macosx_11_0_arm64.whl
Installing collected packages: pyodbc
Successfully installed pyodbc-4.0.39 I only seem to be getting this error when installing the package through |
not only is this not a poetry issue, it is already tracked at pyodbc - you could have looked there in the first place! |
Hi @dimbleby , and thanks again for the patience. I see where I got confused now: there were two separate issues at play:
I had In any case, thank you for pointing me in the correct direction! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below. (but it doesn't truly add anything new).Issue
Description
Hi there! I'm very sorry if there's any missing information here, it's the very first time in several years as a developer in which a previous issue has not been enough to get me through a bug/wrinkle in the matrix.
In brief: I need to install
dbt-sqlserver
for an ETL project (involving DBT and whatnot), which in turn requirespyodbc
, version<=4.0.39
(when the current one is>=5.0.0
. If I do just that, and try topoetry install
a project withdbt-sqlserver="^1.4.3"
as a sole dependency,poetry
gets it just right, no issues involved. Now, In macOS, apparentlypyodbc
has to be installed with theno-binary
option in order to avoid namespace conflicts down the road (link) . That made me add theinstall.no-binary = ["pyodbc"]
option topoetry.toml
, but when I do so, I get aChefBuildError
frompoetry
when it gets topyodbc
. This was not a problem with PyODBC >=5, but thedbt-sqlserver
package is not compatible with that version 😢Expected behavior
I should be able to install the
pyodbc==4.0.39
drivers without issues, even when theno-binary
option is passed to the installer.pip version
23.3.1 (almost sure)
Python version
3.11.4
OS
macOS Ventura 13.4.1
How to Reproduce
Create a folder named
testit
,cd
inside it andpyproject.toml
andpoetry.toml
files provided below, andtestit
.poetry install
.pyproject.toml
poetry.toml
Output
Running the exact command
poetry
suggests I try out,pip wheel --no-cache-dir --use-pep517 "pyodbc (==4.0.39)"
runs perfectly fine, so I'm at a loss on how to continue. For reference, my current Poetry version is1.7.1
and this is the minimal project configuration I've come up with to reproduce the error, using macOS Ventura 13.4.1:The text was updated successfully, but these errors were encountered: