Harvard-REACT / WSR-Toolbox-cpp

Core C++ code repo for WSR toolbox with Cython wrapper.
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Error installing transformations package on UP - board #2

Open ninja-hu opened 3 years ago

ninja-hu commented 3 years ago

================= Trace =======================

Defaulting to user installation because normal site-packages is not writeable
Collecting transformations
  Using cached transformations-2020.1.1.tar.gz (44 kB)
Requirement already satisfied: numpy>=1.14.5 in /home/up-board-01/.local/lib/python3.7/site-packages (from transformations) (1.20.1)
Building wheels for collected packages: transformations
  Building wheel for transformations (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-up4rxswy
       cwd: /tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/
  Complete output (18 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/transformations
  copying transformations/__init__.py -> build/lib.linux-x86_64-3.7/transformations
  copying transformations/transformations.py -> build/lib.linux-x86_64-3.7/transformations
  running build_ext
  building 'transformations._transformations' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/transformations
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/home/up-board-01/.local/lib/python3.7/site-packages/numpy/core/include -c transformations/transformations.c -o build/temp.linux-x86_64-3.7/transformations/transformations.o
  transformations/transformations.c:57:20: fatal error: Python.h: No such file or directory
   #include "Python.h"
                      ^
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for transformations
  Running setup.py clean for transformations
Failed to build transformations
Installing collected packages: transformations
    Running setup.py install for transformations ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xl9cz9fb/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/up-board-01/.local/include/python3.7m/transformations
         cwd: /tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/
    Complete output (18 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/transformations
    copying transformations/__init__.py -> build/lib.linux-x86_64-3.7/transformations
    copying transformations/transformations.py -> build/lib.linux-x86_64-3.7/transformations
    running build_ext
    building 'transformations._transformations' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/transformations
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/home/up-board-01/.local/lib/python3.7/site-packages/numpy/core/include -c transformations/transformations.c -o build/temp.linux-x86_64-3.7/transformations/transformations.o
    transformations/transformations.c:57:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g_ujnxa9/transformations_d9dbad146de04b128b39cecf2fea255b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xl9cz9fb/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/up-board-01/.local/include/python3.7m/transformations Check the logs for full command output.
ninja-hu commented 3 years ago

This package is used by RobotTrajectory.py for getting the orientations. Since orientation information is not necessary for the current version of the toolbox, the bug will not be fixed until a future release. For not the package has been removed from requirements.txt