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

For me, this issue suddenly appeared after installing python3.12. I went back to 3.10 for now.

I uninstalled 3.12:

sudo rm /usr/local/bin/python3.12
sudo rm -r /usr/local/lib/python3.12/
sudo rm -r /usr/local/include/python3.12
sudo rm /usr/local/bin/pip3.12

Also had to reinstall these packages:

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

Then the issue disappered

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