question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pip install tritonclient[all] not working in ubuntu 20.04

See original GitHub issue

Description

Related to #3544. O opened here because the other issue is here as well.

pip install tritonclient works:

❯ pip install tritonclient
Requirement already satisfied: tritonclient in ./venv/lib/python3.8/site-packages (2.16.0)
Requirement already satisfied: numpy>=1.19.1 in ./venv/lib/python3.8/site-packages (from tritonclient) (1.21.4)
Requirement already satisfied: python-rapidjson>=0.9.1 in ./venv/lib/python3.8/site-packages (from tritonclient) (1.5)

When I try to load the package:

In [2]: import tritonclient.http as triton_http
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
~/Workspaces/triton-workspace/python-request/venv/lib/python3.8/site-packages/tritonclient/http/__init__.py in <module>
     27 try:
---> 28     from geventhttpclient import HTTPClient
     29     from geventhttpclient.url import URL

ModuleNotFoundError: No module named 'geventhttpclient'

The above exception was the direct cause of the following exception:

RuntimeError                              Traceback (most recent call last)
<ipython-input-2-7394082b7260> in <module>
----> 1 import tritonclient.http as triton_http

~/Workspaces/triton-workspace/python-request/venv/lib/python3.8/site-packages/tritonclient/http/__init__.py in <module>
     36     import gzip, zlib
     37 except ModuleNotFoundError as error:
---> 38     raise RuntimeError(
     39         'The installation does not include http support. Specify \'http\' or \'all\' while installing the tritonclient package to include the support'
     40     ) from error

RuntimeError: The installation does not include http support. Specify 'http' or 'all' while installing the tritonclient package to include the support

So I tried pip install tritonclient[all] and the result is:

❯ pip install tritonclient[all]
zsh: no matches found: tritonclient[all]

System information Kubuntu 20.04 Python 3.8.10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

17reactions
danielbassocommented, Nov 23, 2021

Huh, found the culprit. Of course it had to do with the “[” symbol:

pip install tritonclient\[all\]                                                                                                                                                      ─╯
Requirement already satisfied: tritonclient[all] in ./venv/lib/python3.8/site-packages (2.16.0)
Requirement already satisfied: numpy>=1.19.1 in ./venv/lib/python3.8/site-packages (from tritonclient[all]) (1.21.4)
Requirement already satisfied: python-rapidjson>=0.9.1 in ./venv/lib/python3.8/site-packages (from tritonclient[all]) (1.5)
Collecting geventhttpclient>=1.4.4; extra == "all"
  Using cached geventhttpclient-1.5.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (77 kB)
Collecting grpcio>=1.31.0; extra == "all"
  Using cached grpcio-1.42.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB)
Collecting protobuf>=3.5.0; extra == "all"
  Using cached protobuf-3.19.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting gevent>=0.13
  Using cached gevent-21.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.5 MB)
Collecting brotli
  Using cached Brotli-1.0.9-cp38-cp38-manylinux1_x86_64.whl (357 kB)
Collecting certifi
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     |████████████████████████████████| 149 kB 4.9 MB/s 
Collecting greenlet<2.0,>=1.1.0; platform_python_implementation == "CPython"
  Using cached greenlet-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (156 kB)
Collecting zope.event
  Using cached zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
Collecting zope.interface
  Using cached zope.interface-5.4.0-cp38-cp38-manylinux2010_x86_64.whl (259 kB)
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (from gevent>=0.13->geventhttpclient>=1.4.4; extra == "all"->tritonclient[all]) (44.0.0)
Installing collected packages: six, greenlet, zope.event, zope.interface, gevent, brotli, certifi, geventhttpclient, grpcio, protobuf
Successfully installed brotli-1.0.9 certifi-2021.10.8 gevent-21.8.0 geventhttpclient-1.5.3 greenlet-1.1.2 grpcio-1.42.0 protobuf-3.19.1 six-1.16.0 zope.event-4.5.0 zope.interface-5.4.0

Then:

❯ python
Python 3.8.10 (default, Sep 28 2021, 16:10:42) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tritonclient.http as triton_http
>>> 

Suggestions:

  1. Write about it in the docs ("you could try tritonclient\[all\] if tritonclient[all] doesn’t work ");
  2. Wouldn’t be easier if the vanilla tritonclient was the ‘all’ version?
3reactions
CoderHamcommented, Nov 23, 2021

@danielbasso looks like the right solution is to turn off globbing for pip https://stackoverflow.com/questions/30539798/zsh-no-matches-found-requestssecurity/30539963#30539963 Since this is a feature of zsh that is breaking the syntax I would rather we do not confuse the user by adding details about a WAR needed in a custom shell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tritonclient - PyPI
Python client library and utilities for communicating with Triton Inference Server. ... pip install tritonclient. Copy PIP instructions.
Read more >
Unable to install grpcio using pip install grpcio - Stack Overflow
First, upgrade pip pip3 install --upgrade pip. Then, update the setup tools: python3 -m pip install --upgrade setuptools ...
Read more >
Not installing pip on ubuntu 20.04 [duplicate]
Press Ctrl + X to quit nano. Then run: sudo apt update sudo apt install python3-pip. This works. I also works with apt...
Read more >
tritonclient 2.25.0 on PyPI - Libraries.io
Ubuntu 20.04 or later (64-bit) · GPU support requires a CUDA®-enabled card · For NVIDIA GPUs, the r455 driver must be installed.
Read more >
Triton Inference Server Release 22.10
Container Version Triton Inference Server CUDA Toolkit 22.10 2.27.0 NVIDIA CUDA 11.8.0 22.09 2.26.0 NVIDIA CUDA 11.8.0 22.08 2.25.0 NVIDIA CUDA 11.7.1
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found