Python cant find ODBC Driver on Heroku after setting everything

后端 未结 1 595
遇见更好的自我
遇见更好的自我 2020-12-06 15:26

I have gone through every possible solution on the internet, but I\'m unable to make pyobdc get the drivers on heroku.

The steps I have used to create the app are as

相关标签:
1条回答
  • 2020-12-06 16:15

    I have solved this issue by precompiling ODBC Driver 17 for SQL Server on a machine running Ubuntu 18.04 and copying the libmsodbcsql-17.5.so.2.1 and msodbcsqlr17.rll files into appropriate directories via a Heroku buildpack. This is ODBC Driver 17.5 for SQL Server and I likely won't be compiling other versions of this driver, but I imagine the concept remains the same.

    The Heroku buildpack and its requirements can be found here https://github.com/matt-bertoncello/python-pyodbc-buildpack.git

    0 讨论(0)
提交回复
热议问题