Trouble in pip installing vtk-osmesa

I’ve been using vtk-osmesa installed with pip as pip install --extra-index-url https://wheels.vtk.org vtk-osmesa,
following this post: Status Update: VTK Python Wheels - Announcements - VTK

OS: “Rocky Linux 8.6 (Green Obsidian)”
$ python --version is Python 3.12.4

This times, pip install fails:

$ pip install --extra-index-url https://wheels.vtk.org vtk-osmesa
Looking in indexes: https://pypi.org/simple, https://wheels.vtk.org
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1000)'))': /vtk-osmesa/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1000)'))': /vtk-osmesa/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1000)'))': /vtk-osmesa/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1000)'))': /vtk-osmesa/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1000)'))': /vtk-osmesa/
Could not fetch URL https://wheels.vtk.org/vtk-osmesa/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='wheels.vtk.org', port=443): Max retries exceeded with url: /vtk-osmesa/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1000)'))) - skipping
ERROR: Could not find a version that satisfies the requirement vtk-osmesa (from versions: none)
ERROR: No matching distribution found for vtk-osmesa

I grabbed .whl from https://gitlab.kitware.com/vtk/vtk/-/packages/483 and my problem was fixed.
But I’m happy if simple pip install comes back.

Thanks in advance.

Natsu

Hello @natsu_mizu

That is outdated. Please see latest information at Status Update: Runtime OpenGL render window selection in VTK

There is no longer a need to download a separate package for osmesa support because it is built into the vtk package.

1 Like

That’s great.

I appriceiate that and thank you for such a quick reply.

– Natsu