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

An exception occurred when using a proxy to download the model #1317

Closed
ider-zh opened this issue Dec 4, 2023 · 2 comments
Closed

An exception occurred when using a proxy to download the model #1317

ider-zh opened this issue Dec 4, 2023 · 2 comments
Labels

Comments

@ider-zh
Copy link
Contributor

ider-zh commented Dec 4, 2023

The following is the code that triggers the bug

import stanza
proxies = {'http': 'http://ip:port', 'https': 'http://ip:port'}
stanza.download('en', proxies=proxies)  

exception

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
...
...
...
TypeError: expected str, bytes or os.PathLike object, not dict
@AngledLuffa
Copy link
Collaborator

AngledLuffa commented Dec 4, 2023 via email

@ider-zh
Copy link
Contributor Author

ider-zh commented Dec 5, 2023

Thanks for fixing & sorry for the hassle. Do you need a patched release ASAP?

On Mon, Dec 4, 2023, 4:11 AM ider @.> wrote: The following is the code that triggers the bug import stanza proxies = {'http': 'http://ip:port', 'https': 'http://ip:port'} stanza.download('en', proxies=proxies) exception --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ... ... ... TypeError: expected str, bytes or os.PathLike object, not dict — Reply to this email directly, view it on GitHub <#1317>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2AYWIJNL2NQJ6VKJHH7BLYHW4VZAVCNFSM6AAAAABAF3YLPOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDGNZRGQYTKMA . You are receiving this because you are subscribed to this thread.Message ID: @.>

thanks, I don't need a patched release as I have already fixed it locally.

@ider-zh ider-zh closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants