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

library stubs are missing #3509

Open
kkasra12 opened this issue Jan 8, 2024 · 1 comment
Open

library stubs are missing #3509

kkasra12 opened this issue Jan 8, 2024 · 1 comment

Comments

@kkasra12
Copy link

kkasra12 commented Jan 8, 2024

it seems gensim is missing library stubs.
mypy says: Cannot find implementation or library stub for module named "gensim" [import-not-found]

also I have tried typeshed (pip install types-gensim) but it wasn't available.

@gojomo
Copy link
Collaborator

gojomo commented Jan 10, 2024

Gensim has historically not tried to implement static typing or type hinting, so perhaps this is just expected behavior?

OTOH, this part of the mypy docs suggests this error can also occur if it just can't find Gensim at all: https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-type-hints-for-third-party-library

In which case, seems like a not-Gensim error in your local config/Python-env?

How did you install Gensim, and can you use it separately without mypy being any part of the setup? Exactly what operations triggered the above error?

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