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

Error importing plugin "mypy_zope": cannot import name 'SemanticAnalyzerPass2' from 'mypy.semanal' #69

Open
pkoch opened this issue Mar 31, 2022 · 2 comments

Comments

@pkoch
Copy link

pkoch commented Mar 31, 2022

Tried to update to mypy 0.942, but I started seeing this:

mypy.ini:4: error: Error importing plugin "mypy_zope": cannot import name 'SemanticAnalyzerPass2' from 'mypy.semanal' (/home/runner/.cache/pre-commit/repo_fawoait/py_env-python3.8/lib/python3.8/site-packages/mypy/semanal.cpython-38-x86_64-linux-gnu.so)  [misc]

I do see a green build on #68, which is a bit curious.

Is there any more info I can provide to help debug this? My current workaround it to keep mypy at 0.941.

@tristanlatr
Copy link

I'm having the same error with mypy 0.982, it does seem to work with mypy 0.981 though.

@cyrillkuettel
Copy link

cyrillkuettel commented May 2, 2024

After hours of searching, this fixed it for me (I still have no idea why)

pip install --upgrade mypy && pip install --upgrade --force-reinstall mypy_zope

Currently I'm using these versions
mypy_zope==1.0.4
mypy==1.9.0

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

3 participants