rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Cannot install using pip

Open m-decoster opened this issue 2 years ago • 10 comments

Describe the bug

Despite seemingly meeting the requirements to install the Python version of rerun, I cannot install it using Pip.

The documentation says I need a working version of Python 3.8+. The PyPI website also says >= 3.8. However, this happens when I try to install rerun:

$ python3 --version
Python 3.8.5
$ pip --version
pip 23.0 from /home/mcdcoste/envs/rerun_env/lib/python3.8/site-packages/pip (python 3.8)
$ pip install rerun-sdk
ERROR: Could not find a version that satisfies the requirement rerun-sdk (from versions: none)
ERROR: No matching distribution found for rerun-sdk

To Reproduce Steps to reproduce the behavior:

  1. Get Ubuntu 20.04
  2. Install Python 3.8.5
  3. Install Pip 23
  4. Install rerun-sdk

Expected behavior

Expected behavior is that pip install rerun-sdk would install the rerun sdk.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04

m-decoster avatar Feb 15 '23 14:02 m-decoster

Thank you for reporting! We're looking into this right away!

Wumpf avatar Feb 15 '23 14:02 Wumpf

Hi @m-decoster , thanks for the report. Can you please post the output of the command uname -a?

jondo2010 avatar Feb 15 '23 14:02 jondo2010

@jondo2010 Sure, here you go:

$ uname -a
Linux mcdcoste-Latitude-5590 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

m-decoster avatar Feb 15 '23 15:02 m-decoster

@m-decoster I reproduced this locally in a 20.04 docker container and can confirm it's an issue with how we're building the wheels. Working on an updated builder now that should do the trick for you. Will report back when I have an updated package to try out.

jleibs avatar Feb 15 '23 15:02 jleibs

Ok, @m-decoster I managed to create a one-off build from an ubuntu 20.04 environment (specifically with glibc-2.31 ABI). It will take a bit more to get this fully integrated into our CI, but I'm curious if this works for you.

rerun_glibc_2_31.zip

Download the attached zip, then:

unzip rerun_glibc_2_31.zip
pip install rerun_sdk-0.2.0-cp38-abi3-manylinux_2_31_x86_64.whl
python -m rerun_demo

jleibs avatar Feb 15 '23 19:02 jleibs

Thanks @jleibs, this works perfectly!

m-decoster avatar Feb 16 '23 08:02 m-decoster

Awesome, thanks for testing, @m-decoster

I'll go ahead and figure out how to get these changes into our CI then.

jleibs avatar Feb 16 '23 11:02 jleibs

@jleibs, is rerun_glibc_2_31.zip with the web feature? I get

RuntimeError: The Rerun SDK was not compiled with the 'web' feature

when trying to run the objectron demo with --serve

robertbagge avatar Feb 17 '23 15:02 robertbagge

@robertbagge That test build wasn't, but I just landed the change to do this in our CI. Looks like I've got one more bug to fix, but should have updated pre-release wheels for you very soon.

jleibs avatar Feb 17 '23 15:02 jleibs

@robertbagge ok, the CI build finally finished. It won't be available via pypi until our next patch-release, but you can grab the wheel from here: https://github.com/rerun-io/rerun/releases/download/latest/rerun_sdk-0.2.0+df920dc.1-cp38-abi3-manylinux_2_31_x86_64.whl

pip install https://github.com/rerun-io/rerun/releases/download/latest/rerun_sdk-0.2.0+df920dc.1-cp38-abi3-manylinux_2_31_x86_64.whl

jleibs avatar Feb 17 '23 17:02 jleibs

Hi @jleibs , I'm still using Ubuntu 18.04 (glibc 2.27) and the same issue happens. Could you also add the CI pipeline to generate whl for glibc 2.27? I'm looking forward to working with your sdk.

mont1004 avatar Feb 23 '23 03:02 mont1004

We haven't officially decided what our minimum supported Ubuntu is (see https://github.com/rerun-io/rerun/issues/1346), but Ubuntu 18.04 was released in 2018 and will loose standard support on April 2023, so I'm leaning towards that not making the cut.

Have you tried building from source? https://github.com/rerun-io/rerun/tree/main/rerun_py#from-source

emilk avatar Feb 23 '23 10:02 emilk

Fair enough. I'll give it a shot. Thank you.

mont1004 avatar Feb 23 '23 10:02 mont1004

18.04 also does not ship with python 3.8. Which is currently our minimum required python version, so you'll also need to use a non-system python version.

jleibs avatar Feb 23 '23 13:02 jleibs

@jleibs, do you have any timeline on when the next patch release will be?

robertbagge avatar Feb 23 '23 15:02 robertbagge

I just tried that, however, I got a couple of problems. The biggest thing is that gtk-sys crate requires gtk+-3.0 >= 3.24 while it is available up to 3.22 for Ubuntu 18.04. There might be some way to install it forcibly, but that idea sounds no good considering the risk of breaking my environment.

I'll consider migration to the latest LTS version (I'd love to do that personally, but it's not an easy choice in the company😕).

mont1004 avatar Feb 23 '23 15:02 mont1004

@jleibs, do you have any timeline on when the next patch release will be?

@robertbagge There are a few more things we're hoping to land first. Currently looking like sometime mid- next week.

jleibs avatar Feb 23 '23 15:02 jleibs

The biggest thing is that gtk-sys crate requires gtk+-3.0 >= 3.24

