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

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

Open
Kerrwy opened this issue Apr 17, 2017 · 13 comments
Open

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

Kerrwy opened this issue Apr 17, 2017 · 13 comments

Comments

@Kerrwy
Copy link

Kerrwy commented Apr 17, 2017

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
Copy link
Author

Kerrwy commented Apr 17, 2017

there is a ROLO_utils.py ,use it.

@alexrakowski
Copy link

change it to
import utils.ROLO_utils as utils

@cevatbostancioglu
Copy link

or you can add utils folder to PYTHONPATH variable

@stanifrolov
Copy link

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
Copy link

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

@Kerrwy
Copy link
Author

Kerrwy commented Jun 26, 2017

Thank you very much, I have solved it.

@wingNine
Copy link

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

@helloxueen
Copy link

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

@sharmarochan
Copy link

sharmarochan commented Jul 28, 2018

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

@pari93411
Copy link

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

@sharmarochan
Copy link

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

@sharmarochan
Copy link

__ init __

@Noumanijaz744
Copy link

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")?

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

10 participants