Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails #32

Closed
lozuwa opened this issue Sep 4, 2018 · 4 comments
Closed

Installation fails #32

lozuwa opened this issue Sep 4, 2018 · 4 comments

Comments

@lozuwa
Copy link

lozuwa commented Sep 4, 2018

OS: Ubuntu 16.04
Notes: I used python setup.py clean as it worked a few weeks ago. Though now it does not work.
Error:
INFO:root:Darknet building successful
INFO:root:Moving to /home/nvd/Downloads/YOLO3-4-Py/__libdarknet/libdarknet.so
skipping 'pydarknet.cpp' Cython extension (up-to-date)
building 'pydarknet' extension
gcc -pthread -B /home/nvd/anaconda3/envs/tensorflow_10/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE_GPU=0 -DUSE_CV=0 -I/home/nvd/anaconda3/envs/tensorflow_10/lib/python3.6/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/nvd/anaconda3/envs/tensorflow_10/include/python3.6m -c pydarknet.cpp -o build/temp.linux-x86_64-3.6/pydarknet.o
gcc: error: : No such file or directory
error: command 'gcc' failed with exit status 1

@madhawav
Copy link
Owner

madhawav commented Sep 5, 2018

Hi,

  1. Can you delete the darknet folder in /tmp of your system. Afterwards, get a new clone of the project and try again.

  2. Also can I know the exact commands you typed for installation?

(The line skipping 'pydarknet.cpp' Cython extension (up-to-date) suggests that installation is using some of the old files from a previous installation)

@lozuwa
Copy link
Author

lozuwa commented Sep 5, 2018

Thanks,

  1. One way to install.
    python setup.py clean
    python setup.py install

  2. Another way to install.
    pip install yolo34py-gpu

Both installations give the same error.

@madhawav
Copy link
Owner

Hi,
Did you manage to find any solution for this issue?

It seems the reason for the issue is skipping of building of Cython extensions ( as explained by skipping 'pydarknet.cpp' Cython extension (up-to-date)) but that could happen only if a previously built pydarknet.cpp is left in the source code. If such a file exist, can you delete it and re-run the installation?

@madhawav madhawav closed this as completed Oct 5, 2018
@madhawav
Copy link
Owner

madhawav commented Oct 5, 2018

Closing due to absence of response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants