Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync up python/gcc versions in official docker images fission/python-builder fission/python-env #126

Closed
jpedrick opened this issue Dec 5, 2020 · 1 comment
Labels
env-python Python environment related issues/PR

Comments

@jpedrick
Copy link

jpedrick commented Dec 5, 2020

Fission/Kubernetes version
Fission version 1.11.2

$ fission version
client:
  fission/core:
    BuildDate: "2020-10-20T14:43:45Z"
    GitCommit: 52508e19343ef93da4ce8960908c5569f44da225
    Version: 1.11.2
server:
  fission/core:
    BuildDate: "2020-10-20T14:43:45Z"
    GitCommit: 52508e19343ef93da4ce8960908c5569f44da225
    Version: 1.11.2
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"e19964183377d0ec2052d1f1fa930c4d7575bd50", GitTreeState:"clean", BuildDate:"2020-08-26T14:30:33Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T13:32:58Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes platform (e.g. Google Kubernetes Engine)
Bare metal

Describe the bug

fission/python-builder is built off of alpine:3.10, while fission/python-env is built from alpine:latest.

A simple fix would be to set the version of alpine that fission/python-env is built and make sure they're sync'd up, or multiple python 3 version tags supported, going forward.

When installing some python modules(numpy), this causes incompatability between the package and the environment.

$ docker run -it --entrypoint python3 fission/python-builder -c "import sys; print(sys.version);"
3.7.7 (default, Jul 19 2020, 03:57:54)
[GCC 8.3.0]

$ docker run -it --entrypoint python3 fission/python-env -c "import sys; print(sys.version);"
3.8.5 (default, Jul 20 2020, 23:11:29)
[GCC 9.3.0]

To Reproduce

See above or install and use numpy or pandas in a python package by using requirements.txt/build.sh in the package as per documentation.

Expected result
numpy works as expected

Actual result
importing numpy throws the following error

"Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
    https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
  * The Python version is: Python3.8 from \"/usr/bin/python3\"
  * The NumPy version is: \"1.19.4\"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
"
@sanketsudake sanketsudake transferred this issue from fission/fission Jul 29, 2021
@sanketsudake sanketsudake added the env-python Python environment related issues/PR label Nov 25, 2021
@soharab-ic
Copy link
Contributor

Please try latest Python environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
env-python Python environment related issues/PR
Projects
None yet
Development

No branches or pull requests

3 participants