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

Installation doesn't pull in attrs #2

Closed
johnoshea opened this issue Sep 26, 2018 · 1 comment
Closed

Installation doesn't pull in attrs #2

johnoshea opened this issue Sep 26, 2018 · 1 comment

Comments

@johnoshea
Copy link

Running pipenv install --dev flake8-eradicate gives the error message listed below (using the ale syntax checker inside vim). Adding attrs to the end of the install stanza has the plugin work as expected so it looks like it's not listed as a dependency?

 Traceback (most recent call last):
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/plugins/manager.py", line 178, in load_plugin
-    self._load(verify_requirements)
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/plugins/manager.py", line 150, in _load
-    self._plugin = resolve()
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2331, in resolve
-    module = __import__(self.module_name, fromlist=['__name__'], level=0)
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8_eradicate.py", line 6, in <module>
-    import attr
 ModuleNotFoundError: No module named 'attr'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/bin/flake8", line 11, in <module>
-    sys.exit(main())
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/main/cli.py", line 16, in main
-    app.run(argv)
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/main/application.py", line 396, in run
-    self._run(argv)
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/main/application.py", line 383, in _run
-    self.initialize(argv)
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/main/application.py", line 365, in initialize
-    self.find_plugins()
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/main/application.py", line 191, in find_plugins
-    self.check_plugins.load_plugins()
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/plugins/manager.py", line 423, in load_plugins
-    plugins = list(self.manager.map(load_plugin))
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/plugins/manager.py", line 311, in map
-    yield func(self.plugins[name], *args, **kwargs)
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/plugins/manager.py", line 421, in load_plugin
-    return plugin.load_plugin()
   File "/Users/johno/.local/share/virtualenvs/glint_processor-GwxykaLr/lib/python3.6/site-packages/flake8/plugins/manager.py", line 186, in load_plugin
-    raise failed_to_load
 flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "E8" due to No module named 'attr'.
@sobolevn
Copy link
Member

sobolevn commented Sep 26, 2018

Oops, I had this patch in master, but it was not released. 8def986

Now, it is released as 0.1.1. Thanks for firing an issue!

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

2 participants