UNCLASSIFIED - NO CUI

Skip to content

Issue when using pandas with this image

Feature description

When using the python images, and installing pandas (pip install pandas) the following warning occurs, indicating that the python installation is missing a dependency.

/usr/local/lib/python3.9/site-packages/pandas/compat/init.py:97: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.

The 'lzma' module comes from the xz library, so the following is needed to rectify

yum install -y xz-devel

See: https://stackoverflow.com/questions/57743230/userwarning-could-not-import-the-lzma-module-your-installed-python-is-incomple

Use cases

Needed for pandas install

Benefits

People installing pandas will not have an error.

Requirements

yum install -y xz-devel

Links / references

https://stackoverflow.com/questions/57743230/userwarning-could-not-import-the-lzma-module-your-installed-python-is-incomple

Definition of Done

  • Can install pandas without getting the error above

/cc @ironbank-notifications/feature

Edited by sean.melissari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information