pygame_sdl2 build error in python 3.6.4 - python

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.

Related

Installation fails when installing fastnumbers

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.

Python script cannot be compiled on Heroku

so i found a twitter monitor on github and wanted to host it on heroku. i watched a few videos and updated the requirements.txt, added the Procfile, and added the runtime.txt file and put my version of python in it.
but i only get errors when i try to build the app on heroku.
the error log:
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> Using Python version specified in runtime.txt
-----> Installing python-3.9.6
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting aiohttp==3.5.4
Downloading aiohttp-3.5.4.tar.gz (1.1 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting astroid==2.2.5
Downloading astroid-2.2.5-py3-none-any.whl (193 kB)
Collecting async-timeout==3.0.1
Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting attrs==19.1.0
Downloading attrs-19.1.0-py2.py3-none-any.whl (35 kB)
Collecting certifi==2019.6.16
Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
Collecting chardet==3.0.4
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting dhooks==1.1.4
Downloading dhooks-1.1.4.tar.gz (11 kB)
Collecting idna==2.7
Downloading idna-2.7-py2.py3-none-any.whl (58 kB)
Collecting isort==4.3.21
Downloading isort-4.3.21-py2.py3-none-any.whl (42 kB)
Collecting lazy-object-proxy==1.4.1
Downloading lazy-object-proxy-1.4.1.tar.gz (34 kB)
Collecting mccabe==0.6.1
Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting multidict==4.5.2
Downloading multidict-4.5.2.tar.gz (105 kB)
Collecting oauthlib==3.0.2
Downloading oauthlib-3.0.2-py2.py3-none-any.whl (143 kB)
Collecting pyfiglet==0.8.post1
Downloading pyfiglet-0.8.post1-py2.py3-none-any.whl (865 kB)
Collecting pylint==2.3.1
Downloading pylint-2.3.1-py3-none-any.whl (765 kB)
Collecting PySocks==1.7.0
Downloading PySocks-1.7.0-py3-none-any.whl (16 kB)
Collecting requests==2.20.1
Downloading requests-2.20.1-py2.py3-none-any.whl (57 kB)
Collecting requests-oauthlib==1.2.0
Downloading requests_oauthlib-1.2.0-py2.py3-none-any.whl (22 kB)
Collecting six==1.12.0
Downloading six-1.12.0-py2.py3-none-any.whl (10 kB)
Collecting tweepy==3.8.0
Downloading tweepy-3.8.0-py2.py3-none-any.whl (28 kB)
Collecting typed-ast==1.4.0
Downloading typed_ast-1.4.0.tar.gz (206 kB)
Collecting urllib3==1.24.3
Downloading urllib3-1.24.3-py2.py3-none-any.whl (118 kB)
Collecting wrapt==1.11.2
Downloading wrapt-1.11.2.tar.gz (27 kB)
Collecting yarl==1.3.0
Downloading yarl-1.3.0.tar.gz (159 kB)
Building wheels for collected packages: aiohttp, dhooks, lazy-object-proxy, multidict, typed-ast, wrapt, yarl
Building wheel for aiohttp (PEP 517): started
Building wheel for aiohttp (PEP 517): finished with status 'done'
Created wheel for aiohttp: filename=aiohttp-3.5.4-py3-none-any.whl size=433157 sha256=29dd53b9a92c453e0c433b26b4e3fbb4f05d55b532b46bfcb1cb207cdc2e3d03
Stored in directory: /tmp/pip-ephem-wheel-cache-0wegl4mw/wheels/4d/b9/64/93e895a06acf653b24f528f16003ca62551660fe57e028244b
Building wheel for dhooks (setup.py): started
Building wheel for dhooks (setup.py): finished with status 'done'
Created wheel for dhooks: filename=dhooks-1.1.4-py3-none-any.whl size=10502 sha256=c9373ca3e2d4f3e9482787f5e30ae592874c4766f55e5c45a6e5ec15ba71704c
Stored in directory: /tmp/pip-ephem-wheel-cache-0wegl4mw/wheels/59/50/a2/61375704307229ac46e79852429f0242d2cf11b0664dd8b358
Building wheel for lazy-object-proxy (setup.py): started
Building wheel for lazy-object-proxy (setup.py): finished with status 'done'
Created wheel for lazy-object-proxy: filename=lazy_object_proxy-1.4.1-cp39-cp39-linux_x86_64.whl size=58346 sha256=e71055627445f81b890e08e1c35d0d4b944bdd49edd55eebfc782935a749f616
Stored in directory: /tmp/pip-ephem-wheel-cache-0wegl4mw/wheels/40/e9/b5/5f679270d6a9059323da690bc386aa591c8d7660ecd8733142
Building wheel for multidict (setup.py): started
Building wheel for multidict (setup.py): finished with status 'done'
Created wheel for multidict: filename=multidict-4.5.2-py3-none-any.whl size=90356 sha256=6c83f65791637b6b6c6dc03e1b9fa6f2f9e470b79afa73e1b91b496ebec279b0
Stored in directory: /tmp/pip-ephem-wheel-cache-0wegl4mw/wheels/38/f1/2a/0a44e164fe71bfd21036447af0204caffcedec1f07326e2a55
Building wheel for typed-ast (setup.py): started
Building wheel for typed-ast (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5uz2yehi/typed-ast/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5uz2yehi/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0gyz_kti
cwd: /tmp/pip-install-5uz2yehi/typed-ast/
Complete output (63 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/ast3.py -> build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/__init__.py -> build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/ast27.py -> build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/conversions.py -> build/lib.linux-x86_64-3.9/typed_ast
package init file 'ast3/tests/__init__.py' not found (or not a regular file)
creating build/lib.linux-x86_64-3.9/typed_ast/tests
copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-3.9/typed_ast/tests
running build_ext
building '_ast27' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/ast27
creating build/temp.linux-x86_64-3.9/ast27/Custom
creating build/temp.linux-x86_64-3.9/ast27/Parser
creating build/temp.linux-x86_64-3.9/ast27/Python
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-3.9/ast27/Custom/typed_ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.9/ast27/Parser/acceler.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/bitset.c -o build/temp.linux-x86_64-3.9/ast27/Parser/bitset.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/grammar.c -o build/temp.linux-x86_64-3.9/ast27/Parser/grammar.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/grammar1.c -o build/temp.linux-x86_64-3.9/ast27/Parser/grammar1.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/node.c -o build/temp.linux-x86_64-3.9/ast27/Parser/node.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/parser.c -o build/temp.linux-x86_64-3.9/ast27/Parser/parser.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/parsetok.c -o build/temp.linux-x86_64-3.9/ast27/Parser/parsetok.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/tokenizer.c -o build/temp.linux-x86_64-3.9/ast27/Parser/tokenizer.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/Python-ast.c -o build/temp.linux-x86_64-3.9/ast27/Python/Python-ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/asdl.c -o build/temp.linux-x86_64-3.9/ast27/Python/asdl.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/ast.c -o build/temp.linux-x86_64-3.9/ast27/Python/ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/graminit.c -o build/temp.linux-x86_64-3.9/ast27/Python/graminit.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/mystrtoul.c -o build/temp.linux-x86_64-3.9/ast27/Python/mystrtoul.o
gcc -pthread -shared build/temp.linux-x86_64-3.9/ast27/Custom/typed_ast.o build/temp.linux-x86_64-3.9/ast27/Parser/acceler.o build/temp.linux-x86_64-3.9/ast27/Parser/bitset.o build/temp.linux-x86_64-3.9/ast27/Parser/grammar.o build/temp.linux-x86_64-3.9/ast27/Parser/grammar1.o build/temp.linux-x86_64-3.9/ast27/Parser/node.o build/temp.linux-x86_64-3.9/ast27/Parser/parser.o build/temp.linux-x86_64-3.9/ast27/Parser/parsetok.o build/temp.linux-x86_64-3.9/ast27/Parser/tokenizer.o build/temp.linux-x86_64-3.9/ast27/Python/Python-ast.o build/temp.linux-x86_64-3.9/ast27/Python/asdl.o build/temp.linux-x86_64-3.9/ast27/Python/ast.o build/temp.linux-x86_64-3.9/ast27/Python/graminit.o build/temp.linux-x86_64-3.9/ast27/Python/mystrtoul.o -o build/lib.linux-x86_64-3.9/typed_ast/_ast27.cpython-39-x86_64-linux-gnu.so
building '_ast3' extension
creating build/temp.linux-x86_64-3.9/ast3
creating build/temp.linux-x86_64-3.9/ast3/Custom
creating build/temp.linux-x86_64-3.9/ast3/Parser
creating build/temp.linux-x86_64-3.9/ast3/Python
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Custom/typed_ast.c -o build/temp.linux-x86_64-3.9/ast3/Custom/typed_ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/acceler.c -o build/temp.linux-x86_64-3.9/ast3/Parser/acceler.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/bitset.c -o build/temp.linux-x86_64-3.9/ast3/Parser/bitset.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/grammar.c -o build/temp.linux-x86_64-3.9/ast3/Parser/grammar.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/grammar1.c -o build/temp.linux-x86_64-3.9/ast3/Parser/grammar1.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/node.c -o build/temp.linux-x86_64-3.9/ast3/Parser/node.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/parser.c -o build/temp.linux-x86_64-3.9/ast3/Parser/parser.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/parsetok.c -o build/temp.linux-x86_64-3.9/ast3/Parser/parsetok.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/tokenizer.c -o build/temp.linux-x86_64-3.9/ast3/Parser/tokenizer.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Python/Python-ast.c -o build/temp.linux-x86_64-3.9/ast3/Python/Python-ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Python/asdl.c -o build/temp.linux-x86_64-3.9/ast3/Python/asdl.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Python/ast.c -o build/temp.linux-x86_64-3.9/ast3/Python/ast.o
ast3/Python/ast.c: In function ‘decode_bytes_with_escapes’:
ast3/Python/ast.c:4534:24: error: too many arguments to function ‘_PyBytes_DecodeEscape’
4534 | PyObject *result = _PyBytes_DecodeEscape(s, len, NULL, 0, NULL,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /app/.heroku/python/include/python3.9/bytesobject.h:75,
from /app/.heroku/python/include/python3.9/Python.h:105,
from ast3/Python/ast.c:6:
/app/.heroku/python/include/python3.9/cpython/bytesobject.h:28:24: note: declared here
28 | PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
| ^~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for typed-ast
Running setup.py clean for typed-ast
Building wheel for wrapt (setup.py): started
Building wheel for wrapt (setup.py): finished with status 'done'
Created wheel for wrapt: filename=wrapt-1.11.2-cp39-cp39-linux_x86_64.whl size=78284 sha256=7cd943edfab88fae68d5ac2cd5c99e63c882ab1097a0b3a77a6e4074e36fdad6
Stored in directory: /tmp/pip-ephem-wheel-cache-0wegl4mw/wheels/76/e9/66/d4e35bfa6cde3925ff1c497043d7a2ccb305c07ac51fef0e31
Building wheel for yarl (setup.py): started
Building wheel for yarl (setup.py): finished with status 'done'
Created wheel for yarl: filename=yarl-1.3.0-py3-none-any.whl size=84914 sha256=897cf5f968677228befd5c5137f3dd98c6d5255b417d88d6227e0266d5612bdb
Stored in directory: /tmp/pip-ephem-wheel-cache-0wegl4mw/wheels/c6/b1/70/86cee44ad7a932f47a0af5e391959c01b42447601b6ba467ca
Successfully built aiohttp dhooks lazy-object-proxy multidict wrapt yarl
Failed to build typed-ast
Installing collected packages: multidict, idna, yarl, async-timeout, attrs, chardet, aiohttp, wrapt, lazy-object-proxy, typed-ast, six, astroid, certifi, urllib3, requests, dhooks, isort, mccabe, oauthlib, pyfiglet, pylint, PySocks, requests-oauthlib, tweepy
Running setup.py install for typed-ast: started
Running setup.py install for typed-ast: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5uz2yehi/typed-ast/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5uz2yehi/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_lhjgk06/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/typed-ast
cwd: /tmp/pip-install-5uz2yehi/typed-ast/
Complete output (63 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/ast3.py -> build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/__init__.py -> build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/ast27.py -> build/lib.linux-x86_64-3.9/typed_ast
copying typed_ast/conversions.py -> build/lib.linux-x86_64-3.9/typed_ast
package init file 'ast3/tests/__init__.py' not found (or not a regular file)
creating build/lib.linux-x86_64-3.9/typed_ast/tests
copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-3.9/typed_ast/tests
running build_ext
building '_ast27' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/ast27
creating build/temp.linux-x86_64-3.9/ast27/Custom
creating build/temp.linux-x86_64-3.9/ast27/Parser
creating build/temp.linux-x86_64-3.9/ast27/Python
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-3.9/ast27/Custom/typed_ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.9/ast27/Parser/acceler.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/bitset.c -o build/temp.linux-x86_64-3.9/ast27/Parser/bitset.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/grammar.c -o build/temp.linux-x86_64-3.9/ast27/Parser/grammar.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/grammar1.c -o build/temp.linux-x86_64-3.9/ast27/Parser/grammar1.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/node.c -o build/temp.linux-x86_64-3.9/ast27/Parser/node.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/parser.c -o build/temp.linux-x86_64-3.9/ast27/Parser/parser.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/parsetok.c -o build/temp.linux-x86_64-3.9/ast27/Parser/parsetok.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Parser/tokenizer.c -o build/temp.linux-x86_64-3.9/ast27/Parser/tokenizer.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/Python-ast.c -o build/temp.linux-x86_64-3.9/ast27/Python/Python-ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/asdl.c -o build/temp.linux-x86_64-3.9/ast27/Python/asdl.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/ast.c -o build/temp.linux-x86_64-3.9/ast27/Python/ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/graminit.c -o build/temp.linux-x86_64-3.9/ast27/Python/graminit.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast27/Include -I/app/.heroku/python/include/python3.9 -c ast27/Python/mystrtoul.c -o build/temp.linux-x86_64-3.9/ast27/Python/mystrtoul.o
gcc -pthread -shared build/temp.linux-x86_64-3.9/ast27/Custom/typed_ast.o build/temp.linux-x86_64-3.9/ast27/Parser/acceler.o build/temp.linux-x86_64-3.9/ast27/Parser/bitset.o build/temp.linux-x86_64-3.9/ast27/Parser/grammar.o build/temp.linux-x86_64-3.9/ast27/Parser/grammar1.o build/temp.linux-x86_64-3.9/ast27/Parser/node.o build/temp.linux-x86_64-3.9/ast27/Parser/parser.o build/temp.linux-x86_64-3.9/ast27/Parser/parsetok.o build/temp.linux-x86_64-3.9/ast27/Parser/tokenizer.o build/temp.linux-x86_64-3.9/ast27/Python/Python-ast.o build/temp.linux-x86_64-3.9/ast27/Python/asdl.o build/temp.linux-x86_64-3.9/ast27/Python/ast.o build/temp.linux-x86_64-3.9/ast27/Python/graminit.o build/temp.linux-x86_64-3.9/ast27/Python/mystrtoul.o -o build/lib.linux-x86_64-3.9/typed_ast/_ast27.cpython-39-x86_64-linux-gnu.so
building '_ast3' extension
creating build/temp.linux-x86_64-3.9/ast3
creating build/temp.linux-x86_64-3.9/ast3/Custom
creating build/temp.linux-x86_64-3.9/ast3/Parser
creating build/temp.linux-x86_64-3.9/ast3/Python
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Custom/typed_ast.c -o build/temp.linux-x86_64-3.9/ast3/Custom/typed_ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/acceler.c -o build/temp.linux-x86_64-3.9/ast3/Parser/acceler.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/bitset.c -o build/temp.linux-x86_64-3.9/ast3/Parser/bitset.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/grammar.c -o build/temp.linux-x86_64-3.9/ast3/Parser/grammar.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/grammar1.c -o build/temp.linux-x86_64-3.9/ast3/Parser/grammar1.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/node.c -o build/temp.linux-x86_64-3.9/ast3/Parser/node.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/parser.c -o build/temp.linux-x86_64-3.9/ast3/Parser/parser.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/parsetok.c -o build/temp.linux-x86_64-3.9/ast3/Parser/parsetok.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Parser/tokenizer.c -o build/temp.linux-x86_64-3.9/ast3/Parser/tokenizer.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Python/Python-ast.c -o build/temp.linux-x86_64-3.9/ast3/Python/Python-ast.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Python/asdl.c -o build/temp.linux-x86_64-3.9/ast3/Python/asdl.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Iast3/Include -I/app/.heroku/python/include/python3.9 -c ast3/Python/ast.c -o build/temp.linux-x86_64-3.9/ast3/Python/ast.o
ast3/Python/ast.c: In function ‘decode_bytes_with_escapes’:
ast3/Python/ast.c:4534:24: error: too many arguments to function ‘_PyBytes_DecodeEscape’
4534 | PyObject *result = _PyBytes_DecodeEscape(s, len, NULL, 0, NULL,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /app/.heroku/python/include/python3.9/bytesobject.h:75,
from /app/.heroku/python/include/python3.9/Python.h:105,
from ast3/Python/ast.c:6:
/app/.heroku/python/include/python3.9/cpython/bytesobject.h:28:24: note: declared here
28 | PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
| ^~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5uz2yehi/typed-ast/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5uz2yehi/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_lhjgk06/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/typed-ast Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
this is my first time using Heroku so i don't really know what i am looking at or where to look when i do find an error. any tips on how to find my problem?
I figured this out.
I went through every single requirement in requirements.txt and changed the version to the newest of every dependency on https://pypi.org/
worked fine after.
figured this out after reading multiple other posts where people simply needed to update from a depreciated version of a dependency they were using so check your dependency versions!

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.

I want to push a Python app to Heroku on Windows 10, but i get "error: command 'gcc' failed with exit status 1"

I enter git push heroku master into the command prompt and all goes well for a while then...
WARNING: The Python installation you are using does not appear to have
been installed with a shared library, or in the case of MacOS X, as a
framework. Where these are not present, the compilation of mod_wsgi may
fail, or if it does succeed, will result in extra memory being used by
all processes at run time as a result of the static library needing to
be loaded in its entirety to every process. It is highly recommended
that you reinstall the Python installation being used from source code,
supplying the '--enable-shared' option to the 'configure' script when
configuring the source code prior to building and installing it.
then...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/mod_wsgi.c -o build/temp.linux-x86_64-3.7/src/server/mod_wsgi.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
src/server/mod_wsgi.c: In function ‘wsgi_socket_sendv’:
src/server/mod_wsgi.c:10966:44: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(nvec < iov_max ? nvec : (int)iov_max));
^
src/server/mod_wsgi.c: In function ‘wsgi_scan_headers’:
src/server/mod_wsgi.c:11125:30: warning: signed and unsigned type in conditional expression [-Wsign-compare]
buflen = buffer ? buflen : sizeof(x);
^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_memory.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_memory.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_daemon.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_daemon.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_server.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_server.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_metrics.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_metrics.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_stream.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_stream.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_convert.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_convert.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_restrict.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_restrict.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_apache.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_apache.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_buckets.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_buckets.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_logger.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_logger.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_validate.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_validate.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_thread.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_thread.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I/app/.heroku/python/include/python3.7m -c src/server/wsgi_interp.c -o build/temp.linux-x86_64-3.7/src/server/wsgi_interp.o -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apache/include -I. -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr/include/apr-1 -I/tmp/pip-build-oxraezk2/mod-wsgi/src/packages/apr-util/include/apr-1 -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
gcc -pthread -shared build/temp.linux-x86_64-3.7/src/server/mod_wsgi.o build/temp.linux-x86_64-3.7/src/server/wsgi_memory.o build/temp.linux-x86_64-3.7/src/server/wsgi_daemon.o build/temp.linux-x86_64-3.7/src/server/wsgi_server.o build/temp.linux-x86_64-3.7/src/server/wsgi_metrics.o build/temp.linux-x86_64-3.7/src/server/wsgi_stream.o build/temp.linux-x86_64-3.7/src/server/wsgi_convert.o build/temp.linux-x86_64-3.7/src/server/wsgi_restrict.o build/temp.linux-x86_64-3.7/src/server/wsgi_apache.o build/temp.linux-x86_64-3.7/src/server/wsgi_buckets.o build/temp.linux-x86_64-3.7/src/server/wsgi_logger.o build/temp.linux-x86_64-3.7/src/server/wsgi_validate.o build/temp.linux-x86_64-3.7/src/server/wsgi_thread.o build/temp.linux-x86_64-3.7/src/server/wsgi_interp.o -o build/lib.linux-x86_64-3.7/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so -L/app/.heroku/python/lib -L/app/.heroku/python/lib/python3.7/config-3.7m-linux -lpython3.7m
/usr/bin/ld: /app/.heroku/python/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oxraezk2/mod-wsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-yla81xqj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-oxraezk2/mod-wsgi/
! Push rejected, failed to compile Python app.
! Push failed
I have tried pip install gcc to no avail and I don't even know if gcc is the real issue. I am trying to learn how to use Heroku and Python with hopes of later deploying a django app (which I have already created) via Heroku.

How do I make the Windmill IDE appear for https sites on Ubuntu?

I am trying to use the Windmill Testing Framework over https. I'm running Ubuntu 11.10 with Python 2.7, installing windmill and pyopenssl in a virtualenv via pip. (Installation sequence is included below for reference.)
When I run windmill firefox http://en.wikipedia.org the Windmill IDE comes up fine. When I run windmill firefox https://en.wikipedia.org Firefox starts, but the IDE never appears. (I have verified that when Windmill starts Firefox on Ubuntu, the CA for https is already installed.)
Am I encountering a bug, or is there something else I need to do to get the IDE to work on https addresses?
Installation sequence
myuser#mycomputer:~$ mkvirtualenv --no-site-packages windmill_test
New python executable in windmill_test/bin/python
Installing distribute....................................................................................................................................................................................done.
Installing pip...............done.
virtualenvwrapper.user_scripts creating /home/myuser/.virtualenvs/windmill_test/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/myuser/.virtualenvs/windmill_test/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/myuser/.virtualenvs/windmill_test/bin/preactivate
virtualenvwrapper.user_scripts creating /home/myuser/.virtualenvs/windmill_test/bin/postactivate
virtualenvwrapper.user_scripts creating /home/myuser/.virtualenvs/windmill_test/bin/get_env_details
(windmill_test)myuser#mycomputer:~$ pip install pyopenssl
Downloading/unpacking pyopenssl
Downloading pyOpenSSL-0.13.tar.gz (250Kb): 250Kb downloaded
Running setup.py egg_info for package pyopenssl
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Installing collected packages: pyopenssl
Running setup.py install for pyopenssl
building 'OpenSSL.crypto' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/crypto.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/x509.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/x509.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/x509name.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/x509name.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/pkey.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/pkey.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/x509store.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/x509store.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/x509req.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/x509req.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/x509ext.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/x509ext.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/pkcs7.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/pkcs7.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/pkcs12.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/pkcs12.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/netscape_spki.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/netscape_spki.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/revoked.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/revoked.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/crl.c -o build/temp.linux-i686-2.7/OpenSSL/crypto/crl.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/util.c -o build/temp.linux-i686-2.7/OpenSSL/util.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-i686-2.7/OpenSSL/crypto/crypto.o build/temp.linux-i686-2.7/OpenSSL/crypto/x509.o build/temp.linux-i686-2.7/OpenSSL/crypto/x509name.o build/temp.linux-i686-2.7/OpenSSL/crypto/pkey.o build/temp.linux-i686-2.7/OpenSSL/crypto/x509store.o build/temp.linux-i686-2.7/OpenSSL/crypto/x509req.o build/temp.linux-i686-2.7/OpenSSL/crypto/x509ext.o build/temp.linux-i686-2.7/OpenSSL/crypto/pkcs7.o build/temp.linux-i686-2.7/OpenSSL/crypto/pkcs12.o build/temp.linux-i686-2.7/OpenSSL/crypto/netscape_spki.o build/temp.linux-i686-2.7/OpenSSL/crypto/revoked.o build/temp.linux-i686-2.7/OpenSSL/crypto/crl.o build/temp.linux-i686-2.7/OpenSSL/util.o -lssl -lcrypto -o build/lib.linux-i686-2.7/OpenSSL/crypto.so
building 'OpenSSL.rand' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/rand/rand.c -o build/temp.linux-i686-2.7/OpenSSL/rand/rand.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/util.c -o build/temp.linux-i686-2.7/OpenSSL/util.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-i686-2.7/OpenSSL/rand/rand.o build/temp.linux-i686-2.7/OpenSSL/util.o -lssl -lcrypto -o build/lib.linux-i686-2.7/OpenSSL/rand.so
building 'OpenSSL.SSL' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/ssl/connection.c -o build/temp.linux-i686-2.7/OpenSSL/ssl/connection.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/ssl/context.c -o build/temp.linux-i686-2.7/OpenSSL/ssl/context.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/ssl/ssl.c -o build/temp.linux-i686-2.7/OpenSSL/ssl/ssl.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c OpenSSL/util.c -o build/temp.linux-i686-2.7/OpenSSL/util.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-i686-2.7/OpenSSL/ssl/connection.o build/temp.linux-i686-2.7/OpenSSL/ssl/context.o build/temp.linux-i686-2.7/OpenSSL/ssl/ssl.o build/temp.linux-i686-2.7/OpenSSL/util.o -lssl -lcrypto -o build/lib.linux-i686-2.7/OpenSSL/SSL.so
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Successfully installed pyopenssl
Cleaning up...
(windmill_test)myuser#mycomputer:~$ pip install windmill
Downloading/unpacking windmill
Downloading windmill-1.6.tar.gz (1.6Mb): 1.6Mb downloaded
Running setup.py egg_info for package windmill
Installing collected packages: windmill
Running setup.py install for windmill
Installing windmill script to /home/myuser/.virtualenvs/windmill_test/bin
Successfully installed windmill
Cleaning up...
(windmill_test)myuser#mycomputer:~$ pip freeze
distribute==0.6.19
pyOpenSSL==0.13
windmill==1.6
wsgiref==0.1.2
http
(windmill_test)myuser#mycomputer:~$ windmill firefox http://en.wikipedia.org
windmill.bin.shell_objects: INFO ['/home/myuser/.mozilla/firefox/p3t9ijqj.mozrunner//mozrunner-firefox', '-profile', '/home/myuser/.mozilla/firefox/p3t9ijqj.mozrunner/', 'http://en.wikipedia.org/windmill-serv/start.html']
Attempts to load http://en.wikipedia.org/windmill-serv/start.html but resolves to http://en.wikipedia.org/wiki/Main_Page . IDE loads.
https
(windmill_test)myuser#mycomputer:~$ windmill firefox https://en.wikipedia.org
windmill.bin.shell_objects: INFO ['/home/myuser/.mozilla/firefox/p3t9ijqj.mozrunner//mozrunner-firefox', '-profile', '/home/myuser/.mozilla/firefox/p3t9ijqj.mozrunner/', 'https://en.wikipedia.org/windmill-serv/start.html']
Attempts to load https://en.wikipedia.org/windmill-serv/start.html and resolves to that pages (which displays a 404 page, which then redirects to https://en.wikipedia.org/wiki/Windmill-serv/start.html - I'm just using Wikipedia as an example here, so it doesn't matter that it returns 404s or "Wikipedia does not have an article with this exact name"). The IDE never loads.
This is not a bug, this was a user error :D
I was running windmill firefox https://www.example.com instead of windmill firefox https://www.example.com ssl

Categories

Resources