bing_image_downloader icon indicating copy to clipboard operation
bing_image_downloader copied to clipboard

Worked fine yesterday, but showing error for me today.

Open paulaai opened this issue 2 years ago • 4 comments

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

paulaai avatar Jun 23 '22 06:06 paulaai

Installed today. Same error.

mehanalavimajd avatar Aug 21 '22 10:08 mehanalavimajd

same here on second run,....

spider853 avatar Nov 13 '22 00:11 spider853

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

gurugaurav avatar Dec 28 '22 05:12 gurugaurav

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)

Herschel-vodemort avatar Jun 11 '23 01:06 Herschel-vodemort