Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Kubeless python runtime pandas import throwing error #44

Open
gemanilkashyap opened this issue Jul 23, 2019 · 1 comment
Open

Kubeless python runtime pandas import throwing error #44

gemanilkashyap opened this issue Jul 23, 2019 · 1 comment

Comments

@gemanilkashyap
Copy link

Tried to create a function with Python 3.7 runtime which uses pandas, but when i deploy the function pod fails with below error

File "/kubeless/lib/python3.7/site-packages/pandas/init.py", line 55, in
from pandas.core.api import (
File "/kubeless/lib/python3.7/site-packages/pandas/core/api.py", line 24, in
from pandas.core.groupby import Grouper, NamedAgg
File "/kubeless/lib/python3.7/site-packages/pandas/core/groupby/init.py", line 1, in
from pandas.core.groupby.generic import ( # noqa: F401
File "/kubeless/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 44, in
from pandas.core.frame import DataFrame
File "/kubeless/lib/python3.7/site-packages/pandas/core/frame.py", line 88, in
from pandas.core.generic import NDFrame, _shared_docs
File "/kubeless/lib/python3.7/site-packages/pandas/core/generic.py", line 71, in
from pandas.io.formats.format import DataFrameFormatter, format_percentiles
File "/kubeless/lib/python3.7/site-packages/pandas/io/formats/format.py", line 47, in
from pandas.io.common import _expand_user, _stringify_path
File "/kubeless/lib/python3.7/site-packages/pandas/io/common.py", line 9, in
import lzma
File "/opt/bitnami/python/lib/python3.7/lzma.py", line 27, in
from _lzma import *
ModuleNotFoundError: No module named '_lzma'

Can you please suggest if i am missing anything?

@k-dahl
Copy link

k-dahl commented Aug 7, 2019

This is due to some sort of missing system dependency for lzma in the underlying image, you can currently use pandas 0.24.2 to avoid the issue.

pandas-dev/pandas#27532

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants