-
Notifications
You must be signed in to change notification settings - Fork 8
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
error when (indirectly) importing mypy during package introspection #178
Comments
Change-Id: I7083d0a9955caa28156e2ed183875b42dbada4c1 References: ariebovenberg/slotscheck#178
Thanks for the report and reproducible steps 🙏 . This is indeed strange.
I'll have a look 🔍 |
thanks, I looked to see if there was any debug mode for slotscheck to see perhaps what it was failing on. if you were able to reproduce locally that would be great. |
I'm able to reproduce locally (MacOS) as well. My findings:
I'll do some more digging later, but —for now— the more straightforward solution looks to be changing the entry in [tool.slotscheck]
exclude-modules = '''
^sqlalchemy\.(
testing
|ext\.mypy # see slotscheck/issues/178
)
''' |
A good reason to bump priority on #116 as well. The 'troublesome' module is easily found when printing module names during introspection. |
Below is the traceback (on mypy 1.4). The module under inspection here is
|
great idea, yeah, the mypy extension is not really a critical component for us and skipping it seems like the best approach for now |
in [1] it was identified that import issues in the mypy extension in interaction with mypy 1.5 is the source of the error in slotscheck. I'm happy to remove mypy as a dependency for the slotscheck step in any case. [1] ariebovenberg/slotscheck#178 Change-Id: I750de591179840a586650d303bcaf2ede59ec048
I've created a tracking issue for the underlying issue (see above). See there for further discussion. |
We run slotscheck on linux and it has begun intermittently core dumping on the SQLAlchemy source tree. Here's the core dump occurring on a clean checkout
here are the steps without command output
The text was updated successfully, but these errors were encountered: