gurugaurav / bing_image_downloader

Python library to download bulk of images from Bing.com
https://pypi.org/project/bing-image-downloader/
MIT License
200 stars 101 forks source link

Worked fine yesterday, but showing error for me today. #31

Open paulaai opened 2 years ago

paulaai commented 2 years ago

I've tried this yesterday with a couple of queries and it worked completely fine. But today it is showing some error -

Traceback (most recent call last):
  File "E:\Pyhon\bing.py", line 1, in <module>
    from bing_image_downloader import downloader
  File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\bing_image_downloader\downloader.py", line 6, in <module>
    from bing import Bing
  File "E:\Pyhon\bing.py", line 2, in <module>
    downloader.download('apricot', limit=100,  output_dir='dataset', adult_filter_off=True, force_replace=False, timeout=60, verbose=True)
AttributeError: partially initialized module 'bing_image_downloader.downloader' has no attribute 'download' (most likely due to a circular import)

Process finished with exit code 1
mehanalavimajd commented 2 years ago

Installed today. Same error.

spider853 commented 1 year ago

same here on second run,....

gurugaurav commented 1 year ago

@spider853 @mehanalavimajd can u please give the step to reproduce this error

Herschel-vodemort commented 1 year ago

for those who still run into this issue in 2023, this fixed for me:

from bing_image_downloader.downloader import  download
download('map', limit=100,  output_dir='dataset', adult_filter_off=True, force_replace=False, timeout=60, verbose=True)