question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing yolo34py

See original GitHub issue

Hello, i use Arch.

I’ve installed Python 3.5 Python3-Dev numpy cython OpenCV 3.4.0

Sadly when I try to install yolo34py it get the following Error:

Collecting yolo34py
  Using cached yolo34py-0.1rc12.tar.gz (67 kB)
Requirement already satisfied: cython>=0.27 in /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages (from yolo34py) (0.29.16)
Requirement already satisfied: requests in /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages (from yolo34py) (2.23.0)
Requirement already satisfied: numpy in /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages (from yolo34py) (1.18.2)
Requirement already satisfied: certifi>=2017.4.17 in /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages (from requests->yolo34py) (2020.4.5.1)
Requirement already satisfied: chardet<4,>=3.0.2 in /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages (from requests->yolo34py) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages (from requests->yolo34py) (1.25.8)
Requirement already satisfied: idna<3,>=2.5 in /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages (from requests->yolo34py) (2.9)
Building wheels for collected packages: yolo34py
  Building wheel for yolo34py (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/dood/.virtualenvs/yolo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uxlfzk6y/yolo34py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uxlfzk6y/yolo34py/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-1qczt8rp
       cwd: /tmp/pip-install-uxlfzk6y/yolo34py/
  Complete output (50 lines):
  INFO:root:Selected Darknet Branch: yolo34py-intergration-nogpu from Darknet Fork 'https://github.com/madhawav/darknet/'
  /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/setuptools/dist.py:454: UserWarning: Normalizing '0.1.rc12' to '0.1rc12'
    warnings.warn(tmpl.format(**locals()))
  running bdist_wheel
  running build
  INFO:root:Temp Path: /tmp/darknet
  INFO:root:Downloading darknet
  INFO:root:Extracting darknet
  INFO:root:Building darknet
  ./src/utils.c: In function 'copy_string':
  ./src/utils.c:426:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
    426 |     strncpy(copy, s, strlen(s)+1);
        |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ./src/utils.c:426:22: note: length computed here
    426 |     strncpy(copy, s, strlen(s)+1);
        |                      ^~~~~~~~~
  INFO:root:Darknet building successful
  INFO:root:Moving to /tmp/pip-install-uxlfzk6y/yolo34py/__libdarknet/libdarknet.so
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.5
  creating build/lib.linux-x86_64-3.5/__libdarknet
  copying __libdarknet/__init__.py -> build/lib.linux-x86_64-3.5/__libdarknet
  running egg_info
  writing yolo34py.egg-info/PKG-INFO
  writing top-level names to yolo34py.egg-info/top_level.txt
  writing requirements to yolo34py.egg-info/requires.txt
  writing dependency_links to yolo34py.egg-info/dependency_links.txt
  reading manifest file 'yolo34py.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'yolo34py.egg-info/SOURCES.txt'
  copying __libdarknet/libdarknet.so -> build/lib.linux-x86_64-3.5/__libdarknet
  running build_ext
  skipping 'pydarknet.cpp' Cython extension (up-to-date)
  building 'pydarknet' extension
  creating build/temp.linux-x86_64-3.5
  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -DUSE_CV=0 -I/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/src -I/home/dood/.virtualenvs/yolo/include -I/usr/include/python3.5m -c pydarknet.cpp -o build/temp.linux-x86_64-3.5/pydarknet.o -I/usr/include/python3.8
  cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
  In file included from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832,
                   from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from pydarknet.cpp:580:
  /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     17 | #warning "Using deprecated NumPy API, disable it with " \
        |  ^~~~~~~
  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -DUSE_CV=0 -I/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/src -I/home/dood/.virtualenvs/yolo/include -I/usr/include/python3.5m -c bridge.cpp -o build/temp.linux-x86_64-3.5/bridge.o -I/usr/include/python3.8
  cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
  g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-3.5/pydarknet.o build/temp.linux-x86_64-3.5/bridge.o -L. -L./__libdarknet -L/usr/lib -ldarknet -lm -lpthread -lpython3.5m -o build/lib.linux-x86_64-3.5/pydarknet.cpython-35m-x86_64-linux-gnu.so  -Wl,-rpath,/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/__libdarknet
  g++: error: : No such file or directory
  error: command 'g++' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for yolo34py
  Running setup.py clean for yolo34py
Failed to build yolo34py
Installing collected packages: yolo34py
    Running setup.py install for yolo34py ... error
    ERROR: Command errored out with exit status 1:
     command: /home/dood/.virtualenvs/yolo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uxlfzk6y/yolo34py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uxlfzk6y/yolo34py/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-o3q2f792/install-record.txt --single-version-externally-managed --compile --install-headers /home/dood/.virtualenvs/yolo/include/site/python3.5/yolo34py
         cwd: /tmp/pip-install-uxlfzk6y/yolo34py/
    Complete output (53 lines):
    INFO:root:Selected Darknet Branch: yolo34py-intergration-nogpu from Darknet Fork 'https://github.com/madhawav/darknet/'
    /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/setuptools/dist.py:454: UserWarning: Normalizing '0.1.rc12' to '0.1rc12'
      warnings.warn(tmpl.format(**locals()))
    running install
    running build
    INFO:root:Temp Path: /tmp/darknet
    INFO:root:Downloading darknet
    INFO:root:Extracting darknet
    INFO:root:Building darknet
    ./src/utils.c: In function 'copy_string':
    ./src/utils.c:426:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
      426 |     strncpy(copy, s, strlen(s)+1);
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./src/utils.c:426:22: note: length computed here
      426 |     strncpy(copy, s, strlen(s)+1);
          |                      ^~~~~~~~~
    INFO:root:Darknet building successful
    INFO:root:Moving to /tmp/pip-install-uxlfzk6y/yolo34py/__libdarknet/libdarknet.so
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/__libdarknet
    copying __libdarknet/__init__.py -> build/lib.linux-x86_64-3.5/__libdarknet
    running egg_info
    writing dependency_links to yolo34py.egg-info/dependency_links.txt
    writing top-level names to yolo34py.egg-info/top_level.txt
    writing requirements to yolo34py.egg-info/requires.txt
    writing yolo34py.egg-info/PKG-INFO
    reading manifest file 'yolo34py.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'pydarknet.cpp'
    writing manifest file 'yolo34py.egg-info/SOURCES.txt'
    copying __libdarknet/libdarknet.so -> build/lib.linux-x86_64-3.5/__libdarknet
    running build_ext
    cythoning pydarknet.pyx to pydarknet.cpp
    /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-uxlfzk6y/yolo34py/pydarknet.pxd
      tree = Parsing.p_module(s, pxd, full_module_name)
    building 'pydarknet' extension
    creating build/temp.linux-x86_64-3.5
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -DUSE_CV=0 -I/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/src -I/home/dood/.virtualenvs/yolo/include -I/usr/include/python3.5m -c pydarknet.cpp -o build/temp.linux-x86_64-3.5/pydarknet.o -I/usr/include/python3.8
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    In file included from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832,
                     from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                     from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from pydarknet.cpp:614:
    /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
       17 | #warning "Using deprecated NumPy API, disable it with " \
          |  ^~~~~~~
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -DUSE_CV=0 -I/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu/src -I/home/dood/.virtualenvs/yolo/include -I/usr/include/python3.5m -c bridge.cpp -o build/temp.linux-x86_64-3.5/bridge.o -I/usr/include/python3.8
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-3.5/pydarknet.o build/temp.linux-x86_64-3.5/bridge.o -L. -L./__libdarknet -L/usr/lib -ldarknet -lm -lpthread -lpython3.5m -o build/lib.linux-x86_64-3.5/pydarknet.cpython-35m-x86_64-linux-gnu.so  -Wl,-rpath,/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/__libdarknet
    g++: error: : No such file or directory
    error: command 'g++' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/dood/.virtualenvs/yolo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uxlfzk6y/yolo34py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uxlfzk6y/yolo34py/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-o3q2f792/install-record.txt --single-version-externally-managed --compile --install-headers /home/dood/.virtualenvs/yolo/include/site/python3.5/yolo34py Check the logs for full command output.

Maybe that one is wrong: -I/usr/include/python3.8 But I double checked my python env is python3.5 and pip is so too.

If I try to install it locally with the setup.py I get more or less the same Error:

INFO:root:Selected Darknet Branch: yolo34py-intergration-nogpu-v2 from Darknet Fork 'https://github.com/madhawav/darknet/'
/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/setuptools/dist.py:454: UserWarning: Normalizing '0.1.rc13' to '0.1rc13'
  warnings.warn(tmpl.format(**locals()))
running build_ext
INFO:root:For inplace compilations, target location is set to root
INFO:root:Temp Path: /tmp/darknet
INFO:root:Downloading darknet
INFO:root:Extracting darknet
INFO:root:Building darknet
INFO:root:b'mkdir -p obj'
INFO:root:b'mkdir -p backup'
INFO:root:b'mkdir -p results'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/utils.c -o obj/utils.o'
./src/utils.c: In function 'copy_string':
./src/utils.c:426:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
  426 |     strncpy(copy, s, strlen(s)+1);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./src/utils.c:426:22: note: length computed here
  426 |     strncpy(copy, s, strlen(s)+1);
      |                      ^~~~~~~~~
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/cuda.c -o obj/cuda.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/deconvolutional_layer.c -o obj/deconvolutional_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/convolutional_layer.c -o obj/convolutional_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/list.c -o obj/list.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/image.c -o obj/image.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/activations.c -o obj/activations.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/im2col.c -o obj/im2col.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/col2im.c -o obj/col2im.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/blas.c -o obj/blas.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/crop_layer.c -o obj/crop_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/dropout_layer.c -o obj/dropout_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/maxpool_layer.c -o obj/maxpool_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/softmax_layer.c -o obj/softmax_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/data.c -o obj/data.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/matrix.c -o obj/matrix.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/network.c -o obj/network.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/connected_layer.c -o obj/connected_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/cost_layer.c -o obj/cost_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/parser.c -o obj/parser.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/option_list.c -o obj/option_list.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/detection_layer.c -o obj/detection_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/route_layer.c -o obj/route_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/upsample_layer.c -o obj/upsample_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/box.c -o obj/box.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/normalization_layer.c -o obj/normalization_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/avgpool_layer.c -o obj/avgpool_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/layer.c -o obj/layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/local_layer.c -o obj/local_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/shortcut_layer.c -o obj/shortcut_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/logistic_layer.c -o obj/logistic_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/activation_layer.c -o obj/activation_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/rnn_layer.c -o obj/rnn_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gru_layer.c -o obj/gru_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/crnn_layer.c -o obj/crnn_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/demo.c -o obj/demo.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/batchnorm_layer.c -o obj/batchnorm_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/region_layer.c -o obj/region_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/reorg_layer.c -o obj/reorg_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/tree.c -o obj/tree.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/lstm_layer.c -o obj/lstm_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/l2norm_layer.c -o obj/l2norm_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/yolo_layer.c -o obj/yolo_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/iseg_layer.c -o obj/iseg_layer.o'
INFO:root:b'gcc -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -shared obj/gemm.o obj/utils.o obj/cuda.o obj/deconvolutional_layer.o obj/convolutional_layer.o obj/list.o obj/image.o obj/activations.o obj/im2col.o obj/col2im.o obj/blas.o obj/crop_layer.o obj/dropout_layer.o obj/maxpool_layer.o obj/softmax_layer.o obj/data.o obj/matrix.o obj/network.o obj/connected_layer.o obj/cost_layer.o obj/parser.o obj/option_list.o obj/detection_layer.o obj/route_layer.o obj/upsample_layer.o obj/box.o obj/normalization_layer.o obj/avgpool_layer.o obj/layer.o obj/local_layer.o obj/shortcut_layer.o obj/logistic_layer.o obj/activation_layer.o obj/rnn_layer.o obj/gru_layer.o obj/crnn_layer.o obj/demo.o obj/batchnorm_layer.o obj/region_layer.o obj/reorg_layer.o obj/tree.o obj/lstm_layer.o obj/l2norm_layer.o obj/yolo_layer.o obj/iseg_layer.o -o libdarknet.so -lm -pthread'
INFO:root:b'ar rcs libdarknet.a obj/gemm.o obj/utils.o obj/cuda.o obj/deconvolutional_layer.o obj/convolutional_layer.o obj/list.o obj/image.o obj/activations.o obj/im2col.o obj/col2im.o obj/blas.o obj/crop_layer.o obj/dropout_layer.o obj/maxpool_layer.o obj/softmax_layer.o obj/data.o obj/matrix.o obj/network.o obj/connected_layer.o obj/cost_layer.o obj/parser.o obj/option_list.o obj/detection_layer.o obj/route_layer.o obj/upsample_layer.o obj/box.o obj/normalization_layer.o obj/avgpool_layer.o obj/layer.o obj/local_layer.o obj/shortcut_layer.o obj/logistic_layer.o obj/activation_layer.o obj/rnn_layer.o obj/gru_layer.o obj/crnn_layer.o obj/demo.o obj/batchnorm_layer.o obj/region_layer.o obj/reorg_layer.o obj/tree.o obj/lstm_layer.o obj/l2norm_layer.o obj/yolo_layer.o obj/iseg_layer.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/captcha.c -o obj/captcha.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/lsd.c -o obj/lsd.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/super.c -o obj/super.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/art.c -o obj/art.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/tag.c -o obj/tag.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/cifar.c -o obj/cifar.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/go.c -o obj/go.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/rnn.c -o obj/rnn.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/segmenter.c -o obj/segmenter.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/regressor.c -o obj/regressor.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/classifier.c -o obj/classifier.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/coco.c -o obj/coco.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/yolo.c -o obj/yolo.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/detector.c -o obj/detector.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/nightmare.c -o obj/nightmare.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/instance-segmenter.c -o obj/instance-segmenter.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./examples/darknet.c -o obj/darknet.o'
INFO:root:b'gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/instance-segmenter.o obj/darknet.o libdarknet.a -o darknet -lm -pthread  libdarknet.a'
INFO:root:Darknet building successful
INFO:root:Moving to /home/dood/github/yolo/YOLO3-4-Py/libdarknet.so
cythoning pydarknet.pyx to pydarknet.cpp
/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/dood/github/yolo/YOLO3-4-Py/pydarknet.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
building 'pydarknet' extension
creating build
creating build/temp.linux-x86_64-3.5
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -DUSE_GPU=0 -DUSE_CV=0 -I/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu-v2/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu-v2/src -I/home/dood/.virtualenvs/yolo/include -I/usr/include/python3.5m -c pydarknet.cpp -o build/temp.linux-x86_64-3.5/pydarknet.o -I/usr/include/python3.8
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832,
                 from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from pydarknet.cpp:614:
/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -DUSE_GPU=0 -DUSE_CV=0 -I/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/numpy/core/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu-v2/include -I/tmp/darknet/darknet-yolo34py-intergration-nogpu-v2/src -I/home/dood/.virtualenvs/yolo/include -I/usr/include/python3.5m -c bridge.cpp -o build/temp.linux-x86_64-3.5/bridge.o -I/usr/include/python3.8
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-3.5/pydarknet.o build/temp.linux-x86_64-3.5/bridge.o -L. -L./__libdarknet -L/usr/lib -ldarknet -lm -lpthread -lpython3.5m -o /home/dood/github/yolo/YOLO3-4-Py/pydarknet.cpython-35m-x86_64-linux-gnu.so  -Wl,-rpath,/home/dood/.virtualenvs/yolo/lib/python3.5/site-packages/__libdarknet -Wl,-rpath,.
g++: error: : No such file or directory
error: command 'g++' failed with exit status 1

Thanks for looking into my Problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
timlyocommented, May 13, 2020

The issue seems to be that get_libs is returning "" in setup.py. This is caused by pkg-config --libs python3 returning nothing on my system.

Changing L82 of setup to extra_linker_flags = [] seems to get the install working again, I assume this is because -lpython is elsewhere in the command so it’s not required here.

This seems to be caused by a change to pkg-config on arch

1reaction
udit0304commented, Aug 11, 2020

In Ubuntu 20.04 pkg-config --libs python-3.8-embed This is working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when installing yolo34py-gpu from source. · Issue #137
When running pip install . in /src,with OPENCV=1 and GPU=1: Defaulting to user installation because normal site-packages is not writeable ...
Read more >
Unable to install Yolo v3 (yolo34py-gpu) within Python
"Look at this issue in the same repository. The author replied in this issue saying Windows is not supported. Same error as yours....
Read more >
yolo34py
A Python wrapper on pjreddie's implementation (authors' implementation) of YOLO V3 Object Detector on Darknet. This wrapper is also compatible with other ...
Read more >
ModuleNotFoundError: No module named 'yolo34py-gpu'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named ... You can install yolo34py-gpu python with following command:
Read more >
Installing Ubuntu 20.04 LTS and running YOLOv4 and ...
One workaround for this error was to remove -map while training, modifying src/detector.c to save weights every 1000 or 2000 iterations, and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found