pyconvsegnet icon indicating copy to clipboard operation
pyconvsegnet copied to clipboard

ModuleNotFoundError

Open lewisxiaoxu opened this issue 4 years ago • 1 comments

from util import dataset, transform, config

ModuleNotFoundError: No module named 'util'

lewisxiaoxu avatar Jun 03 '21 09:06 lewisxiaoxu

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.

ignasi00 avatar Nov 30 '21 10:11 ignasi00