The user-defined model inherits a basemodel defined in utils. When migrating files, an error is reported
ModuleNotFoundError: No module named 'utils'
Check that there is a utils file, so try to find out if there is a problem with the import path
In setting
# Query the package path
print(sys.path)
# Add the package path
sys.path.insert(0,'path to be added')
print(sys.path)
Then try to run the problem solving again
Similar Posts:
- ModuleNotFoundError: No module named ‘torch.utils.serialization’ [How to Solve]
- django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named ‘M…
- ImportError: cannot import name’e.g. utils’from’tensorflow.as.utils’ 38382;’ 39064;
- jupyter notebook error: No module named ‘tensorflow’
- How to Solve ModuleNotFoundError: No module named ‘sklearn.grid_search‘
- [Solved] Pytorch load pre-training model Error: modulenotfounderror: no module named ‘models’
- Pytest executes the case.py file on the terminal error: Modulenotfounderror: no module named ‘API’
- [Solved] RuntimeError: Model class apps.users.models.UserProfile doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.
- ModuleNotFoundError: No module named ‘PyQt4’ [Spyder Import matplotlib Error]
- Error: Unknown column ‘*_image_url’ in ‘field list’ [How to Solve]