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

Getting Error In Ubuntu "x86_64-linux-gnu-gcc: error: pydarknet.cpp: No such file or directory" #27

Closed
shivarajnaidu opened this issue Aug 15, 2018 · 5 comments
Labels
question Further information is requested

Comments

@shivarajnaidu
Copy link

When I run the command python setup.py build_ext --inplace

x86_64-linux-gnu-gcc: error: pydarknet.cpp: No such file or directory

image

@madhawav
Copy link
Owner

Hi, do you have cython installed?
If not, please install cython using pip install cython. Cython is used by setup.py to generate pydarknet.cpp.

@shivarajnaidu
Copy link
Author

shivarajnaidu commented Aug 21, 2018

I have installed it(cython) in virtualenv (which is created using pipenv) And I am doing this in KUbuntu 18.04

@madhawav
Copy link
Owner

Hi,
Can you test whether the following import works?

  from Cython.Distutils import build_ext

To explain the situation, pydarknet.cpp is generated using Cython. If the above import fails (which usually happen when cython is absent), the installation assumes pydarknet.cpp already exists and tries to install using it. This seem to be the case according to log you have provided since it contains no logs generated by cython.

Also, can you try making a new clone of the project? Sometimes, cython leaves partly compiled files that can cause weird issues.

@madhawav madhawav added the question Further information is requested label Aug 29, 2018
@madhawav
Copy link
Owner

madhawav commented Sep 4, 2018

Closing the issue due to two weeks of inactivity.

@madhawav madhawav closed this as completed Sep 4, 2018
@suraj-pai
Copy link

I was able to fix this by installing python3-dev package

sudo apt install python3-dev

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

No branches or pull requests

3 participants