k8s:Streamlit Seeing TypeError: Failed to fetch dynamically imported module

hello,
i have a deployed an using docker-compose on a VM, the app works as expected,when I run the same code on pos within a k8s cluster i got this error :slight_smile:

image

what could be the issue please:
environment.yml content:

name: app-app
channels:
  - conda-forge
  - defaults
dependencies:
  - altair=5.0.1
  - arrow-cpp=16.1.0
  - attrs=24.2.0
  - aws-c-auth=0.6.19
  - aws-c-cal=0.5.20
  - aws-c-common=0.8.5
  - aws-c-compression=0.2.16
  - aws-c-event-stream=0.2.15
  - aws-c-http=0.6.25
  - aws-c-io=0.13.10
  - aws-c-mqtt=0.7.13
  - aws-c-s3=0.1.51
  - aws-c-sdkutils=0.1.6
  - aws-checksums=0.1.13
  - aws-crt-cpp=0.18.16
  - aws-sdk-cpp=1.10.55
  - blas=1.0
  - blinker=1.6.2
  - boost-cpp=1.82.0
  - bottleneck=1.3.7
  - brotli=1.0.9
  - brotli-bin=1.0.9
  - brotli-python=1.0.9
  - bzip2=1.0.8
  - c-ares=1.19.1
  - ca-certificates=2024.11.26
  - cachetools=5.3.3
  - certifi=2024.8.30
  - charset-normalizer=3.3.2
  - click=8.1.7
  - colorama=0.4.6
  - contourpy=1.3.1
  - cycler=0.11.0
  - et_xmlfile=1.1.0
  - expat=2.6.3
  - fonttools=4.51.0
  - freetype=2.12.1
  - gflags=2.2.2
  - gitdb=4.0.7
  - gitpython=3.1.43
  - glog=0.5.0
  - greenlet=3.0.1
  - htbuilder=0.6.2
  #- icc_rt=2022.1.0
  - icu=73.1
  - idna=3.7
  - importlib-metadata=7.2.1
  - intel-openmp=2023.1.0
  - jinja2=3.1.4
  - jpeg=9e
  - jsonschema=4.23.0
  - jsonschema-specifications=2023.7.1
  - kiwisolver=1.4.4
  - krb5=1.20.1
  - lcms2=2.12
  - lerc=3.0
  - libabseil=20240116.2
  - libboost=1.82.0
  - libbrotlicommon=1.0.9
  - libbrotlidec=1.0.9
  - libbrotlienc=1.0.9
  - libclang=14.0.6
  - libclang13=14.0.6
  - libcurl=8.9.1
  - libdeflate=1.17
  - libevent=2.1.12
  - libffi=3.4.4
  - libgrpc=1.62.2
  - libpng=1.6.39
  - libpq=12.17
  - libprotobuf=4.25.3
  - libssh2=1.11.0
  - libthrift=0.15.0
  - libtiff=4.5.1
  - libwebp-base=1.3.2
  - lz4-c=1.9.4
  - markdown-it-py=2.2.0
  - markupsafe=2.1.3
  - matplotlib=3.9.2
  - matplotlib-base=3.9.2
  - mdurl=0.1.0
  - mkl=2023.1.0
  - mkl-service=2.4.0
  - mkl_fft=1.3.10
  - mkl_random=1.2.7
  - more-itertools=10.3.0
  - numexpr=2.8.7
  - numpy=1.26.4
  - numpy-base=1.26.4
  - openjpeg=2.5.2
  - openpyxl=3.1.5
  - openssl=3.4.0
  - orc=2.0.1
  - packaging=24.1
  - pandas=2.2.2
  - pillow=10.4.0
  - pip=24.2
  - plotly=5.24.1
  - ply=3.11
  - protobuf=4.25.3
  - psycopg2=2.9.9
  - pyarrow=16.1.0
  - pydeck=0.8.0
  - pygments=2.15.1
  - pyparsing=3.2.0
  - pyqt=5.15.10
  - pyqt5-sip=12.13.0
  - pysocks=1.7.1
  - python=3.12.7
  - python-dateutil=2.9.0post0
  - python-dotenv=0.21.0
  - python-tzdata=2023.3
  - pytz=2024.1
  - pyyaml=6.0.2
  - qt-main=5.15.2
  - re2=2022.04.01
  - referencing=0.30.2
  - requests=2.32.3
  - rich=13.7.1
  - rpds-py=0.10.6
  - scipy=1.14.1
  - setuptools=75.1.0
  - sip=6.7.12
  - six=1.16.0
  - smmap=4.0.0
  - snappy=1.2.1
  - sqlalchemy=2.0.34
  - sqlite=3.45.3
  - streamlit=1.41.1
  - tbb=2021.8.0
  - tenacity=8.2.3
  - tk=8.6.14
  - toml=0.10.2
  - toolz=0.12.0
  - tornado=6.4.1
  - typing-extensions=4.11.0
  - typing_extensions=4.11.0
  - tzdata=2024b
  - tzlocal=3.0
  #- ucrt=10.0.22621.0
  - unicodedata2=15.1.0
  - urllib3=2.2.3
  - utf8proc=2.6.1
  - validators=0.34.0
  #- vc=14.40
  #- vc14_runtime=14.42.34433
  #- vs2015_runtime=14.42.34433
  - watchdog=4.0.1
  - wheel=0.44.0
  #- win_inet_pton=1.1.0
  - xz=5.4.6
  - yaml=0.2.5
  - zipp=3.21.0
  - zlib=1.2.13
  - zstd=1.5.6
  - pip:
      - alembic==1.13.3
      - mako==1.3.6
      - streamlit-cookies-controller==0.0.4