Installation fails when installing fastnumbers - python

I am trying to install a python library that depends on fastnumbers 3.0.0, but when trying to install it, I get the following:
warnings.warn(
running build
running build_ext
creating build
creating build/temp.macosx-11-x86_64-3.9
creating build/temp.macosx-11-x86_64-3.9/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -stdlib=libc++ -I/private/var/folders/_d/kht28yq15hjbm17zkr9_zhkh0000gp/T/pip-install-p7m6zg86/fastnumbers_538a0b1c68c844a0a91900d614d59f53/include -I/Users/carlos/ide-mx-decision-fraud/env/include -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/fastnumbers.c -o build/temp.macosx-11-x86_64-3.9/src/fastnumbers.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -stdlib=libc++ -I/private/var/folders/_d/kht28yq15hjbm17zkr9_zhkh0000gp/T/pip-install-p7m6zg86/fastnumbers_538a0b1c68c844a0a91900d614d59f53/include -I/Users/carlos/ide-mx-decision-fraud/env/include -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/numbers.c -o build/temp.macosx-11-x86_64-3.9/src/numbers.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -stdlib=libc++ -I/private/var/folders/_d/kht28yq15hjbm17zkr9_zhkh0000gp/T/pip-install-p7m6zg86/fastnumbers_538a0b1c68c844a0a91900d614d59f53/include -I/Users/carlos/ide-mx-decision-fraud/env/include -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/objects.c -o build/temp.macosx-11-x86_64-3.9/src/objects.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -stdlib=libc++ -I/private/var/folders/_d/kht28yq15hjbm17zkr9_zhkh0000gp/T/pip-install-p7m6zg86/fastnumbers_538a0b1c68c844a0a91900d614d59f53/include -I/Users/carlos/ide-mx-decision-fraud/env/include -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/parsing.c -o build/temp.macosx-11-x86_64-3.9/src/parsing.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -stdlib=libc++ -I/private/var/folders/_d/kht28yq15hjbm17zkr9_zhkh0000gp/T/pip-install-p7m6zg86/fastnumbers_538a0b1c68c844a0a91900d614d59f53/include -I/Users/carlos/ide-mx-decision-fraud/env/include -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/strings.c -o build/temp.macosx-11-x86_64-3.9/src/strings.o
src/strings.c:115:20: error: implicit declaration of function '_Py_dg_stdnan' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return PyFloat_from_NaN(sign < 0);
^
/private/var/folders/_d/kht28yq15hjbm17zkr9_zhkh0000gp/T/pip-install-p7m6zg86/fastnumbers_538a0b1c68c844a0a91900d614d59f53/include/fastnumbers/numbers.h:24:55: note: expanded from macro 'PyFloat_from_NaN'
#define PyFloat_from_NaN(negative) PyFloat_FromDouble(_Py_dg_stdnan(negative));
^
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
I am using a mac with big sur and python 3.9.
I already tried exporting the variables as is stated in this other question but it didn't solve my issue

This is compatibility problem with Python 3.9. It was reported and fixed in Nov 2020. Upgrade to fastnumbers 3.1.0 or 3.2.1.
If you cannot upgrade downgrade to Python 3.8.

Related

sysconfig cflags and ldflags does not link python into a C executable

So I am looking for a cross platform way to compile, and link Python into a C executable. I am following this page as a guide, such as with this example listed here. One problem is, the last section recommends using sysconfig or looking for the python*-config executable installed next to the interpreter to get the cflags and ldflags used to embed Python. However, those do not work
On my mac, the CFLAGS are "-Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk" and the LDFLAGS are "-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk" . But using those with the documentation's example does not work, and always results in include errors. Even if i tweak it and add the -I option for where Python's include dir is, it gives linker errors:
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 test.c -o test
Undefined symbols for architecture x86_64:
"_PyMem_RawFree", referenced from:
_main in test-75ae4e.o
"_PyRun_SimpleStringFlags", referenced from:
_main in test-75ae4e.o
"_Py_DecodeLocale", referenced from:
_main in test-75ae4e.o
"_Py_FinalizeEx", referenced from:
_main in test-75ae4e.o
"_Py_Initialize", referenced from:
_main in test-75ae4e.o
"_Py_SetProgramName", referenced from:
_main in test-75ae4e.o
ld: symbol(s) not found for architecture x86_64
My question here is, how does one reliably determine the flags to link / include python into a C executable ? and how can those be determined on msvc, gcc, or clang?
I discovered this is possible with the --embed option. Although this is not documented in the Python documentation, here's an example on MacOS
% /usr/local/opt/python#3.9/bin/python3-config --cflags --embed
-I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
% /usr/local/opt/python#3.9/bin/python3-config --ldflags --embed
-L/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin -lpython3.9 -ldl -framework CoreFoundation
And then putting it altogether to compile and link a C executable with Python
gcc -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -I/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -L/usr/local/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin -lpython3.9 -ldl -framework CoreFoundation test.c -o test

Can't install jupyter (Python 3.9.0, macos 11)

I installed Miniforge3-MacOSX-arm64, and tried to pip install --upgrade pip.
But it shows same error message.
The install package command is pip install jupyter.
Building wheels for collected packages: argon2-cffi
Building wheel for argon2-cffi (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /Users/dong/miniforge3/bin/python3.9 /Users/dong/miniforge3/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/k3/97_hcf414hdflf7snt870zlc0000gn/T/tmp7zue7y84
cwd: /private/var/folders/k3/97_hcf414hdflf7snt870zlc0000gn/T/pip-install-fvo3ra87/argon2-cffi_43f8dcc2cf894b4bb48b05d5556d0c5d
Complete output (29 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.0-arm64-3.9
creating build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/__init__.py -> build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/low_level.py -> build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/_ffi_build.py -> build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/_password_hasher.py -> build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/exceptions.py -> build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/_legacy.py -> build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/__main__.py -> build/lib.macosx-11.0-arm64-3.9/argon2
copying src/argon2/_utils.py -> build/lib.macosx-11.0-arm64-3.9/argon2
running build_clib
building 'argon2' library
creating build/temp.macosx-11.0-arm64-3.9
creating build/temp.macosx-11.0-arm64-3.9/extras
creating build/temp.macosx-11.0-arm64-3.9/extras/libargon2
creating build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src
creating build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/blake2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -Iextras/libargon2/src/../include -Iextras/libargon2/src/blake2 -c extras/libargon2/src/argon2.c -o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/argon2.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -Iextras/libargon2/src/../include -Iextras/libargon2/src/blake2 -c extras/libargon2/src/blake2/blake2b.c -o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/blake2/blake2b.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -Iextras/libargon2/src/../include -Iextras/libargon2/src/blake2 -c extras/libargon2/src/core.c -o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/core.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -Iextras/libargon2/src/../include -Iextras/libargon2/src/blake2 -c extras/libargon2/src/encoding.c -o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/encoding.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -Iextras/libargon2/src/../include -Iextras/libargon2/src/blake2 -c extras/libargon2/src/ref.c -o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/ref.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -fPIC -O2 -isystem /Users/dong/miniforge3/include -arch arm64 -Iextras/libargon2/src/../include -Iextras/libargon2/src/blake2 -c extras/libargon2/src/thread.c -o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/thread.o
/Users/runner/miniforge3/conda-bld/python-split_1608587737618/_build_env/bin/llvm-ar rcs build/temp.macosx-11.0-arm64-3.9/libargon2.a build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/argon2.o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/blake2/blake2b.o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/core.o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/encoding.o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/ref.o build/temp.macosx-11.0-arm64-3.9/extras/libargon2/src/thread.o
error: command '/Users/runner/miniforge3/conda-bld/python-split_1608587737618/_build_env/bin/llvm-ar' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for argon2-cffi
Failed to build argon2-cffi
ERROR: Could not build wheels for argon2-cffi which use PEP 517 and cannot be installed directly
Tried many times, but it is still such an error.
Try this, might help
pip install jupyter notebook
Check also here.
I never used Mac, might the proper way is pip install notebook
I would rather suggest to use Python 3.8.X, I think it is too early for 3.9.X, let them fix smth or because it is not yet supported, I need to check that. I usually move to next Python after 3-6 months only.

pygame_sdl2 build error in python 3.6.4

I'm unable to build pygame_sdl2 on my Mac OS 10.12.6 Sierra Machine.I have done all the steps on https://github.com/renpy/pygame_sdl2/ on Python 3.6.4 until "build setup.py install"
This is the full log in terminal
AvendeMacBook-Pro:pygame_sdl2-master aven$ ./bin/python3 setup.py install
running install
running bdist_egg
running egg_info
writing pygame_sdl2.egg-info/PKG-INFO
writing dependency_links to pygame_sdl2.egg-info/dependency_links.txt
writing top-level names to pygame_sdl2.egg-info/top_level.txt
reading manifest file 'pygame_sdl2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pygame_sdl2.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.12-x86_64/egg
running install_lib
running build_py
running build_ext
building 'pygame_sdl2.mixer' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.mixer.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.mixer.o -D_THREAD_SAFE
gen3/pygame_sdl2.mixer.c:2392:46: error: use of undeclared identifier
'MIX_INIT_MODPLUG'; did you mean 'MIX_INIT_MOD'?
__pyx_t_3 = __Pyx_PyInt_From_MIX_InitFlags(MIX_INIT_MODPLUG); if (unli...
^~~~~~~~~~~~~~~~
MIX_INIT_MOD
/usr/local/include/SDL2/SDL_mixer.h:80:5: note: 'MIX_INIT_MOD' declared here
MIX_INIT_MOD = 0x00000002,
^
gen3/pygame_sdl2.mixer.c:2406:46: error: use of undeclared identifier
'MIX_INIT_FLUIDSYNTH'
__pyx_t_8 = __Pyx_PyInt_From_MIX_InitFlags(MIX_INIT_FLUIDSYNTH); if (u...
^
2 errors generated.
error: command 'clang' failed with exit status 1
AvendeMacBook-Pro:pygame_sdl2-master aven$ git clone https://github.com/renpy/pygame_sdl2
Cloning into 'pygame_sdl2'...
remote: Counting objects: 2022, done.
remote: Total 2022 (delta 1), reused 1 (delta 1), pack-reused 2020
Receiving objects: 100% (2022/2022), 1.24 MiB | 344.00 KiB/s, done.
Resolving deltas: 100% (1253/1253), done.
AvendeMacBook-Pro:pygame_sdl2-master aven$ ls
COPYING.LGPL21 gen run_pygame_test.py
COPYING.ZLIB gen3 scripts
MANIFEST.in include sdl2.c
README.rst lib setup.py
__pycache__ old-tests setuplib.py
bin pip-selfcheck.json setuplib.pyc
build pygame_sdl2 src
docs pygame_sdl2.egg-info test
fix_virtualenv.py run.sh
AvendeMacBook-Pro:pygame_sdl2-master aven$
AvendeMacBook-Pro:pygame_sdl2-master aven$ git clone https://github.com/renpy/pygame_sdl2
fatal: destination path 'pygame_sdl2' already exists and is not an empty directory.
AvendeMacBook-Pro:pygame_sdl2-master aven$ ls
COPYING.LGPL21 gen run_pygame_test.py
COPYING.ZLIB gen3 scripts
MANIFEST.in include sdl2.c
README.rst lib setup.py
__pycache__ old-tests setuplib.py
bin pip-selfcheck.json setuplib.pyc
build pygame_sdl2 src
docs pygame_sdl2.egg-info test
fix_virtualenv.py run.sh
AvendeMacBook-Pro:pygame_sdl2-master aven$ cd ..
AvendeMacBook-Pro:.Trash aven$ cd..
-bash: cd..: command not found
AvendeMacBook-Pro:.Trash aven$ cd ..
AvendeMacBook-Pro:~ aven$ cd pygame_sdl2
-bash: cd: pygame_sdl2: No such file or directory
AvendeMacBook-Pro:~ aven$ which git
/usr/bin/git
AvendeMacBook-Pro:~ aven$ git init help
Initialized empty Git repository in /Users/aven/help/.git/
AvendeMacBook-Pro:~ aven$ git init
Initialized empty Git repository in /Users/aven/.git/
AvendeMacBook-Pro:~ aven$ git clone https://github.com/renpy/pygame_sdl2
Cloning into 'pygame_sdl2'...
remote: Counting objects: 2022, done.
remote: Total 2022 (delta 1), reused 1 (delta 1), pack-reused 2020
Receiving objects: 100% (2022/2022), 1.24 MiB | 933.00 KiB/s, done.
Resolving deltas: 100% (1253/1253), done.
AvendeMacBook-Pro:~ aven$ mkvirtualenv pygame_sdl2
Using base prefix '/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/aven/.virtualenvs/pygame_sdl2/bin/python3.6
Not overwriting existing python script /Users/aven/.virtualenvs/pygame_sdl2/bin/python (you must use /Users/aven/.virtualenvs/pygame_sdl2/bin/python3.6)
Installing setuptools, pip, wheel...done.
/usr/bin/python: No module named virtualenvwrapper
AvendeMacBook-Pro:~ aven$ mkvirtualenv /users/aven/pygame_sdl2
Using base prefix '/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6'
New python executable in /users/aven/pygame_sdl2/bin/python3.6
Also creating executable in /users/aven/pygame_sdl2/bin/python
Installing setuptools, pip, wheel...done.
AvendeMacBook-Pro:~ aven$ cd pygame_sdl2
AvendeMacBook-Pro:pygame_sdl2 aven$ ./bin/pip3 install cython
Collecting cython
Using cached Cython-0.27.3-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: cython
Successfully installed cython-0.27.3
AvendeMacBook-Pro:pygame_sdl2 aven$ ./bin/python fix_virtualenv.py
AvendeMacBook-Pro:pygame_sdl2 aven$ ./bin/python setup.py install
pygame_sdl2.error is out of date.
pygame_sdl2.color is out of date.
pygame_sdl2.controller is out of date.
pygame_sdl2.rect is out of date.
pygame_sdl2.rwobject is out of date.
pygame_sdl2.surface is out of date.
pygame_sdl2.display is out of date.
pygame_sdl2.event is out of date.
pygame_sdl2.locals is out of date.
pygame_sdl2.key is out of date.
pygame_sdl2.mouse is out of date.
pygame_sdl2.joystick is out of date.
pygame_sdl2.power is out of date.
pygame_sdl2.pygame_time is out of date.
pygame_sdl2.image is out of date.
pygame_sdl2.transform is out of date.
pygame_sdl2.gfxdraw is out of date.
pygame_sdl2.draw is out of date.
pygame_sdl2.font is out of date.
pygame_sdl2.mixer is out of date.
pygame_sdl2.mixer_music is out of date.
warning: src/pygame_sdl2/mixer_music.pyx:58:0: Overriding cdef method with def method.
pygame_sdl2.scrap is out of date.
pygame_sdl2.render is out of date.
running install
running bdist_egg
running egg_info
creating pygame_sdl2.egg-info
writing pygame_sdl2.egg-info/PKG-INFO
writing dependency_links to pygame_sdl2.egg-info/dependency_links.txt
writing top-level names to pygame_sdl2.egg-info/top_level.txt
writing manifest file 'pygame_sdl2.egg-info/SOURCES.txt'
reading manifest file 'pygame_sdl2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'gen/*.c'
writing manifest file 'pygame_sdl2.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.12-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.12-x86_64-3.6
creating build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
copying src/pygame_sdl2/__init__.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
copying src/pygame_sdl2/compat.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
creating build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/threads
copying src/pygame_sdl2/threads/__init__.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/threads
copying src/pygame_sdl2/threads/Py25Queue.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/threads
copying src/pygame_sdl2/sprite.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
copying src/pygame_sdl2/sysfont.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
copying src/pygame_sdl2/time.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
copying src/pygame_sdl2/version.py -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
copying src/pygame_sdl2/DejaVuSans.ttf -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
copying src/pygame_sdl2/DejaVuSans.txt -> build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2
running build_ext
building 'pygame_sdl2.error' extension
creating build/temp.macosx-10.12-x86_64-3.6
creating build/temp.macosx-10.12-x86_64-3.6/gen3
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.error.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.error.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.error.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/error.cpython-36m-darwin.so
building 'pygame_sdl2.color' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.color.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.color.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.color.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/color.cpython-36m-darwin.so
building 'pygame_sdl2.controller' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.controller.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.controller.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.controller.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/controller.cpython-36m-darwin.so
building 'pygame_sdl2.rect' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.rect.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.rect.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.rect.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/rect.cpython-36m-darwin.so
building 'pygame_sdl2.rwobject' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.rwobject.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.rwobject.o -D_THREAD_SAFE
gen3/pygame_sdl2.rwobject.c:3012:49: warning: comparison of integers of
different signs: 'unsigned long' and 'Sint64' (aka 'long long')
[-Wsign-compare]
__pyx_t_1 = (((__pyx_v_size * __pyx_v_maxnum) > __pyx_v_left) != 0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
1 warning generated.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.rwobject.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/rwobject.cpython-36m-darwin.so
building 'pygame_sdl2.surface' extension
creating build/temp.macosx-10.12-x86_64-3.6/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.surface.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.surface.o -D_THREAD_SAFE
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/alphablit.c -o build/temp.macosx-10.12-x86_64-3.6/src/alphablit.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.surface.o build/temp.macosx-10.12-x86_64-3.6/src/alphablit.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/surface.cpython-36m-darwin.so
building 'pygame_sdl2.display' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.display.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.display.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.display.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/display.cpython-36m-darwin.so
building 'pygame_sdl2.event' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.event.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.event.o -D_THREAD_SAFE
gen3/pygame_sdl2.event.c:5863:33: warning: comparison of integers of different
signs: 'Uint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
...= ((__pyx_v_e->type == __pyx_v_11pygame_sdl2_5event_POSTEDEVENT) != 0);
~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen3/pygame_sdl2.event.c:3972:18: warning: unused function
'__pyx_f_11pygame_sdl2_5event_make_mousewheel_event_sdl2'
[-Wunused-function]
static PyObject *__pyx_f_11pygame_sdl2_5event_make_mousewheel_event_sdl2...
^
2 warnings generated.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.event.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/event.cpython-36m-darwin.so
building 'pygame_sdl2.locals' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.locals.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.locals.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.locals.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/locals.cpython-36m-darwin.so
building 'pygame_sdl2.key' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.key.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.key.o -D_THREAD_SAFE
gen3/pygame_sdl2.key.c:1445:17: warning: assigning to 'uint8_t *'
(aka 'unsigned char *') from 'const Uint8 *' (aka 'const unsigned char *')
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__pyx_v_state = SDL_GetKeyboardState((&__pyx_v_self->numkeys));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.key.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/key.cpython-36m-darwin.so
building 'pygame_sdl2.mouse' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.mouse.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.mouse.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.mouse.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/mouse.cpython-36m-darwin.so
building 'pygame_sdl2.joystick' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.joystick.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.joystick.o -D_THREAD_SAFE
gen3/pygame_sdl2.joystick.c:2039:14: warning: assigning to 'char *' from
'const char *' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
__pyx_v_rv = SDL_JoystickName(__pyx_v_self->joystick);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.joystick.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/joystick.cpython-36m-darwin.so
building 'pygame_sdl2.power' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.power.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.power.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.power.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/power.cpython-36m-darwin.so
building 'pygame_sdl2.pygame_time' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.pygame_time.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.pygame_time.o -D_THREAD_SAFE
gen3/pygame_sdl2.pygame_time.c:2047:122: warning: cast to 'void *' from smaller
integer type 'int' [-Wint-to-void-pointer-cast]
...((void *)((int)__pyx_t_2)));
^
1 warning generated.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.pygame_time.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/pygame_time.cpython-36m-darwin.so
building 'pygame_sdl2.image' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.image.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.image.o -D_THREAD_SAFE
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/write_jpeg.c -o build/temp.macosx-10.12-x86_64-3.6/src/write_jpeg.o -D_THREAD_SAFE
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/write_png.c -o build/temp.macosx-10.12-x86_64-3.6/src/write_png.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.image.o build/temp.macosx-10.12-x86_64-3.6/src/write_jpeg.o build/temp.macosx-10.12-x86_64-3.6/src/write_png.o -L/usr/local/lib -lSDL2_image -ljpeg -lpng -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/image.cpython-36m-darwin.so
building 'pygame_sdl2.transform' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.transform.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.transform.o -D_THREAD_SAFE
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/SDL2_rotozoom.c -o build/temp.macosx-10.12-x86_64-3.6/src/SDL2_rotozoom.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.transform.o build/temp.macosx-10.12-x86_64-3.6/src/SDL2_rotozoom.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/transform.cpython-36m-darwin.so
building 'pygame_sdl2.gfxdraw' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.gfxdraw.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.gfxdraw.o -D_THREAD_SAFE
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/SDL_gfxPrimitives.c -o build/temp.macosx-10.12-x86_64-3.6/src/SDL_gfxPrimitives.o -D_THREAD_SAFE
src/SDL_gfxPrimitives.c:6529:25: warning: passing 'Uint16 [4]' to parameter of
type 'const Sint16 *' (aka 'const short *') converts between pointers to
integer types with different sign [-Wpointer-sign]
polygonColor(m->dst, px, py, 4, m->color);
^~
src/SDL_gfxPrimitives.c:4917:52: note: passing argument to parameter 'vx' here
int polygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy...
^
src/SDL_gfxPrimitives.c:6529:29: warning: passing 'Uint16 [4]' to parameter of
type 'const Sint16 *' (aka 'const short *') converts between pointers to
integer types with different sign [-Wpointer-sign]
polygonColor(m->dst, px, py, 4, m->color);
^~
src/SDL_gfxPrimitives.c:4917:71: note: passing argument to parameter 'vy' here
...* dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color)
^
2 warnings generated.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.gfxdraw.o build/temp.macosx-10.12-x86_64-3.6/src/SDL_gfxPrimitives.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/gfxdraw.cpython-36m-darwin.so
building 'pygame_sdl2.draw' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.draw.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.draw.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.draw.o -L/usr/local/lib -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/draw.cpython-36m-darwin.so
building 'pygame_sdl2.font' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.font.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.font.o -D_THREAD_SAFE
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.font.o -L/usr/local/lib -lSDL2_ttf -lSDL2 -o build/lib.macosx-10.12-x86_64-3.6/pygame_sdl2/font.cpython-36m-darwin.so
building 'pygame_sdl2.mixer' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -Isrc -I/usr/local/include/SDL2 -I/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c gen3/pygame_sdl2.mixer.c -o build/temp.macosx-10.12-x86_64-3.6/gen3/pygame_sdl2.mixer.o -D_THREAD_SAFE
gen3/pygame_sdl2.mixer.c:2392:46: error: use of undeclared identifier
'MIX_INIT_MODPLUG'; did you mean 'MIX_INIT_MOD'?
__pyx_t_3 = __Pyx_PyInt_From_MIX_InitFlags(MIX_INIT_MODPLUG); if (unli...
^~~~~~~~~~~~~~~~
MIX_INIT_MOD
/usr/local/include/SDL2/SDL_mixer.h:80:5: note: 'MIX_INIT_MOD' declared here
MIX_INIT_MOD = 0x00000002,
^
gen3/pygame_sdl2.mixer.c:2406:46: error: use of undeclared identifier
'MIX_INIT_FLUIDSYNTH'
__pyx_t_8 = __Pyx_PyInt_From_MIX_InitFlags(MIX_INIT_FLUIDSYNTH); if (u...
^
2 errors generated.
error: command 'clang' failed with exit status 1
I was wondering if the pygame_sdl2 don't support the newest python and macOS system. Anyone met this error?
Finding gen3/pygame_sdl2.mixer.c and performing a replace of MIX_INIT_FLUIDSYNTH with MIX_INIT_MID (I used the
changes referenced above) and removing all constants containing MODPLUG in the name resulted in a successful install. No guarantees on this breaking anything, but MODPLUG looks to have been deprecated in the change.

Configuring MySQL with python on OS X lion

MySQL is installed at /usr/local/mysql
In site.cfg the path for mysql_config is /usr/local/mysql/bin/mysql_config
but when i try to build in the terminal im getting this error:
hammads-imac-2:MySQL-python-1.2.4b4 syedhammad$ sudo python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.8-intel-2.7/MySQLdb
running build_ext
building '_mysql' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,4,'beta',4) -D_version_=1.2.4b4 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.8-intel-2.7/_mysql.o -Wno-null-conversion -Os -g -fno-strict-aliasing -arch x86_64
unable to execute clang: No such file or directory
error: command 'clang' failed with exit status 1
Help Please
You probably need Xcode's Command Line Tools.
Download the lastest version of Xcode, then go to "Preferences", select "Download" tab, then install Command Line Tools.

Can't run mongod command after got pymongo installed from pip

I'm running a virtualenv on osx 10.7.4, and I was trying to install MongoDB for python, which is version 2.7.3.
I just installed it from pip, and am trying to see what happens if I run mongod command, but it turns out I can't run the command.
Below is what happened in my terminal, could anyone give a hand here about what could be wrong?
(test1)Dus-MacBook-Air:~ mepine$ pip install pymongo
Downloading/unpacking pymongo
Downloading pymongo-2.2.1.tar.gz (230Kb): 230Kb downloaded
Running setup.py egg_info for package pymongo
Installing collected packages: pymongo
Running setup.py install for pymongo
building 'bson._cbson' extension
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibson -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c bson/_cbsonmodule.c -o build/temp.macosx-10.4-x86_64-2.7/bson/_cbsonmodule.o
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibson -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c bson/time64.c -o build/temp.macosx-10.4-x86_64-2.7/bson/time64.o
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibson -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c bson/buffer.c -o build/temp.macosx-10.4-x86_64-2.7/bson/buffer.o
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibson -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c bson/encoding_helpers.c -o build/temp.macosx-10.4-x86_64-2.7/bson/encoding_helpers.o
/usr/bin/clang -bundle -undefined dynamic_lookup -L/usr/local/Cellar/readline/6.2.2/lib build/temp.macosx-10.4-x86_64-2.7/bson/_cbsonmodule.o build/temp.macosx-10.4-x86_64-2.7/bson/time64.o build/temp.macosx-10.4-x86_64-2.7/bson/buffer.o build/temp.macosx-10.4-x86_64-2.7/bson/encoding_helpers.o -o build/lib.macosx-10.4-x86_64-2.7/bson/_cbson.so
building 'pymongo._cmessage' extension
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibson -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c pymongo/_cmessagemodule.c -o build/temp.macosx-10.4-x86_64-2.7/pymongo/_cmessagemodule.o
/usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibson -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c bson/buffer.c -o build/temp.macosx-10.4-x86_64-2.7/bson/buffer.o
/usr/bin/clang -bundle -undefined dynamic_lookup -L/usr/local/Cellar/readline/6.2.2/lib build/temp.macosx-10.4-x86_64-2.7/pymongo/_cmessagemodule.o build/temp.macosx-10.4-x86_64-2.7/bson/buffer.o -o build/lib.macosx-10.4-x86_64-2.7/pymongo/_cmessage.so
Successfully installed pymongo
Cleaning up...
(test1)Dus-MacBook-Air:~ mepine$ mongod
-bash: mongod: command not found
Thanks guys!!
I think maybe you're confusing the python mongo driver with the mongo server itself.
Did you install mongodb (mongod, mongo, etc.), or just pymongo?
There's a homebrew package for mongodb, just in case you want an easy way to install it--or you can download it directly from http://www.mongodb.org/downloads.

Categories

Resources