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

ImportError: cannot import name 'darknet' from 'darknet' (unknown location) #2621

Open
enissimsir opened this issue Sep 5, 2023 · 1 comment

Comments

@enissimsir
Copy link

Hello!
My code file and the darknet folder are in the same folder and I am adding this line: from darknet import darknet
Then I get that error:

Traceback (most recent call last):
File "/home/enis/Desktop/picmatcher/deneme4.py", line 6, in
from darknet import darknet
ImportError: cannot import name 'darknet' from 'darknet' (unknown location)

Any leads to fix that?

@sweety-12
Copy link

Put your darknet folder outside the current folder and then try to run it . It worked for me.

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