Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

'dephell autocomplete' fails when installing it into pyenv-managed virtualenv #42

Closed
enchantner opened this issue Apr 24, 2019 · 1 comment · Fixed by #45
Closed

'dephell autocomplete' fails when installing it into pyenv-managed virtualenv #42

enchantner opened this issue Apr 24, 2019 · 1 comment · Fixed by #45
Labels
bug Something isn't working

Comments

@enchantner
Copy link

enchantner commented Apr 24, 2019

On my development environment I'm using pyenv, pyenv-virtualenv and zsh. So, when I'm doing 'pip install dephell' inside virtualenv based on pyenv shim and running 'dephell autocomplete' afterwards, it gives me something like "_ERROR: Can't find '/home/meow-nofer/.local/share/pyenv/dephell_zsh_autocompletion'".

Okay then, so I installed it without virtualenv, just inside my pyenv's shim. Now I'm getting this:

Traceback (most recent call last):
  File "/home/meow-nofer/.local/bin/dephell", line 6, in <module>
    from dephell.cli import entrypoint
  File "/home/meow-nofer/.local/lib/python3.7/site-packages/dephell/__init__.py", line 3, in <module>
    from .controllers import *  # noQA
  File "/home/meow-nofer/.local/lib/python3.7/site-packages/dephell/controllers/__init__.py", line 3, in <module>
    from .dependency import DependencyMaker
  File "/home/meow-nofer/.local/lib/python3.7/site-packages/dephell/controllers/dependency.py", line 8, in <module>
    from dephell_links import VCSLink, parse_link
  File "/home/meow-nofer/.local/lib/python3.7/site-packages/dephell_links/__init__.py", line 2, in <module>
    from ._parse import parse_link
  File "/home/meow-nofer/.local/lib/python3.7/site-packages/dephell_links/_parse.py", line 5, in <module>
    from ._vcs import VCSLink
  File "/home/meow-nofer/.local/lib/python3.7/site-packages/dephell_links/_vcs.py", line 9, in <module>
    @attr.s()
AttributeError: module 'attr' has no attribute 's'```
@orsinium orsinium added the bug Something isn't working label Apr 25, 2019
@orsinium
Copy link
Member

I can't fix the second case: you have installed attr instead of attrs, I guess. DepHell's dependencies are OK. Probably, another tool on your system depends on attr. Please, let me know if you have more information about it.

Why I think that dependency on attrs is OK:

  1. Many other tools depend on attrs. It's already installed on your system.
  2. Attrs nice
  3. Attrs is zero-dependency project (has no its own dependencies)
  4. Attrs quite big to copy-paste this source-code in DepHell's source (like I've done with cached_property).

However, I've fixed the first case. Please, update dephell to 0.5.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants