Skip to content

Latest master doesn't work installing using pip #4569

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

Closed
euresti opened this issue Feb 13, 2018 · 5 comments
Closed

Latest master doesn't work installing using pip #4569

euresti opened this issue Feb 13, 2018 · 5 comments

Comments

@euresti
Copy link
Contributor

euresti commented Feb 13, 2018

I think I forgot to add mypy.plugins somewhere:

Traceback (most recent call last):
  File "/Users/david/src/zapgram/.ve/bin/mypy", line 11, in <module>
    load_entry_point('mypy===0.570-dev-bdd5de949f4ee8f9333cabd0ac7282acc2aefaa4', 'console_scripts', 'mypy')()
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/pkg_resources/__init__.py", line 572, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
    return ep.load()
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2408, in load
    return self.resolve()
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2414, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/mypy/__main__.py", line 3, in <module>
    from mypy.main import main
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/mypy/main.py", line 13, in <module>
    from mypy import build
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/mypy/build.py", line 37, in <module>
    from mypy.semanal_pass1 import SemanticAnalyzerPass1
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/mypy/semanal_pass1.py", line 30, in <module>
    from mypy.semanal import SemanticAnalyzerPass2, infer_reachability_of_if_statement
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/mypy/semanal.py", line 75, in <module>
    from mypy.typeanal import (
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/mypy/typeanal.py", line 29, in <module>
    from mypy.plugin import Plugin, TypeAnalyzerPluginInterface, AnalyzeTypeContext
  File "/Users/david/src/zapgram/.ve/lib/python3.6/site-packages/mypy/plugin.py", line 7, in <module>
    import mypy.plugins.attrs
ModuleNotFoundError: No module named 'mypy.plugins'

Sorry.

@ilevkivskyi
Copy link
Member

Maybe you forgot to add an __init__.py somewhere? Can you try this? Also maybe you can try from mypy.plugins import attrs?

@gvanrossum
Copy link
Member

gvanrossum commented Feb 13, 2018 via email

@ilevkivskyi
Copy link
Member

Should be fixed now. @euresti Could you please check and close?

@euresti
Copy link
Contributor Author

euresti commented Feb 13, 2018

Yep. Thanks!

@euresti euresti closed this as completed Feb 13, 2018
@ashishp99

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants