Error : pyodbc : src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory
See original GitHub issueOS : Windows 10
I cloned the repo and run docker-compose command. When I debugged the code, I had the following error in the backend container;
pyodbc : src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory
It happens in ‘doccano/app/tools/dev-django.sh’ script when installing requirements.
Solution :
At the beginning of ‘doccano/app/tools/dev-django.sh’, I added
##############################
apt install -y gcc make # already installed actually
apt-get install -y build-essential libssl-dev libffi-dev python3-dev
apt-get install -y unixodbc-dev
##############################
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
fatal error: sql.h: No such file or directory · Issue #441 - GitHub
Currently trying to install Pyodbc in a Docker file but getting the same error. All the solutions I have seen involve running on...
Read more >sql.h not found when installing PyODBC on Heroku
I'm trying to install PyODBC on Heroku, but I get fatal error: sql.h: No such file or directory in the logs when pip...
Read more >sql.h No such file or directory pyodbc - All About Tech
src/pyodbc.h:56:17: fatal error: sql.h: No such file or directory #include In Ubuntu, install the following dependency. sudo apt-get install ...
Read more >Installing pyobdc - python - Server Fault
This issue can be address by first installing ODBC libraries for UNIX by running following commands: :~$ sudo apt install unixodbc-dev.
Read more >pip install pyodbc failing - Watercooler | Deepnote Community
I am struggling to use pyodbc package in any Deepnote notebook, after using pip I get ... src/pyodbc.h:56:10: fatal error: sql.h: No such...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks then. I don’t know the reason of the problem. I did not change the doccano github code in my local.
So, there should be a difference in [ windows 10, docker, docker-compose, docker image ].
I am closing the issue since it could not be repeated.
If someone somehow encounters such problem, solution is to update the code in https://github.com/doccano/doccano/blob/master/app/tools/dev-django.sh#L17
to
Thank you for your contribution.