topisani/Discurses

Error when installing with pip3.6 or python 3.6 -m pip

Closed this issue · 5 comments

EzraJ commented

I'm running
sudo -H pip3.6 install discurses
and I get the error:
File "", line 1, in
File "/tmp/pip-install-gawvt9ev/discurses/setup.py", line 5, in
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'


Command "python setup.py egg_info" failed with error code 1 in /tmp/install/gawvt9ev/discurses/

Ge0 commented

Hi!

I have updated discurses to v0.3.3. Please update it on your side and tell me if the problem still happens. It should normally be ok.

duman commented

@Ge0 I'm getting this:

root@server [/usr/src/Python-3.6.5]# python3.6 -m pip install discurses
Collecting discurses
  Using cached https://files.pythonhosted.org/packages/cf/86/0b3108feb9a2170650d985ffb58a743ed402cc5138a2605812deef9e2437/discurses-0.3.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-8gur6q81/discurses/setup.py", line 31, in <module>
        long_description=get_readme(),
      File "/tmp/pip-install-8gur6q81/discurses/setup.py", line 15, in get_readme
        return fileobj.read()
      File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 177: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-8gur6q81/discurses/
EzraJ commented

Now i'm having this error:

File "/usr/local/lib/python3.6/dist-packages/discurses/ui/message_list.py" in line 4, in
import urwid
ModuleNotFoundError: urwid

When I run
sudo -H(With or without sudo) python3.6 -m pip install urwid
pip instal urwid
pip3.6 install urwid
etc

EzraJ commented

Never mind, I just reinstalled urwid and it started working. Thanks!

Ge0 commented

@tkduman Please open a new issue for your bug. I close this one since it has been fixed.