TomasTomecek / sen

Terminal User Interface for containers.
MIT License
990 stars 61 forks source link

missing urwid dependency? #128

Closed dpinol closed 7 years ago

dpinol commented 7 years ago

In OSX, with python 3.6 and pip 9.0.1, it failed to automatically install the urwid dependency.

sudo pip3 install sen
Password:
executing pip with sudo, you may want sudo's -H flag.
Collecting sen
  Downloading sen-0.5.1-py3-none-any.whl (53kB)
    100% |████████████████████████████████| 61kB 658kB/s
Collecting urwidtrees (from sen)
  Downloading urwidtrees-1.0.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/tmp/pip-build-14um8ooa/urwidtrees/setup.py", line 4, in <module>
        import urwidtrees.version as v
      File "/private/tmp/pip-build-14um8ooa/urwidtrees/urwidtrees/__init__.py", line 6, in <module>
        from .decoration import DecoratedTree, CollapsibleTree
      File "/private/tmp/pip-build-14um8ooa/urwidtrees/urwidtrees/decoration.py", line 4, in <module>
        import urwid
    ModuleNotFoundError: No module named 'urwid'

After manually installing urwid, it worked fine

TomasTomecek commented 7 years ago

This issue comes from urwidtrees, what you are seeing is combination of these issues: https://github.com/pazz/urwidtrees/issues/28 https://github.com/pazz/urwidtrees/issues/24 https://github.com/pazz/urwidtrees/issues/35

Unfortunately I wasn't able to resolve this (so $ pip3 install sen works) -- the solution is to install urwid explicitly before installing sen. I proposed patch to document this, can you take a look? #128

dpinol commented 7 years ago

hi, thanks! I guess you meant #129 instead of #128 in your last comment

TomasTomecek commented 7 years ago

Yes, #129, my bad.

dpinol commented 7 years ago

dealt by #129. Thank you @TomasTomecek

darkn3rd commented 6 years ago

Thanks. pip3 install urwid is a workaround.