Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.61 KB | None | 0 0
  1. sudo pip3 install robotpy-cscore
  2. The directory '/home/nvidia/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  3. The directory '/home/nvidia/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  4. Collecting robotpy-cscore
  5.   Downloading robotpy-cscore-2017.0.2.tar.gz (205kB)
  6.     100% |████████████████████████████████| 215kB 2.4MB/s
  7. Requirement already satisfied: pynetworktables in /usr/local/lib/python3.5/dist-packages (from robotpy-cscore)
  8. Installing collected packages: robotpy-cscore
  9.   Running setup.py install for robotpy-cscore ... error
  10.     Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-snvzhczu/robotpy-cscore/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-q00w2kf0-record/install-record.txt --single-version-externally-managed --compile:
  11.     running install
  12.     running build
  13.     running build_py
  14.     creating build
  15.     creating build/lib.linux-aarch64-3.5
  16.     creating build/lib.linux-aarch64-3.5/cscore
  17.     copying cscore/cameraserver.py -> build/lib.linux-aarch64-3.5/cscore
  18.     copying cscore/_logging.py -> build/lib.linux-aarch64-3.5/cscore
  19.     copying cscore/__init__.py -> build/lib.linux-aarch64-3.5/cscore
  20.     copying cscore/version.py -> build/lib.linux-aarch64-3.5/cscore
  21.     copying cscore/grip.py -> build/lib.linux-aarch64-3.5/cscore
  22.     copying cscore/imagewriter.py -> build/lib.linux-aarch64-3.5/cscore
  23.     copying cscore/__main__.py -> build/lib.linux-aarch64-3.5/cscore
  24.     copying cscore/_info.py -> build/lib.linux-aarch64-3.5/cscore
  25.     running build_ext
  26.     creating tmp
  27.     aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c /tmp/tmp4a7th3hx.cpp -o tmp/tmp4a7th3hx.o -std=c++14
  28.     cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  29.     aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c /tmp/tmp3exbd4pk.cpp -o tmp/tmp3exbd4pk.o -fvisibility=hidden
  30.     cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  31.     building 'cscore._cscore' extension
  32.     creating build/temp.linux-aarch64-3.5
  33.     creating build/temp.linux-aarch64-3.5/src
  34.     creating build/temp.linux-aarch64-3.5/cscore_src
  35.     creating build/temp.linux-aarch64-3.5/cscore_src/src
  36.     creating build/temp.linux-aarch64-3.5/ntcore_src
  37.     creating build/temp.linux-aarch64-3.5/ntcore_src/wpiutil
  38.     creating build/temp.linux-aarch64-3.5/ntcore_src/wpiutil/src
  39.     creating build/temp.linux-aarch64-3.5/ntcore_src/wpiutil/src/tcpsockets
  40.     creating build/temp.linux-aarch64-3.5/ntcore_src/wpiutil/src/support
  41.     creating build/temp.linux-aarch64-3.5/ntcore_src/wpiutil/src/llvm
  42.     aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include/python3.5 -I/home/nvidia/.local/include/python3.5m -Icscore_src/include -Intcore_src/wpiutil/include -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I/usr/include/python3.5m -c src/_cscore.cpp -o build/temp.linux-aarch64-3.5/src/_cscore.o -DVERSION_INFO="2017.0.2" -s -g0 -std=c++14 -fvisibility=hidden
  43.     cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  44.     aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include/python3.5 -I/home/nvidia/.local/include/python3.5m -Icscore_src/include -Intcore_src/wpiutil/include -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I/usr/include/python3.5m -c src/ndarray_converter.cpp -o build/temp.linux-aarch64-3.5/src/ndarray_converter.o -DVERSION_INFO="2017.0.2" -s -g0 -std=c++14 -fvisibility=hidden
  45.     cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  46.     src/ndarray_converter.cpp:92:5: error: ‘UMatData’ does not name a type
  47.          UMatData* allocate(PyObject* o, int dims, const int* sizes, int type, size_t* step) const
  48.          ^
  49.     src/ndarray_converter.cpp:105:5: error: ‘UMatData’ does not name a type
  50.          UMatData* allocate(int dims0, const int* sizes, int type, void* data, size_t* step, int flags, UMatUsageFlags usageFlags) const
  51.          ^
  52.     src/ndarray_converter.cpp:134:19: error: ‘UMatData’ has not been declared
  53.          bool allocate(UMatData* u, int accessFlags, UMatUsageFlags usageFlags) const
  54.                        ^
  55.     src/ndarray_converter.cpp:134:49: error: ‘UMatUsageFlags’ has not been declared
  56.          bool allocate(UMatData* u, int accessFlags, UMatUsageFlags usageFlags) const
  57.                                                      ^
  58.     src/ndarray_converter.cpp:139:21: error: ‘UMatData’ has not been declared
  59.          void deallocate(UMatData* u) const
  60.                          ^
  61.     src/ndarray_converter.cpp: In constructor ‘NumpyAllocator::NumpyAllocator()’:
  62.     src/ndarray_converter.cpp:89:39: error: ‘getStdAllocator’ is not a member of ‘cv::Mat’
  63.          NumpyAllocator() { stdAllocator = Mat::getStdAllocator(); }
  64.                                            ^
  65.     src/ndarray_converter.cpp: In member function ‘bool NumpyAllocator::allocate(int*, int, int) const’:
  66.     src/ndarray_converter.cpp:136:65: error: no matching function for call to ‘cv::MatAllocator::allocate(int*&, int&, int&) const’
  67.              return stdAllocator->allocate(u, accessFlags, usageFlags);
  68.                                                                      ^
  69.     In file included from src/ndarray_converter.h:5:0,
  70.                      from src/ndarray_converter.cpp:4:
  71.     /usr/include/opencv2/core/core.hpp:1495:18: note: candidate: virtual void cv::MatAllocator::allocate(int, const int*, int, int*&, uchar*&, uchar*&, size_t*)
  72.          virtual void allocate(int dims, const int* sizes, int type, int*& refcount,
  73.                       ^
  74.     /usr/include/opencv2/core/core.hpp:1495:18: note:   candidate expects 7 arguments, 3 provided
  75.     src/ndarray_converter.cpp: In member function ‘void NumpyAllocator::deallocate(int*) const’:
  76.     src/ndarray_converter.cpp:144:22: error: request for member ‘urefcount’ in* u’, which is of non-class type ‘int’
  77.              CV_Assert(u->urefcount >= 0);
  78.                           ^
  79.     src/ndarray_converter.cpp:145:22: error: request for member ‘refcount’ in* u’, which is of non-class type ‘int’
  80.              CV_Assert(u->refcount >= 0);
  81.                           ^
  82.     src/ndarray_converter.cpp:146:15: error: request for member ‘refcount’ in* u’, which is of non-class type ‘int’
  83.              if(u->refcount == 0)
  84.                    ^
  85.     src/ndarray_converter.cpp:148:41: error: request for member ‘userdata’ in* u’, which is of non-class type ‘int’
  86.                  PyObject* o = (PyObject*)u->userdata;
  87.                                              ^
  88.     src/ndarray_converter.cpp: At global scope:
  89.     src/ndarray_converter.cpp:157:16: error: cannot declare variable ‘g_numpyAllocator’ to be of abstract type ‘NumpyAllocator’
  90.      NumpyAllocator g_numpyAllocator;
  91.                     ^
  92.     src/ndarray_converter.cpp:86:7: note:   because the following virtual functions are pure within ‘NumpyAllocator’:
  93.      class NumpyAllocator : public MatAllocator
  94.            ^
  95.     In file included from src/ndarray_converter.h:5:0,
  96.                      from src/ndarray_converter.cpp:4:
  97.     /usr/include/opencv2/core/core.hpp:1495:18: note:   virtual void cv::MatAllocator::allocate(int, const int*, int, int*&, uchar*&, uchar*&, size_t*)
  98.          virtual void allocate(int dims, const int* sizes, int type, int*& refcount,
  99.                       ^
  100.     /usr/include/opencv2/core/core.hpp:1497:18: note:   virtual void cv::MatAllocator::deallocate(int*, uchar*, uchar*)
  101.          virtual void deallocate(int* refcount, uchar* datastart, uchar* data) = 0;
  102.                       ^
  103.     src/ndarray_converter.cpp: In static member function ‘static bool NDArrayConverter::toMat(PyObject*, cv::Mat&)’:
  104.     src/ndarray_converter.cpp:326:7: error: ‘class cv::Mat’ has no member named ‘u’
  105.          m.u = g_numpyAllocator.allocate(o, ndims, size, type, step);
  106.            ^
  107.     src/ndarray_converter.cpp:326:63: error: no matching function for call to ‘NumpyAllocator::allocate(PyObject*&, int&, int [33], int&, size_t [33])
  108.          m.u = g_numpyAllocator.allocate(o, ndims, size, type, step);
  109.                                                                    ^
  110.     src/ndarray_converter.cpp:134:10: note: candidate: bool NumpyAllocator::allocate(int*, int, int) const
  111.          bool allocate(UMatData* u, int accessFlags, UMatUsageFlags usageFlags) const
  112.               ^
  113.     src/ndarray_converter.cpp:134:10: note:   candidate expects 3 arguments, 5 provided
  114.     src/ndarray_converter.cpp: In static member function ‘static PyObject* NDArrayConverter::toNDArray(const cv::Mat&)’:
  115.     src/ndarray_converter.cpp:343:12: error: ‘class cv::Mat’ has no member named ‘u’
  116.          if(!p->u || p->allocator != &g_numpyAllocator)
  117.                 ^
  118.     src/ndarray_converter.cpp:349:33: error: ‘class cv::Mat’ has no member named ‘u’
  119.          PyObject* o = (PyObject*)p->u->userdata;
  120.                                      ^
  121.     error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  122.    
  123.     ----------------------------------------
  124. Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-snvzhczu/robotpy-cscore/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-q00w2kf0-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-snvzhczu/robotpy-cscore/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement