Skip to content

"ModuleNotFoundError: No module named 'scripts'" due to overriding the 'mypy' entry point #238

@AlirezaRoshanzamir

Description

@AlirezaRoshanzamir

When installing the redisvl library, either directly or indirectly through dependencies like langchain-redis, the first-party mypy entry point (which we use for type-checking our Python code) gets overridden by your scripts:mypy entry point:
image

Which raises an error when we try to run mypy in our CI:
image

Your revised version is quite clear! Here’s a minor tweak to make it even more concise:

However, the issue is inconsistent and difficult to reproduce. It took me an entire day to identify the root cause, as it only occurred in our CI Docker runner. The problem arises because redisvl is usually installed after mypy in our CI (when using a lockfile).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions