I am trying to install mpi4py in default python environment used by anaconda:
python3.9 -m pip install mpi4py
which produces error during installation
python -m pip install mpi4py
Collecting mpi4py
Using cached mpi4py-3.1.3.tar.gz (2.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: mpi4py
Building wheel for mpi4py (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /home/gleb/anaconda3/bin/python /home/gleb/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp75wsbtz5
cwd: /tmp/pip-install-84g0ez5h/mpi4py_2ac6e87b98de43d3827e1b2951c5c4ff
Complete output (156 lines):
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/bench.py -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__main__.py -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/run.py -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__init__.py -> build/lib.linux-x86_64-cpython-39/mpi4py
creating build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_core.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
creating build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/dtlib.py -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/pkl5.py -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/__init__.py -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/py.typed -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__main__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/dl.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/MPI.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__init__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/bench.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/run.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__init__.pxd -> build/lib.linux-x86_64-cpython-39/mpi4py
creating build/lib.linux-x86_64-cpython-39/mpi4py/include
creating build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/futures/_lib.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__main__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/aplus.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__init__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/pool.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/server.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_core.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/util/dtlib.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/pkl5.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/__init__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/util
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /home/gleb/anaconda3/bin/mpicc
MPI C++ compiler: /home/gleb/anaconda3/bin/mpicxx
MPI F compiler: /home/gleb/anaconda3/bin/mpifort
MPI F90 compiler: /home/gleb/anaconda3/bin/mpif90
MPI F77 compiler: /home/gleb/anaconda3/bin/mpif77
checking for library 'lmpe' ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/src
creating build/temp.linux-x86_64-cpython-39/src/lib-pmpi
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c src/lib-pmpi/mpe.c -o build/temp.linux-x86_64-cpython-39/src/lib-pmpi/mpe.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
warning: build_clib: command '/home/gleb/anaconda3/bin/mpicc' failed with exit code 127
warning: build_clib: building optional library "mpe" failed
checking for library 'vt-mpi' ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c src/lib-pmpi/vt.c -o build/temp.linux-x86_64-cpython-39/src/lib-pmpi/vt.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
warning: build_clib: command '/home/gleb/anaconda3/bin/mpicc' failed with exit code 127
warning: build_clib: building optional library "vt" failed
checking for library 'vt-mpi' ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c src/lib-pmpi/vt-mpi.c -o build/temp.linux-x86_64-cpython-39/src/lib-pmpi/vt-mpi.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
warning: build_clib: command '/home/gleb/anaconda3/bin/mpicc' failed with exit code 127
warning: build_clib: building optional library "vt-mpi" failed
checking for library 'vt-hyb' ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.ompi' ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -c src/lib-pmpi/vt-hyb.c -o build/temp.linux-x86_64-cpython-39/src/lib-pmpi/vt-hyb.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
warning: build_clib: command '/home/gleb/anaconda3/bin/mpicc' failed with exit code 127
warning: build_clib: building optional library "vt-hyb" failed
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /home/gleb/anaconda3/bin/mpicc
MPI C++ compiler: /home/gleb/anaconda3/bin/mpicxx
MPI F compiler: /home/gleb/anaconda3/bin/mpifort
MPI F90 compiler: /home/gleb/anaconda3/bin/mpif90
MPI F77 compiler: /home/gleb/anaconda3/bin/mpif77
checking for dlopen() availability ...
checking for header 'dlfcn.h' ...
gcc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -I/home/gleb/anaconda3/include/python3.9 -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
checking for library 'dl' ...
gcc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -I/home/gleb/anaconda3/include/python3.9 -c _configtest.c -o _configtest.o
gcc -pthread -B /home/gleb/anaconda3/compiler_compat _configtest.o -Lbuild/temp.linux-x86_64-cpython-39 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
checking for function 'dlopen' ...
gcc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -I/home/gleb/anaconda3/include/python3.9 -c _configtest.c -o _configtest.o
gcc -pthread -B /home/gleb/anaconda3/compiler_compat _configtest.o -Lbuild/temp.linux-x86_64-cpython-39 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building 'mpi4py.dl' extension
gcc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/home/gleb/anaconda3/include/python3.9 -c src/dynload.c -o build/temp.linux-x86_64-cpython-39/src/dynload.o
gcc -pthread -B /home/gleb/anaconda3/compiler_compat -shared -Wl,-rpath,/home/gleb/anaconda3/lib -Wl,-rpath-link,/home/gleb/anaconda3/lib -L/home/gleb/anaconda3/lib -L/home/gleb/anaconda3/lib -Wl,-rpath,/home/gleb/anaconda3/lib -Wl,-rpath-link,/home/gleb/anaconda3/lib -L/home/gleb/anaconda3/lib build/temp.linux-x86_64-cpython-39/src/dynload.o -Lbuild/temp.linux-x86_64-cpython-39 -ldl -o build/lib.linux-x86_64-cpython-39/mpi4py/dl.cpython-39-x86_64-linux-gnu.so
checking for MPI compile and link ...
/home/gleb/anaconda3/bin/mpicc -pthread -B /home/gleb/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/gleb/anaconda3/include -I/home/gleb/anaconda3/include -fPIC -O2 -isystem /home/gleb/anaconda3/include -fPIC -I/home/gleb/anaconda3/include/python3.9 -c _configtest.c -o _configtest.o
/home/gleb/anaconda3/bin/mpicc: line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!
----------------------------------------
ERROR: Failed building wheel for mpi4py
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py which use PEP 517 and cannot be installed directly
Then I tried
sudo pip install mpi4py
that installed the package correctly but into another python environment
so python does not see it
Python 3.9.12 (main, Apr 5 2022, 06:56:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mpi4py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'mpi4py'
Finally I've tried simply
sudo apt install python3-mpi4py
it installed package correclty but my python3 enviroment still does not see it.
I also tried
conda install -c conda-forge mpi4py
which does not work as well:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: - failed with initial frozen solve. Retrying with flexible solve.
how could I execute python3.9 -m pip install mpi4py with sudo ?
Related
When I try to install mpi4py without sudo using pip install on Ubuntu 22, I get the following error (with sudo works fine):
ERROR: Command errored out with exit status 1:
command: /home/vedant/miniconda3/bin/python /home/vedant/miniconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp25az93fg
cwd: /tmp/pip-install-khu2q4rx/mpi4py_194f67e86692449fbf667e77b7a580c2
Complete output (404 lines):
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/bench.py -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__init__.py -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/run.py -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__main__.py -> build/lib.linux-x86_64-cpython-39/mpi4py
creating build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_core.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
creating build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/dtlib.py -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/__init__.py -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/pkl5.py -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/py.typed -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__init__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__main__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/run.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/dl.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/MPI.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/bench.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/__init__.pxd -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.linux-x86_64-cpython-39/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.linux-x86_64-cpython-39/mpi4py
creating build/lib.linux-x86_64-cpython-39/mpi4py/include
creating build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.linux-x86_64-cpython-39/mpi4py/include/mpi4py
copying src/mpi4py/futures/pool.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/server.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__init__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/__main__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/aplus.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_lib.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/futures/_core.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/futures
copying src/mpi4py/util/__init__.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/dtlib.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/util
copying src/mpi4py/util/pkl5.pyi -> build/lib.linux-x86_64-cpython-39/mpi4py/util
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /usr/bin/mpicc
MPI C++ compiler: /usr/bin/mpicxx
MPI F compiler: /usr/bin/mpifort
MPI F90 compiler: /usr/bin/mpif90
MPI F77 compiler: /usr/bin/mpif77
checking for library 'lmpe' ...
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/vedant/miniconda3/include -I/home/vedant/miniconda3/include -fPIC -O2 -isystem /home/vedant/miniconda3/include -fPIC -c _configtest.c -o _configtest.o
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat _configtest.o -llmpe -o _configtest
/home/vedant/miniconda3/compiler_compat/ld: cannot find -llmpe
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/src
creating build/temp.linux-x86_64-cpython-39/src/lib-pmpi
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/vedant/miniconda3/include -I/home/vedant/miniconda3/include -fPIC -O2 -isystem /home/vedant/miniconda3/include -fPIC -c src/lib-pmpi/mpe.c -o build/temp.linux-x86_64-cpython-39/src/lib-pmpi/mpe.o
creating build/lib.linux-x86_64-cpython-39/mpi4py/lib-pmpi
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -shared -Wl,-rpath,/home/vedant/miniconda3/lib -Wl,-rpath-link,/home/vedant/miniconda3/lib -L/home/vedant/miniconda3/lib -L/home/vedant/miniconda3/lib -Wl,-rpath,/home/vedant/miniconda3/lib -Wl,-rpath-link,/home/vedant/miniconda3/lib -L/home/vedant/miniconda3/lib -Wl,--no-as-needed build/temp.linux-x86_64-cpython-39/src/lib-pmpi/mpe.o -o build/lib.linux-x86_64-cpython-39/mpi4py/lib-pmpi/libmpe.so
checking for library 'vt-mpi' ...
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/vedant/miniconda3/include -I/home/vedant/miniconda3/include -fPIC -O2 -isystem /home/vedant/miniconda3/include -fPIC -c _configtest.c -o _configtest.o
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat _configtest.o -lvt-mpi -o _configtest
/home/vedant/miniconda3/compiler_compat/ld: cannot find -lvt-mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/vedant/miniconda3/include -I/home/vedant/miniconda3/include -fPIC -O2 -isystem /home/vedant/miniconda3/include -fPIC -c _configtest.c -o _configtest.o
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat _configtest.o -lvt.mpi -o _configtest
/home/vedant/miniconda3/compiler_compat/ld: cannot find -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/vedant/miniconda3/include -I/home/vedant/miniconda3/include -fPIC -O2 -isystem /home/vedant/miniconda3/include -fPIC -c src/lib-pmpi/vt.c -o build/temp.linux-x86_64-cpython-39/src/lib-pmpi/vt.o
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -shared -Wl,-rpath,/home/vedant/miniconda3/lib -Wl,-rpath-link,/home/vedant/miniconda3/lib -L/home/vedant/miniconda3/lib -L/home/vedant/miniconda3/lib -Wl,-rpath,/home/vedant/miniconda3/lib -Wl,-rpath-link,/home/vedant/miniconda3/lib -L/home/vedant/miniconda3/lib -Wl,--no-as-needed build/temp.linux-x86_64-cpython-39/src/lib-pmpi/vt.o -o build/lib.linux-x86_64-cpython-39/mpi4py/lib-pmpi/libvt.so
checking for library 'vt-mpi' ...
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/vedant/miniconda3/include -I/home/vedant/miniconda3/include -fPIC -O2 -isystem /home/vedant/miniconda3/include -fPIC -c _configtest.c -o _configtest.o
/usr/bin/mpicc -pthread -B /home/vedant/miniconda3/compiler_compat _configtest.o -lvt-mpi -o _configtest
/home/vedant/miniconda3/compiler_compat/ld: cannot find -lvt-mpi
collect2: error: ld returned 1 exit status
I have looked at this post: Installing mpi4py and run sudo apt install mpi, which has worked. So, which mpiexec prints /usr/bin/mpiexec.
I have read this post: Cannot install mpi4py on CentOS 7, and have done the following:
sudo apt install python3-mpi4py
Answer was to use conda instead of pip:
conda install -c conda-forge mpi
conda install -c conda-forge mpi4py
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'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.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
We have a Django project we need to start and cannot build sqlite for the persistent store.
sqlite3-dev headers/libs are not installed in the system by default
I have no root permissions on this box (we are expected to install all we need)
I compiled/installed Python-2.7.3 in /opt/python/current2
I downloaded and compiled sqlite3 source in /home/olib/sqlite-autoconf-307150
I downloaded pysqlite-2.6.3
I modified pysqlite-2.6.3/setup.py to point to my sqlite3 source header and library files
include_dirs = ['/home/olib/sqlite-autoconf-3071501']
library_dirs = ['/home/olib/sqlite-autoconf-3071501/.libs']
/home/olib/pysqlite-2.6.3> echo $PYTHON_HOME
/opt/python/current2
/home/olib/pysqlite-2.6.3> python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pysqlite2
copying lib/dbapi2.py -> build/lib.linux-x86_64-2.7/pysqlite2
copying lib/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2
copying lib/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2
creating build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/dbapi.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/types.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/hooks.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/factory.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
copying lib/test/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
creating build/lib.linux-x86_64-2.7/pysqlite2/test/py25
copying lib/test/py25/py25tests.py -> build/lib.linux-x86_64-2.7/pysqlite2/test/py25
copying lib/test/py25/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test/py25
running build_ext
building 'pysqlite2._sqlite' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/connection.c -o build/temp.linux-x86_64-2.7/src/connection.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/cursor.c -o build/temp.linux-x86_64-2.7/src/cursor.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/cache.c -o build/temp.linux-x86_64-2.7/src/cache.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/microprotocols.c -o build/temp.linux-x86_64-2.7/src/microprotocols.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/prepare_protocol.c -o build/temp.linux-x86_64-2.7/src/prepare_protocol.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/statement.c -o build/temp.linux-x86_64-2.7/src/statement.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/util.c -o build/temp.linux-x86_64-2.7/src/util.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/home/olib/sqlite-autoconf-3071501 -I/opt/python/current2/include/python2.7 -c src/row.c -o build/temp.linux-x86_64-2.7/src/row.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/src/module.o build/temp.linux-x86_64-2.7/src/connection.o build/temp.linux-x86_64-2.7/src/cursor.o build/temp.linux-x86_64-2.7/src/cache.o build/temp.linux-x86_64-2.7/src/microprotocols.o build/temp.linux-x86_64-2.7/src/prepare_protocol.o build/temp.linux-x86_64-2.7/src/statement.o build/temp.linux-x86_64-2.7/src/util.o build/temp.linux-x86_64-2.7/src/row.o -L/home/olib/sqlite-autoconf-3071501/.libs -lsqlite3 -o build/lib.linux-x86_64-2.7/pysqlite2/**_sqlite.so**
running install_lib
copying build/lib.linux-x86_64-2.7/pysqlite2/_sqlite.so -> /opt/python/current2/lib/python2.7/site-packages/pysqlite2
running install_data
running install_egg_info
Removing /opt/python/current2/lib/python2.7/site-packages/pysqlite-2.6.3-py2.7.egg-info
Writing /opt/python/current2/lib/python2.7/site-packages/pysqlite-2.6.3-py2.7.egg-info
for some reason "_sqlite.so" is built but not "_sqlite3.so" of course this causes Django import to fail
File "/opt/python/current2/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 31, in <module>
raise ImproperlyConfigured("Error loading either pysqlite2 or sqlite3 modules (tried in that order): %s" % exc)
django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3
rebuilt Python with
./configure --prefix=/opt/python/ LDFLAGS='-L/home/olib/sqlite-autoconf-3071501/.libs' CPPFLAGS="-I/home/olib/sqlite-autoconf-3071501/'
./build/lib.linux-x86_64-2.7/_sqlite3.so now created!
Copied to lib-dynload directory
olib:~/Python-2.7.3> cp ./build/lib.linux-x86_64-2.7/_sqlite3.so /opt/python/current2/lib/python2.7/lib-dynload/
All looks good now..
olib:~> python
Python 2.7.3 (default, May 28 2012, 20:04:45)
[GCC 4.1.2 20070115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>>
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