Skip to content
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

'NoneType' object has no attribute 'groups' #102

Closed
TimTreurniet opened this issue Jan 12, 2024 · 3 comments
Closed

'NoneType' object has no attribute 'groups' #102

TimTreurniet opened this issue Jan 12, 2024 · 3 comments

Comments

@TimTreurniet
Copy link

Hi,

Not sure if this is a google error maybe, but I was experimenting with adding Strongsort to a git repoand including it in unit tests. It fails 4/5 times (so not always) when downloading weigths.
gdown.download(model_url, str(strong_sort_weights), quiet=False)
I'm providing: url = 'https://drive.google.com/uc?id=1z1UghYvOTtjx7kEoRfmqSMu-z62J6MAj', output = 'osnet_x0_25_market1501.pt'

        if gdrive_file_id and is_gdrive_download_link:
            content_disposition = six.moves.urllib_parse.unquote(
                res.headers["Content-Disposition"]
            )
            m = re.search(r"filename\*=UTF-8''(.*)", content_disposition)
            print(m)
>           filename_from_url = m.groups()[0]
E           AttributeError: 'NoneType' object has no attribute 'groups'

.venv/lib/python3.10/site-packages/gdown/download.py:260: AttributeError
@TimTreurniet
Copy link
Author

yeah looks like an issue with gdown

@dyhBUPT
Copy link
Owner

dyhBUPT commented Jan 14, 2024

Hi, it seems not a relevant issue for this repo. We don't provide any ckpt for OSNet.

@TimTreurniet
Copy link
Author

Yeah I'll close this. If anyone is having the same issue: pip install gdown==v4.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants