pyodbc icon indicating copy to clipboard operation
pyodbc copied to clipboard

Unable to install using pip 21 and python 3.8

Open vdantuluri-takeda opened this issue 5 years ago • 4 comments

Please first make sure you have looked at:

  • Documentation: https://github.com/mkleehammer/pyodbc/wiki
  • Other issues

Environment

To diagnose, we usually need to know the following, including version numbers. On Windows, be sure to specify 32-bit Python or 64-bit:

  • Python: 3.8
  • pyodbc: 4.0.36
  • OS: Linux
  • DB:
  • driver: MSSQL

Issue

Often it is easiest to describe your issue as "expected behavior" and "observed behavior".

In file included from src/buffer.cpp:12:0: src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory #include <sql.h> ^~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /var/lang/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zsh4k12i/pyodbc/setup.py'"'"'; file='"'"'/tmp/pip-install-zsh4k12i/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-qdjl8945/install-record.txt --single-version-externally-managed --home /tmp/pip-target-u5d_bajo --compile --install-headers /tmp/pip-target-u5d_bajo/include/python/pyodbc Check the logs for full command output. make: *** [build-DependencyLayer] Error 1 Error: Process completed with exit code 1.

vdantuluri-takeda avatar Feb 01 '21 16:02 vdantuluri-takeda

This error usually means that unixODBC or unixODBC-dev is not installed. Which OS is this?

v-makouz avatar Feb 02 '21 23:02 v-makouz

it is a Linux machine, and using wheel installation.

vdantuluri-takeda avatar Feb 03 '21 13:02 vdantuluri-takeda

@vdantuluri-takeda - Have you seen this?

https://github.com/mkleehammer/pyodbc/wiki/Install#installing-on-linux

gordthompson avatar Feb 03 '21 14:02 gordthompson

Yes, i tried that, let me try using from a clean state. if the issue persists i will re-open.

vdantuluri-takeda avatar Feb 03 '21 14:02 vdantuluri-takeda