wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.11k stars 343 forks source link

gdown.download_folder not working #179

Closed Kallol666 closed 1 year ago

Kallol666 commented 2 years ago

Hi,

I am trying to download a good drive folder using python

import gdown url = "https://drive.google.com/drive/folders/1gAh1nPhT-8Vw0fbinnWpM6m7gCpHYyLi?usp=sharing" gdown.download_folder(url, quiet=True, use_cookies=False)

The error I am getting

Traceback (most recent call last): File "C:\Users\mohar\PycharmProjects\pythonProject1\gdown.py", line 1, in import gdown File "C:\Users\mohar\PycharmProjects\pythonProject1\gdown.py", line 12, in gdown.download_folder(url, quiet=True, use_cookies=False) AttributeError: partially initialized module 'gdown' has no attribute 'download_folder' (most likely due to a circular import)

I installed using the following command

pip install gdown -U --no-cache-dir

Any solution? Thank you

wkentaro commented 2 years ago

Can you try

import gdown
print(gdown.__version__)
savelkouls commented 2 years ago

You are importing gdown from within gdown.py Rename your python file and it should work.

duckduckgrayduck commented 1 year ago

@RoboticLi is correct. I had the same issue and changing the program name fixed the issue.

wkentaro commented 1 year ago

@RoboticLi @duckduckgrayduck Thanks!