Skip to content

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

@ider-zh

Description

@ider-zh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions