Scweet icon indicating copy to clipboard operation
Scweet copied to clipboard

ImportError: attempted relative import with no known parent package

Open anjit6 opened this issue 2 years ago • 2 comments

System: macOS Monterey (v12.6) Apple M1 Screenshot 2022-10-06 at 7 47 50 PM

anjit6 avatar Oct 06 '22 14:10 anjit6

same problem,have u fixed it?

passionate11 avatar Nov 23 '22 14:11 passionate11

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.

richlysakowski avatar Dec 02 '22 23:12 richlysakowski