-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'groups' #291
Comments
I can also confirm this issue |
Can confirm that this error arose for us today as well - three different computers (two sessions on GitHub Codespaces and a local computer). Hot fix: Downgrading to 4.6.1 fixes it: pip install gdown==4.6.1 |
Also seeing the same issue with gdown 4.7.1. Used last week without issue on Cygwin via Windows, but now getting the none type error noted above |
Same problem, maybe google changed something to block gdown. |
How would it make any sense for them to decide to block gdown? But yeah, I am getting the same error. |
same issue, was relying on this |
import gdown
url = "https://drive.google.com/file/d/1jjJ8k3L-BzFKSevoGo6yaJ-jCjc2SCK1/view"
filename = gdown.download(url, quiet=False, fuzzy=True) When I run the code from jupyter notebook, I get |
yes me too, currently face the same issue. Yesterday still working. |
Same problem here. I use
My gdown version is the latest: v4.7.1. Quick Fix:I found out that versions above and equal to v4.6.4 are facing this probem but v4.6.3 is working fine. so all you need to do as a user is to downgrade your version: |
reference: wkentaro/gdown#291 (comment)
I had this issue and also a permission error (“file is not public”). I believe both are connected to the removal of the headers: I readded them to the latest version and it fixed both issues. |
This does appear to be an issue of a hard-coded assumption about the format of the Content-Disposition header entry which has changed. We've encountered the problem inside and outside notebooks. |
Hello, why the developer still don't fix it, gdown is widely used. |
@guesalomon Where should I add them? |
You can add it on the line 153 of the download.py file:
change to:
|
The above fixed it for me. Just downgrade the package to v4.6.3 for now! pip install gdown==v4.6.3 |
It worked for me also downgrading the version, but I was just giving the author a hint on what fixed it for me! |
@guesalomon Thank you. |
i also face the same issue, but downgrading gdown version is working fine |
Same issue here: File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/gdown/download.py", line 248, in download
filename_from_url = m.groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups' Downgrading the package to v4.6.3 solved it for me 😄 |
Workaround for #7382 #7383 ### Description Based on the comment [here](wkentaro/gdown#291 (comment)), pin the gdown version as a workaround. Will review this one once gdown has some update internal. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
reference: wkentaro/gdown#291 (comment)
Hey guys. Sorry for being late (I missed the notifications), but this should be fixed now via #295 and the latest release. |
v4.7.3 fixed the issue for me! Thank you wkentaro and everyone else who figured out the issue! |
Workaround for Project-MONAI#7382 Project-MONAI#7383 ### Description Based on the comment [here](wkentaro/gdown#291 (comment)), pin the gdown version as a workaround. Will review this one once gdown has some update internal. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Signed-off-by: Mark Graham <markgraham539@gmail.com>
Please be respectful of the people who built a software that is widely used |
Workaround for Project-MONAI#7382 Project-MONAI#7383 ### Description Based on the comment [here](wkentaro/gdown#291 (comment)), pin the gdown version as a workaround. Will review this one once gdown has some update internal. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Signed-off-by: Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>
Workaround for Project-MONAI#7382 Project-MONAI#7383 ### Description Based on the comment [here](wkentaro/gdown#291 (comment)), pin the gdown version as a workaround. Will review this one once gdown has some update internal. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Signed-off-by: Yu0610 <612410030@alum.ccu.edu.tw>
Provide environment information
/Users/benc/.pyenv/shims/python
Python 3.10.6
gdown 4.7.1
What OS are you using?
macOS Ventura 13.1 (M1)
Describe the Bug
Traceback (most recent call last):
File "/Users/benc/.pyenv/versions/3.10.6/bin/gdown", line 8, in
sys.exit(main())
File "/Users/benc/.pyenv/versions/3.10.6/lib/python3.10/site-packages/gdown/cli.py", line 143, in main
filenames = download_folder(
File "/Users/benc/.pyenv/versions/3.10.6/lib/python3.10/site-packages/gdown/download_folder.py", line 303, in download_folder
filename = download(
File "/Users/benc/.pyenv/versions/3.10.6/lib/python3.10/site-packages/gdown/download.py", line 259, in download
filename_from_url = m.groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
Expected Behavior
It should download the folder
To Reproduce
This is accessing a folder with many large files. I'm sorry the folder can't be shared publically.
The text was updated successfully, but these errors were encountered: