Monday 13 July 2020

Fix "ValueError: attempted relative import beyond top-level package"

import sys
sys.path.append("..") # Adds higher directory to python modules path.
Try this. Worked for me.

from : https://stackoverflow.com/questions/30669474/beyond-top-level-package-error-in-relative-import

No comments:

Post a Comment