Question

I'm trying to install pyodbc on my mac because I want to connect to a sql server and I have been going through a lot of forum to get it to work. Everything has been install except the pyodbc (I've tried pip,homebrew, easy_istall and even tried to install using the source code but nothing worked) and it's giving me the following error:


(hhl)OSFOLA-034901:bin henry.humadi$ easy_install pyodbc
Searching for pyodbc
Reading https://pypi.python.org/simple/pyodbc/
Reading http://code.google.com/p/pyodbc
Reading http://code.google.com/p/pyodbc/downloads/list
Best match: pyodbc 3.0.7
Downloading http://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
Processing pyodbc-3.0.7.zip
Writing /var/folders/w4/h0nc35117x1c0psqpsm4vvlnhk02nh/T/easy_install-AFM6yU/pyodbc-3.0.7/setup.cfg
Running pyodbc-3.0.7/setup.py -q bdist_egg --dist-dir /var/folders/w4/h0nc35117x1c0psqpsm4vvlnhk02nh/T/easy_install-AFM6yU/pyodbc-3.0.7/egg-dist-tmp-G6Yp3F
warning: no files found matching 'tests/*'
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1

Can anyone please decipher this error message for me. I read somewhere it has to do with Xcode 5.1 but I still don't understand it.

Thank you in advance.

Was it helpful?

Solution

Xcode 5 caused clang to throw a fatal error when it encountered a command line flag, which broke a lot of things.

Run the command like this and it should work: ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install pyodbc

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top