Skip to content Skip to sidebar Skip to footer

Python Custom Module Not Found But Already Exists

I have created a separate file to hold some custom issue classes for my Python file and upon execution of the following command: coverage run test_syntax.py it prints out the follo

Solution 1:

You need a relative import like this (second one was needed on my machine to even get to the error you have posted):

# in main.py
from .errors import ...
# ros.py
from . import errors

Post a Comment for "Python Custom Module Not Found But Already Exists"