-
Notifications
You must be signed in to change notification settings - Fork 561
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
setup.py fails if odbc_config
can't be found
#1213
Comments
I just ran into this problem. Thanks for the fix in #1214. @mkleehammer, could you perhaps review that PR? :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
setup.py attempts to run
odbc_config
in the user's shell viaos.popen()
:pyodbc/setup.py
Line 204 in 7b4e277
It then calls
readlines()
and assumes there will be at least 2 values to unpack and assign tocflags
andldflags
:pyodbc/setup.py
Line 205 in 7b4e277
If
odbc_config
isn't found in the user's PATH,readlines()
won't unpack anything and a ValueError will be raised. This issue is likely often to occur when a user is attempting to install pyodbc where it unfortunately produces an unhelpful error:The text was updated successfully, but these errors were encountered: