matplotlib - installing on CentOS - setup.py build fails - python

trying to install matplotlib (1.1.0 with python 2.7.3 on CentOS)
python setup.py build
looks good until:
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/numpy-1.5.1-release/lib/python2.7/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/python-2.7.3-release/include/python2.7 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.7/src/ft2font.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/numpy-1.5.1-release/lib/python2.7/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/python-2.7.3-release/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/numpy-1.5.1-release/lib/python2.7/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/python-2.7.3-release/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/numpy-1.5.1-release/lib/python2.7/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/python-2.7.3-release/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/numpy-1.5.1-release/lib/python2.7/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/python-2.7.3-release/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/numpy-1.5.1-release/lib/python2.7/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/mnt/storage/laviniag/Tools/Qiime/qiime_software/python-2.7.3-release/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
g++ -pthread -shared build/temp.linux-x86_64-2.7/src/ft2font.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -L/mnt/storage/laviniag/Tools/Qiime/qiime_software/python-2.7.3-release/lib -lfreetype -lz -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/ft2font.so
**/usr/bin/ld: /usr/local/lib/libpython2.7.a(parsetok.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1**
So I'm guessing I need to either edit the config file maybe to allow sharing? Any help appreciated, thanks.

matplotlib is one of the packages that can be really hard to install, there are plenty of others (ahem... lxml, pyside/pyqt4, etc).
Save yourself some trouble and checkout one of the pre-builts. Anaconda from continuum or canopy from enthought are good on cetos and will save you a log of headaches (free installs).

Just use pip and virtualenv, it should work fine (CentOS-6.5, x86_64, python-2.6) Installing Matplotlib on CentOS 6.5

Related

Error message 'package had non-zero exit status'

I have installed R with Anaconda. Trying to execute
install.packages("isoband")
in Jupyter Notebook yields to error message
Warning message in install.packages("isoband"): “installation of
package ‘isoband’ had non-zero exit status”Updating HTML index of
packages in '.Library' Making 'packages.html' ... done
Does anyone have a guess what the problem might be? I am using a Macbook (M1). Thank you!
Here the whole error message:
trying URL 'https://cran.rstudio.com/src/contrib/isoband_0.2.5.tar.gz'
Content type 'application/x-gzip' length 1671911 bytes (1.6 MB)
==================================================
downloaded 1.6 MB
* installing *source* package ‘isoband’ ...
** package ‘isoband’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c clip-lines.cpp -o clip-lines.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c init.cpp -o init.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c isoband.cpp -o isoband.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c polygon.cpp -o polygon.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c separate-polygons.cpp -o separate-polygons.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c test-clip-lines.cpp -o test-clip-lines.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c test-runner.cpp -o test-runner.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/include" -DNDEBUG -Itestthat -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/patrick/opt/anaconda3/envs/r_environment/include -fdebug-prefix-map=/opt/concourse/worker/volumes/live/59b7f007-fada-42cf-7435-5bbd0518eaa4/volume/r-base_1570124919999/work=/usr/local/src/conda/r-base-3.6.1 -fdebug-prefix-map=/Users/patrick/opt/anaconda3/envs/r_environment=/usr/local/src/conda-prefix -c test-separate-polygons.cpp -o test-separate-polygons.o
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/lib -Wl,-dead_strip_dylibs -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/patrick/opt/anaconda3/envs/r_environment/lib -L/Users/patrick/opt/anaconda3/envs/r_environment/lib -o isoband.dylib clip-lines.o init.o isoband.o polygon.o separate-polygons.o test-clip-lines.o test-runner.o test-separate-polygons.o -L/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/lib -lR -Wl,-framework -Wl,CoreFoundation
ld: warning: -pie being ignored. It is only used when linking a main executable
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/share/make/shlib.mk:6: isoband.dylib] Error 1
ERROR: compilation failed for package ‘isoband’
* removing ‘/Users/patrick/opt/anaconda3/envs/r_environment/lib/R/library/isoband’
Warning in install.packages :
installation of package ‘isoband’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/90/dbqm7c3s4rs4r_0fg249fgsm0000gn/T/RtmpVOx7tE/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

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.

Python old version of Cython even when newer version installed

