Guanghan / ROLO

ROLO is short for Recurrent YOLO, aimed at simultaneous object detection and tracking
Apache License 2.0
879 stars 278 forks source link

import ROLO_utils as utils ImportError: No module named ROLO_utils #13

Open Kerrwy opened 7 years ago

Kerrwy commented 7 years ago

When I run the codes, there is always a mistake: import ROLO_utils as utils ImportError: No module named ROLO_utils, would you tell me how to solve this problem?

Thank you and look forward to your answer.

Kerrwy commented 7 years ago

there is a ROLO_utils.py ,use it.

alexrakowski commented 7 years ago

change it to import utils.ROLO_utils as utils

cevatbostancioglu commented 7 years ago

or you can add utils folder to PYTHONPATH variable

stanifrolov commented 7 years ago

You may also need to add __init__.py files to treat the directories as python packages. Also try to use from utils import ROLO_utils as utils

Vivianyzw commented 7 years ago

change it into: import sys sys.path.append("/path/to/utils") import ROLO_utils as utils

Kerrwy commented 7 years ago

Thank you very much, I have solved it.

wingNine commented 6 years ago

@Kerrwy I also meet the problem,can u tell me how do you slove it?thanks

helloxueen commented 6 years ago

How to address the problem?Now I have the same problem,I also add the Path variable,but it doesn't matter.

sharmarochan commented 5 years ago

add " init.py " files to both the rolo folder and utils folder

pari93411 commented 4 years ago

@stanifrolov @sharmarochan I have the same problem . how can I access to init.py files?

sharmarochan commented 4 years ago

Add blank py files to both folders, with name "init.py"

sharmarochan commented 4 years ago

init

Noumanijaz744 commented 2 years ago

anyone p;ease help me when i run this code i face this error. SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Input file with correct format not found.\n")?