-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
INTERNAL ERROR in mypy 0.610 #5300
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
Comments
Hi, I think this is a duplicate of #5121. Can you run without |
Also if you add |
@ethanhs The linked ticket recommends "installing as recommended" rather than from a Happy to have this closed as a duplicate. Find attached the result of running all four combinations of args against my project below (the below was run against an install from GitHub at c77e27a).
|
@TheKevJames I'm glad you confirmed my suspicions. I definitely want to get to the bottom of this, because installing from PyPi and git both are the main recommended ways of installation (other than cloning manually then running Since it looks like your using the default Python docker container, I believe it is using Debian Stretch, is that correct? Thank you for working with me on this! |
@ethanhs and that led me to the correct answer! Thank you! Root cause:
The Replacing the
|
Excellent, glad you figured it out! I think this might motivate me to finally move our typeshed installs to package data vs data files, as this is a clear example of where package data is better. That being said, I don't think it is advisable to cache site-packages, as not all packages install everything there. |
Maybe it's time to revive #2025?
|
@gvanrossum I think you might have mistyped the issue number? |
@ethanhs is probably right re: avoiding caching the Unfortunately, there's very little insight into this from the CircleCI side of things. Starting from this support/discussion page is about the closest I've found to advice on this, and as you can see I've needed to add a few things to that list. The site-packages cache is at least a part of the installed packages which I want cached. It definitely causes cache invalidation issues as shown in this ticket, but it also cuts off a significant amount of time from each build. Maybe I should re-evaluate those trade-offs... |
Oh, I meant the typeshed issue: python/typeshed#2025 |
Ah, I wasn't actually going to suggest that, but it is definitely a solution. I'll open an issue to explore the options. |
This issue appears when running
python -m mypy --show-traceback --ignore-missing-imports PROJ
on CircleCI in thepython:3.6.6
image. Here's the CircleCI job definition:Oddly, running the above locally does not cause any issues:
Traceback:
The text was updated successfully, but these errors were encountered: