pupil-labs / pupil-detectors

GNU Lesser General Public License v3.0
24 stars 18 forks source link

ERROR: Failed building wheel for pupil-detectors #15

Closed Lifestohack closed 4 years ago

Lifestohack commented 4 years ago

I tired to build pupil-detectors in Raspberry Pi 3 Model B Rev 1.2 with ubuntu-18.04.5-preinstalled-server-arm64+raspi3 server but could not get it to work.

ubuntu@ubuntu:~/pupil-detectors$ sudo pip3 install ".[dev]"
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing /home/ubuntu/pupil-detectors
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy in /home/ubuntu/.local/lib/python3.6/site-packages (from pupil-detectors==1.1.1) (1.19.4)
Requirement already satisfied: cysignals in /home/ubuntu/.local/lib/python3.6/site-packages (from pupil-detectors==1.1.1) (1.10.2)
Requirement already satisfied: pytest; extra == "dev" in /home/ubuntu/.local/lib/python3.6/site-packages (from pupil-detectors==1.1.1) (6.1.2)
Requirement already satisfied: tox; extra == "dev" in /home/ubuntu/.local/lib/python3.6/site-packages (from pupil-detectors==1.1.1) (3.20.1)
Requirement already satisfied: Cython>=0.28 in /home/ubuntu/.local/lib/python3.6/site-packages (from cysignals->pupil-detectors==1.1.1) (0.29.21)
Requirement already satisfied: iniconfig in /home/ubuntu/.local/lib/python3.6/site-packages (from pytest; extra == "dev"->pupil-detectors==1.1.1) (1.1.1)
Requirement already satisfied: toml in /home/ubuntu/.local/lib/python3.6/site-packages (from pytest; extra == "dev"->pupil-detectors==1.1.1) (0.10.2)
Requirement already satisfied: packaging in /home/ubuntu/.local/lib/python3.6/site-packages (from pytest; extra == "dev"->pupil-detectors==1.1.1) (20.4)
Requirement already satisfied: pluggy<1.0,>=0.12 in /home/ubuntu/.local/lib/python3.6/site-packages (from pytest; extra == "dev"->pupil-detectors==1.1.1) (0.13.1)
Requirement already satisfied: attrs>=17.4.0 in /home/ubuntu/.local/lib/python3.6/site-packages (from pytest; extra == "dev"->pupil-detectors==1.1.1) (20.2.0)
Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in /home/ubuntu/.local/lib/python3.6/site-packages (from pytest; extra == "dev"->pupil-detectors==1.1.1) (2.0.0)
Requirement already satisfied: py>=1.8.2 in /home/ubuntu/.local/lib/python3.6/site-packages (from pytest; extra == "dev"->pupil-detectors==1.1.1) (1.9.0)
Requirement already satisfied: filelock>=3.0.0 in /home/ubuntu/.local/lib/python3.6/site-packages (from tox; extra == "dev"->pupil-detectors==1.1.1) (3.0.12)
Requirement already satisfied: virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 in /home/ubuntu/.local/lib/python3.6/site-packages (from tox; extra == "dev"->pupil-detectors==1.1.1) (20.1.0)
Requirement already satisfied: six>=1.14.0 in /home/ubuntu/.local/lib/python3.6/site-packages (from tox; extra == "dev"->pupil-detectors==1.1.1) (1.15.0)
Requirement already satisfied: pyparsing>=2.0.2 in /home/ubuntu/.local/lib/python3.6/site-packages (from packaging->pytest; extra == "dev"->pupil-detectors==1.1.1) (2.4.7)
Requirement already satisfied: zipp>=0.5 in /home/ubuntu/.local/lib/python3.6/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->pytest; extra == "dev"->pupil-detectors==1.1.1) (3.4.0)
Requirement already satisfied: appdirs<2,>=1.4.3 in /home/ubuntu/.local/lib/python3.6/site-packages (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox; extra == "dev"->pupil-detectors==1.1.1) (1.4.4)
Requirement already satisfied: importlib-resources>=1.0; python_version < "3.7" in /home/ubuntu/.local/lib/python3.6/site-packages (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox; extra == "dev"->pupil-detectors==1.1.1) (3.3.0)
Requirement already satisfied: distlib<1,>=0.3.1 in /home/ubuntu/.local/lib/python3.6/site-packages (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox; extra == "dev"->pupil-detectors==1.1.1) (0.3.1)
Building wheels for collected packages: pupil-detectors
  Building wheel for pupil-detectors (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /home/ubuntu/.local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp4g4275hz
       cwd: /tmp/pip-req-build-3qjqemjf
  Complete output (31 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.6
  creating build/lib.linux-aarch64-3.6/pupil_detectors
  copying src/pupil_detectors/__init__.py -> build/lib.linux-aarch64-3.6/pupil_detectors
  copying src/pupil_detectors/utils.py -> build/lib.linux-aarch64-3.6/pupil_detectors
  creating build/lib.linux-aarch64-3.6/pupil_detectors/detector_3d
  copying src/pupil_detectors/detector_3d/__init__.py -> build/lib.linux-aarch64-3.6/pupil_detectors/detector_3d
  creating build/lib.linux-aarch64-3.6/pupil_detectors/detector_2d
  copying src/pupil_detectors/detector_2d/__init__.py -> build/lib.linux-aarch64-3.6/pupil_detectors/detector_2d
  running build_ext
  building 'pupil_detectors.detector_base' extension
  creating build/temp.linux-aarch64-3.6
  creating build/temp.linux-aarch64-3.6/src
  creating build/temp.linux-aarch64-3.6/src/pupil_detectors
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/pupil_detectors/detector_base.cpp -o build/temp.linux-aarch64-3.6/src/pupil_detectors/detector_base.o -w -std=c++11 -O2
  aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/src/pupil_detectors/detector_base.o -o build/lib.linux-aarch64-3.6/pupil_detectors/detector_base.cpython-36m-aarch64-linux-gnu.so
  building 'pupil_detectors.detector_2d.detector_2d' extension
  creating build/temp.linux-aarch64-3.6/src/pupil_detectors/detector_2d
  creating build/temp.linux-aarch64-3.6/src/singleeyefitter
  creating build/temp.linux-aarch64-3.6/src/singleeyefitter/ImageProcessing
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc -Isrc/pupil_detectors/detector_2d -Isrc/shared_cpp/include -Isrc/singleeyefitter/ -I/tmp/pip-build-env-0hp57gr0/overlay/lib/python3.6/site-packages/numpy/core/include -I/usr/local/opt/opencv/include -I/usr/local/opt/opencv@3/include -I/usr/local/include/opencv4 -I/usr/include/opencv4 -I/usr/local/include/eigen3 -I/usr/include/eigen3 -I/usr/include/python3.6m -c src/pupil_detectors/detector_2d/detector_2d.cpp -o build/temp.linux-aarch64-3.6/src/pupil_detectors/detector_2d/detector_2d.o -w -std=c++11 -O2
  aarch64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus)
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'zip_save'
    warnings.warn(msg)
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 4
ERROR: Failed building wheel for pupil-detectors
Failed to build pupil-detectors
ERROR: Could not build wheels for pupil-detectors which use PEP 517 and cannot be installed directly. 

Edit by @papr: Added log formatting

papr commented 4 years ago

@Lifestohack Hi, it looks like this issue is not related to the pupil-detectors specifically:

aarch64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-7/README.Bugs for instructions.

Unfortunately, this means that I cannot help you with this issue.