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: dynamic module does not define module export function (PyInit_cython_bbox) #46

Open
lxtGH opened this issue Dec 11, 2017 · 3 comments

Comments

@lxtGH
Copy link

lxtGH commented Dec 11, 2017

python 3.6
torch 0.3.0
When I run the train.py
lxt@slave-01:~/pytorch/yolo2-pytorch$ python train.py
Traceback (most recent call last):
File "train.py", line 8, in
from darknet import Darknet19
File "/home/lxt/pytorch/yolo2-pytorch/darknet.py", line 9, in
from utils.cython_bbox import bbox_ious, bbox_intersections, bbox_overlaps, anchor_intersections
ImportError: dynamic module does not define module export function (PyInit_cython_bbox)

@luyang-NWPU
Copy link

I get a similar Error (Python2.7):

lu@lu-System-Product-Name:~/yolo2-pytorch-master$ python train.py
Traceback (most recent call last):
File "train.py", line 8, in
from darknet import Darknet19
File "/home/lu/yolo2-pytorch-master/darknet.py", line 9, in
from utils.cython_bbox import bbox_ious, bbox_intersections, bbox_overlaps, anchor_intersections
ImportError: No module named cython_bbox

@longcw
Copy link
Owner

longcw commented Dec 19, 2017 via email

@ghost
Copy link

ghost commented Dec 21, 2017

How to fix this?Please help

Traceback (most recent call last):
File "/Users/williamardianto/Projects/cv/yolo2-pytorch/demo.py", line 7, in
from darknet import Darknet19
File "/Users/williamardianto/Projects/cv/yolo2-pytorch/darknet.py", line 9, in
from .utils.cython_bbox import bbox_ious, bbox_intersections, bbox_overlaps, anchor_intersections
SystemError: Parent module '' not loaded, cannot perform relative import

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

3 participants