rerun: Cannot install using pip on Ubuntu 20.04
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:
- Get Ubuntu 20.04
- Install Python 3.8.5
- Install Pip 23
- 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
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 4
- Comments: 31 (18 by maintainers)
@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
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:
ok, it works after upgrading pip using
python -m pip install --upgrade pipAwesome, thanks for testing, @m-decoster
I’ll go ahead and figure out how to get these changes into our CI then.
@ani0075saha our current pypi-hosted wheel depends on glibc 2.31. It looks like RHEL-8.9 is still using glibc-2.28
For older OS’s such as redhat 8 I would currently recommend either doing a source install, or using using our
conda-forgepackage (https://prefix.dev/channels/conda-forge/packages/rerun-sdk)@fabienbaradel the Rerun packages require
pip>=21.0to 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.
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.As of rerun-sdk-0.3.0 this is now working. Just confirmed in a new Ubuntu-20.04 docker container.
@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).
@robertbagge There are a few more things we’re hoping to land first. Currently looking like sometime mid- next week.
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.
@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.