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

install tui with pip in archlinux #57

Closed
cirrusUK opened this issue May 11, 2020 · 13 comments
Closed

install tui with pip in archlinux #57

cirrusUK opened this issue May 11, 2020 · 13 comments
Labels
bug Something isn't working packaging Packaging or distribution issues

Comments

@cirrusUK
Copy link

cirrusUK commented May 11, 2020

Using pip install aria2p tui in virtualenv does not work for me it complains the deps for top are not installed when pip clearly shows tui 1.1.1 is installed , installing python-asciimatics and aria2p from AUR rectifies matters

@pawamoy
Copy link
Owner

pawamoy commented May 12, 2020

It's because it's pip install aria2p[tui], not pip install aria2p tui :)

@NightMachinery
Copy link

It doesn't for me either (macOS):

pip install 'aria2p[tui]'
Requirement already satisfied: aria2p[tui] in /Users/evar/anaconda/lib/python3.7/site-packages (0.9.0)
Requirement already satisfied: websocket_client in /Users/evar/anaconda/lib/python3.7/site-packages (from aria2p[tui]) (0.56.0)
Requirement already satisfied: requests in /Users/evar/anaconda/lib/python3.7/site-packages (from aria2p[tui]) (2.22.0)
Requirement already satisfied: loguru in /Users/evar/anaconda/lib/python3.7/site-packages (from aria2p[tui]) (0.4.1)
Requirement already satisfied: asciimatics; extra == "tui" in /Users/evar/anaconda/lib/python3.7/site-packages (from aria2p[tui]) (1.7.2)
Requirement already satisfied: six in /Users/evar/anaconda/lib/python3.7/site-packages (from websocket_client->aria2p[tui]) (1.12.0)
Requirement already satisfied: certifi>=2017.4.17 in /Users/evar/anaconda/lib/python3.7/site-packages (from requests->aria2p[tui]) (2020.4.5.1)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Users/evar/anaconda/lib/python3.7/site-packages (from requests->aria2p[tui]) (1.24.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Users/evar/anaconda/lib/python3.7/site-packages (from requests->aria2p[tui]) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /Users/evar/anaconda/lib/python3.7/site-packages (from requests->aria2p[tui]) (2.8)
Requirement already satisfied: Pillow>=2.7.0 in /Users/evar/anaconda/lib/python3.7/site-packages (from asciimatics; extra == "tui"->aria2p[tui]) (6.1.0)
Requirement already satisfied: pyfiglet>=0.7.2 in /Users/evar/anaconda/lib/python3.7/site-packages (from asciimatics; extra == "tui"->aria2p[tui]) (0.7.5)
Requirement already satisfied: future in /Users/evar/anaconda/lib/python3.7/site-packages (from asciimatics; extra == "tui"->aria2p[tui]) (0.18.2)
The top-interface dependencies are not installed. Try running `pip install aria2p[tui]` to install them.

@cirrusUK
Copy link
Author

cirrusUK commented May 12, 2020

@pawamoy nope
: ░▒▓➤ pip install aria2p[tui] zsh: no matches found: aria2p[tui]
then

░▒▓➤ pip install aria2p tui Requirement already satisfied: aria2p in /home/cirrus/venv/lib/python3.8/site-packages (0.9.0) Requirement already satisfied: tui in /home/cirrus/venv/lib/python3.8/site-packages (1.1.1) Requirement already satisfied: websocket_client in /home/cirrus/venv/lib/python3.8/site-packages (from aria2p) (0.57.0) Requirement already satisfied: requests in /home/cirrus/venv/lib/python3.8/site-packages (from aria2p) (2.23.0) Requirement already satisfied: loguru in /home/cirrus/venv/lib/python3.8/site-packages (from aria2p) (0.4.1) Requirement already satisfied: six in /home/cirrus/venv/lib/python3.8/site-packages (from websocket_client->aria2p) (1.14.0) Requirement already satisfied: certifi>=2017.4.17 in /home/cirrus/venv/lib/python3.8/site-packages (from requests->aria2p) (2020.4.5.1) Requirement already satisfied: idna<3,>=2.5 in /home/cirrus/venv/lib/python3.8/site-packages (from requests->aria2p) (2.8) Requirement already satisfied: chardet<4,>=3.0.2 in /home/cirrus/venv/lib/python3.8/site-packages (from requests->aria2p) (3.0.4) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/cirrus/venv/lib/python3.8/site-packages (from requests->aria2p) (1.25.9)
and
``░▒▓➤ pip install tui
Requirement already satisfied: tui in /home/cirrus/venv/lib/python3.8/site-packages (1.1.1)
`

when launching
The top-interface dependencies are not installed. Try running pip install aria2p[tui] to install them.

as mentioned installing python-asciimatics and aria2p outwith pip works

@pawamoy
Copy link
Owner

pawamoy commented May 12, 2020

@cirrusUK try wrapping it in quotes, it seems zsh is trying to do smart things with the brackets: pip install 'aria2p[tui]'

Also the tui package is absolutely not relevant here. The bracket syntax for pip install means "install extras designated by the tui group"

And someone added aria2p in AUR if you want! EDIT: sorry I see you already mentioned it 🙂

@pawamoy
Copy link
Owner

pawamoy commented May 12, 2020

@NightMachinary, I will investigate later with you on MacOS

@cirrusUK
Copy link
Author

pawamoy Regards it was indeed zsh being funky, should i close or leave open until the similar issue on OSX is rectified ?

@pawamoy
Copy link
Owner

pawamoy commented May 12, 2020

@cirrusUK great 🎉 ! Yes, leave it open, we'll close it once it's working for @NightMachinary as well 🙂

@pawamoy
Copy link
Owner

pawamoy commented May 12, 2020

@NightMachinary could you try something?

In /Users/evar/anaconda/lib/python3.7/site-packages/aria2p/cli.py, at the beginning change

try:
    from .interface import Interface
except ImportError:
    Interface = None

to

from .interface import Interface

Then run aria2p again and paste the output here.

@NightMachinery
Copy link

@pawamoy

Traceback (most recent call last):
  File "/Users/evar/anaconda/bin//aria2p", line 6, in <module>
    from aria2p.cli import main
  File "/Users/evar/anaconda/lib/python3.7/site-packages/aria2p/cli.py", line 35, in <module>
    from .interface import Interface
  File "/Users/evar/anaconda/lib/python3.7/site-packages/aria2p/interface.py", line 27, in <module>
    from asciimatics.screen import ManagedScreen, Screen
ImportError: cannot import name 'ManagedScreen' from 'asciimatics.screen' (/Users/evar/anaconda/lib/python3.7/site-packages/asciimatics/screen.py)

@pawamoy
Copy link
Owner

pawamoy commented May 12, 2020

Ha! Looks like the asciimatics version is too old! Try to upgrade it. Not sure why 1.7.2 was installed instead of 1.11.0. I'll update the version range for this dependency.

@NightMachinery
Copy link

@pawamoy The upgrade indeed solved the error messages, but running

aac () {
    aria2p --secret "$ARIA_SECRET" "$@"
}
aac top

just exits 1 without printing anything. aac show:

❯ aac show
GID               STATUS    PROGRESS   DOWN_SPEED     UP_SPEED      ETA  NAME
1cefb605bbdcad19  active       2.48% 653.23 KiB/s     0.00 B/s    8m45s  Rick.and.Morty.S04E07.1080p.WEBRip.HEVC.x265-RMTeam_www.Downloadha.com_.mkv
0a9c13e0a3badc89  complete   100.00%     0.00 B/s     0.00 B/s        -  GOTO 2017 • Blockchain - The Slowest (and most Fascinating) Database in the World • Stefan Tilkov.mp4
b329cef2b665b8d3  error        0.00%     0.00 B/s     0.00 B/s        -  GOTO 2017 • Blockchain - The Slowest (and most Fascinating) Database in the World • Stefan Tilkov.1.mp4
197aec4594ec1448  error        0.00%     0.00 B/s     0.00 B/s        -  GOTO 2017 • Blockchain - The Slowest (and most Fascinating) Database in the World • Stefan Tilkov.2.mp4

@pawamoy pawamoy added bug Something isn't working packaging Packaging or distribution issues labels May 13, 2020
@pawamoy
Copy link
Owner

pawamoy commented May 13, 2020

Can you run it again with -L TRACE -P aria2p.log and paste the logs here? Thank you very much for following up with me by the way 🙂

@pawamoy
Copy link
Owner

pawamoy commented May 14, 2020

Closing because the original issue is fixed, but we can still try and resolve yours @NightMachinary

jonnieey pushed a commit to jonnieey/aria2p that referenced this issue Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packaging Packaging or distribution issues
Projects
None yet
Development

No branches or pull requests

3 participants