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

ModuleNotFoundError #4

Open
lewisxiaoxu opened this issue Jun 3, 2021 · 1 comment
Open

ModuleNotFoundError #4

lewisxiaoxu opened this issue Jun 3, 2021 · 1 comment

Comments

@lewisxiaoxu
Copy link

from util import dataset, transform, config

ModuleNotFoundError: No module named 'util'

@ignasi00
Copy link

You may need to configure the "visible" modules somehow (by instance, editing the python path) if you are using the project as it is (I do not know if they give instructions).

If you are trying to import the model in your external script, python is searching util in the folder of your script, then you may change the conflicting absolute imports (from x import y) of their package to relative imports (from .x import y) until it works (. is current folder, .. is previous folder, ... is two folders before and you search/try the needed number of dots if you need more levels).

Another option is to install the package in your python (or virtual environment) and use it without worries.

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