Skip to content
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

"Unknown value '10.11' of --mmacosx-version-min" #398

Closed
luizfonseca opened this issue Jan 27, 2016 · 1 comment
Closed

"Unknown value '10.11' of --mmacosx-version-min" #398

luizfonseca opened this issue Jan 27, 2016 · 1 comment

Comments

@luizfonseca
Copy link

Guys, I'm trying to install the psycopg2 on a project, from a requirements.txt file and this error (Unknown value...) is preventing the installation.

  • I am using the Postgresql.app
  • Virtualenv
  • El Capitan 10.11.4

Here's the stack trace:

running build_ext
    building 'psycopg2._psycopg' extension
    creating build/temp.macosx-10.11-x86_64-2.7
    creating build/temp.macosx-10.11-x86_64-2.7/psycopg
    /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090404 -DHAVE_LO64=1 -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/Applications/Postgres.app/Contents/Versions/9.4/include -I/Applications/Postgres.app/Contents/Versions/9.4/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.11-x86_64-2.7/psycopg/psycopgmodule.o
    <built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min
    In file included from /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
                     from ./psycopg/psycopg.h:30,
                     from psycopg/psycopgmodule.c:27:
    /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4:20: error: stdarg.h: No such file or directory
    error: command '/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2' failed with exit status 1
@luizfonseca luizfonseca changed the title "Unknown value '10.11' of --mmacosx-version-min "Unknown value '10.11' of --mmacosx-version-min" Jan 27, 2016
@dvarrazzo
Copy link
Member

I don't see -mmacosx-version-min passed as argument by setup.py to the compiler. It seems an issue with your build system, of which I don't know anything about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants