Scweet
Scweet copied to clipboard
ImportError: attempted relative import with no known parent package
System:
macOS Monterey (v12.6)
Apple M1
same problem,have u fixed it?
I am using PyCharm and I just replaced the following line in the main module "Scweet.scweet.py"
Change this import in the main module "Scweet.scweet.py"
FROM:
from .utils import init_driver, get_last_date_from_csv, log_search_page, keep_scroling, dowload_images
TO:
from Scweet.utils import init_driver, get_last_date_from_csv, log_search_page, keep_scroling, dowload_images
This stops PyCharm from complaining.