I installed Cython 0.24.1 on my Raspberry Pi by doing this:
Pasted below is the command and terminal output.
pi#raspberrypi:~ $ sudo pip3 install --upgrade cython==0.24.1
Downloading/unpacking cython==0.24.1
Downloading Cython-0.24.1.tar.gz (1.7MB): 1.7MB downloaded
Running setup.py (path:/tmp/pip-build-hprgsgiw/cython/setup.py) egg_info for package cython
Unable to find pgen, not compiling formal grammar.
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'
Installing collected packages: cython
Running setup.py install for cython
Unable to find pgen, not compiling formal grammar.
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Plex/Scanners.py to /tmp/pip-build-hprgsgiw/cython/Cython/Plex/Scanners.c
building 'Cython.Plex.Scanners' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Plex/Scanners.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Plex/Scanners.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Plex/Scanners.o -o build/lib.linux-armv7l-3.4/Cython/Plex/Scanners.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Plex/Actions.py to /tmp/pip-build-hprgsgiw/cython/Cython/Plex/Actions.c
building 'Cython.Plex.Actions' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Plex/Actions.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Plex/Actions.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Plex/Actions.o -o build/lib.linux-armv7l-3.4/Cython/Plex/Actions.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Lexicon.py to /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Lexicon.c
building 'Cython.Compiler.Lexicon' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Lexicon.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Lexicon.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Lexicon.o -o build/lib.linux-armv7l-3.4/Cython/Compiler/Lexicon.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Scanning.py to /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Scanning.c
building 'Cython.Compiler.Scanning' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Scanning.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Scanning.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Scanning.o -o build/lib.linux-armv7l-3.4/Cython/Compiler/Scanning.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Parsing.py to /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Parsing.c
building 'Cython.Compiler.Parsing' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Parsing.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Parsing.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Parsing.o -o build/lib.linux-armv7l-3.4/Cython/Compiler/Parsing.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Visitor.py to /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Visitor.c
building 'Cython.Compiler.Visitor' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Visitor.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Visitor.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Visitor.o -o build/lib.linux-armv7l-3.4/Cython/Compiler/Visitor.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/FlowControl.py to /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/FlowControl.c
building 'Cython.Compiler.FlowControl' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/FlowControl.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/FlowControl.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/FlowControl.o -o build/lib.linux-armv7l-3.4/Cython/Compiler/FlowControl.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Code.py to /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Code.c
building 'Cython.Compiler.Code' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Code.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Code.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Compiler/Code.o -o build/lib.linux-armv7l-3.4/Cython/Compiler/Code.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Runtime/refnanny.pyx to /tmp/pip-build-hprgsgiw/cython/Cython/Runtime/refnanny.c
building 'Cython.Runtime.refnanny' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Runtime/refnanny.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Runtime/refnanny.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Runtime/refnanny.o -o build/lib.linux-armv7l-3.4/Cython/Runtime/refnanny.cpython-34m.so
cythoning /tmp/pip-build-hprgsgiw/cython/Cython/Tempita/_tempita.py to /tmp/pip-build-hprgsgiw/cython/Cython/Tempita/_tempita.c
building 'Cython.Tempita._tempita' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/pip-build-hprgsgiw/cython/Cython/Tempita/_tempita.c -o build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Tempita/_tempita.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/tmp/pip-build-hprgsgiw/cython/Cython/Tempita/_tempita.o -o build/lib.linux-armv7l-3.4/Cython/Tempita/_tempita.cpython-34m.so
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'
Installing cygdb script to /usr/local/bin
Installing cython script to /usr/local/bin
Installing cythonize script to /usr/local/bin
Successfully installed cython
Cleaning up...
Looks like the installation has completed fine. But after this, if I do the following, it still return the old version. What am I missing?
pi#raspberrypi:~ $ python3 -c "import cython;print(cython.__version__)"
0.21.1
From the log, I can read Installing cython script to /usr/local/bin. I extrapolate that the library has installed in /usr/local/python3something. Two alternatives:
re-install using pip3 install --user --upgrade cython==0.24.1 and make sure that ~/.local/bin is in your PATH environment variable.
add /usr/local/bin to your PATH environment variable and /usr/local/python3something/site-packages to your LD_LIBRARY_PATH environment variable.
Indeed, the python3something part must be changed to reflect the exact path on your system. Option "1" above should work even if my extrapolation is wrong.

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.

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