Open nathansomavarapu opened 6 years ago
Did you compile /build/darknet/yolo_cpp_dll.sln
on Windows or did you compile with LIBSO=1
in the Makefile on Linux?
And the did you run darknet.py
on Linux or build/darknet/x64/darknet.py
on Windows?
I am currently working on Linux and I have compiled with LIBSO=1.
Running darknet.py works by itself and when I add code to the main function it runs as expected, importing is the aspect that fails.
Thanks!
I'm also having this issue. Any ideas?
I found that renaming darknet.py to some other name (like "dknet.py") and doing "import dknet as dn" worked.
When you run your script, try running it from the directory where the library is. That worked for me.
I am having issues importing darknet, specifically if I attempt, import darknet as dn then I get the error:
ImportError: dynamic module does not define module export function (PyInit_darknet).
Any idea how to fix this? Thanks in advance!