@mont1004 yes, that seems likely to cause some problems. I was hoping there might be some way for you to build without the gtk dep, i.e. only using the web-viewer, but this is not currently possible (I just created an issue for this for the future though: https://github.com/rerun-io/rerun/issues/1384).

For now I think you're going to be stuck finding a way to work with 20.04 (or 22.04 which is also LTS).

jleibs avatar Feb 23 '23 16:02 jleibs

@jleibs, do you have any timeline on when the next patch release will be?

@robertbagge There are a few more things we're hoping to land first. Currently looking like sometime mid- next week.

Cool, that sounds good

robertbagge avatar Feb 23 '23 16:02 robertbagge

I've created an issue to track the next release: https://github.com/rerun-io/rerun/issues/1386

emilk avatar Feb 23 '23 18:02 emilk

As of rerun-sdk-0.3.0 this is now working. Just confirmed in a new Ubuntu-20.04 docker container.

jleibs avatar Mar 08 '23 23:03 jleibs

Ok, @m-decoster I managed to create a one-off build from an ubuntu 20.04 environment (specifically with glibc-2.31 ABI). It will take a bit more to get this fully integrated into our CI, but I'm curious if this works for you.

rerun_glibc_2_31.zip

Download the attached zip, then:

unzip rerun_glibc_2_31.zip
pip install rerun_sdk-0.2.0-cp38-abi3-manylinux_2_31_x86_64.whl
python -m rerun_demo

After running this, I'm getting below error in Ubuntu 20.04 ERROR: rerun_sdk-0.2.0-cp38-abi3-manylinux_2_31_x86_64.whl is not a supported wheel on this platform.

kvnptl avatar Apr 10 '23 11:04 kvnptl

Ok, @m-decoster I managed to create a one-off build from an ubuntu 20.04 environment (specifically with glibc-2.31 ABI). It will take a bit more to get this fully integrated into our CI, but I'm curious if this works for you. rerun_glibc_2_31.zip Download the attached zip, then:

unzip rerun_glibc_2_31.zip
pip install rerun_sdk-0.2.0-cp38-abi3-manylinux_2_31_x86_64.whl
python -m rerun_demo

After running this, I'm getting below error in Ubuntu 20.04 ERROR: rerun_sdk-0.2.0-cp38-abi3-manylinux_2_31_x86_64.whl is not a supported wheel on this platform.

ok, it works after upgrading pip using python -m pip install --upgrade pip

kvnptl avatar Apr 10 '23 11:04 kvnptl

Hi @jondo2010 @Wumpf ,

I am facing the same issue:

$ pip3 install rerun-sdk
Collecting rerun-sdk
  Cache entry deserialization failed, entry ignored
  Could not find a version that satisfies the requirement rerun-sdk (from versions: )
No matching distribution found for rerun-sdk

Here are some info about my system:

$ pip -V
pip 19.2.2 from /nfs/tools/humans/conda/lib/python3.7/site-packages/pip (python 3.7)

$ uname -a
Linux <name_of_my_server> 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Do you know where the issue come from? Thanks,

fabienbaradel avatar Jun 02 '23 09:06 fabienbaradel

@fabienbaradel the Rerun packages require pip>=21.0 to install. I'll make sure to add this to the relevant documentation.

Also, I notice you are using python-3.7. Rerun has a minimum python version of python-3.8, so in addition to upgrading pip you are going to need to upgrade to a more recent python.

jleibs avatar Jun 05 '23 13:06 jleibs

Just updated my pip and python to newer version but I am still facing same issue:

$ pip -V
pip 23.1.2 from /home/fbaradel/.local/lib/python3.9/site-packages/pip (python 3.9)

$ pip install rerun-sdk
ERROR: Could not find a version that satisfies the requirement rerun-sdk (from versions: none)
ERROR: No matching distribution found for rerun-sdk

The output is not verbose so it is difficult to know where the issue comes from. Any idea @jleibs ?

fabienbaradel avatar Jun 05 '23 19:06 fabienbaradel

Interesting. What linux version is this? 3.10.0-1160.80.1.el7.x86_64 looks like maybe a Redhat/Fedora variant?

Our packages are built as manylinux_2_31, which works back to ubuntu 20.04. Looks like on the Fedora side this requires Fedora 32 or later.

jleibs avatar Jun 05 '23 20:06 jleibs

The linux version is Centos. What do you recommend me for installing rerun? Thanks.

fabienbaradel avatar Jun 07 '23 08:06 fabienbaradel

I am facing the same issue as @fabienbaradel on CentOS 7:

$uname -a
Linux trinity-0-17.eth 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I'm guessing it's related to OS's ancient glibc version (2.17).

nchodosh avatar Jul 05 '23 19:07 nchodosh

@jleibs

I am trying to install rerun sdk on a RHEL system, but it fails. Any suggestions?

pip install rerun-sdk
ERROR: Could not find a version that satisfies the requirement rerun-sdk (from versions: none)
ERROR: No matching distribution found for rerun-sdk

pip install https://files.pythonhosted.org/packages/6b/f6/c79189e4427c19c585da61b9394f30234ac1f70859c61e36cf5f11bb4fa4/rerun_sdk-0.14.1-cp38-abi3-manylinux_2_31_x86_64.whl
ERROR: rerun_sdk-0.14.1-cp38-abi3-manylinux_2_31_x86_64.whl is not a supported wheel on this platform.

cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.9 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.9 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"

uname -a
Linux <xxx> 4.18.0-513.18.1.el8_9.x86_64 #1 SMP Thu Feb 1 03:51:05 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

ani0075saha avatar Mar 27 '24 19:03 ani0075saha