Pyodbc for latest Python version(irrespective of version) #1113
Replies: 9 comments 4 replies
-
PS D:\Py\Flask> pip install pyodbc --use-pep517 × Building wheel for pyodbc (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
Beta Was this translation helpful? Give feedback.
-
Any info on when the 3.11 version will be available on PIP? |
Beta Was this translation helpful? Give feedback.
-
Also, we are looking at using the Python stable API which would allow pyodbc to be used for multiple versions. It is certainly possible, but I want to look at performance since many macros are not available in the ABI builds. |
Beta Was this translation helpful? Give feedback.
-
Also wondering about this. I have to upgrade our company apps to python 3.12 for security reasons and now none of them will build because pyodbc is not compatible with 3.12. Any idea on timing for the python stable or python 3.12 update? |
Beta Was this translation helpful? Give feedback.
-
I would not have expected this due to 3.12 still being a prerelease version. The 5.0 version will support Python 3.12 and I plan on releasing it next week. I just published an alpha (5.0.0a2). Please see its notes. I plan on testing the stable API soon after. I need to setup some performance benchmarks first as the ABI can be slower. If it is acceptable, it would solve the problem though. |
Beta Was this translation helpful? Give feedback.
-
Is there a standard way to use pyodbc with Linux and install the necessary drivers? I use the official python image (python:3.11.4) which has the debian version, but I can't get pyodbc to work. my dockfile. FROM python:3.11.4 WORKDIR /app COPY requirements.txt requirements.txt RUN apt-get update -q && ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu RUN pip install --upgrade pip RUN useradd -m -s /bin/bash appexportnetezza USER appexportnetezza ENV PATH="/home/appexportnetezza/.local/bin:${PATH}" RUN pip3 install --user -r requirements.txt COPY . . ENTRYPOINT python3 run.py |
Beta Was this translation helpful? Give feedback.
-
I have a similar issue with the following poetry setup:
fails with
|
Beta Was this translation helpful? Give feedback.
-
Make sure you install unixodbc. |
Beta Was this translation helpful? Give feedback.
-
working with docker python:3.11-slim-bullseye start pyodbc ==================================================================== RUN apt-get update && apt-get -y install apt-transport-https curl RUN apt-get update && apt-get install sudo RUN sudo apt-get install wget && sudo apt-get update RUN sudo su RUN sudo apt-get update RUN sudo apt-get install -y libssl-dev RUN pip install pyodbc end pyodbc ==================================================================== pyodbc==5.2.0 under requiremensts.txt |
Beta Was this translation helpful? Give feedback.
-
PyODBC is designed in such a way that it always does not work with latest python version.
Can we fix that.?
It was working fine with Python 3.10 for me.
But as I upgraded Python 3.11 it is not working
Even with backward compatibility it should work fine!
Beta Was this translation helpful? Give feedback.
All reactions