Git Product home page Git Product logo

Comments (4)

ufoym avatar ufoym commented on May 11, 2024

@fireeee
Could you explain why python3-distutils should be added?
Distutils seems the standard library in Python. And we've already added setuptools, which was developed to overcome Distutils' limitations.

from deepo.

firetee13 avatar firetee13 commented on May 11, 2024

@ufoym for python generate.py Dockerfile python==3.6 the get-pip.py fails

Traceback (most recent call last): File "/root/get-pip.py", line 20649, in <module> main() File "/root/get-pip.py", line 197, in main bootstrap(tmpdir=tmpdir) File "/root/get-pip.py", line 82, in bootstrap import pip._internal File "/tmp/tmpnedr_k8d/pip.zip/pip/_internal/__init__.py", line 42, in <module> File "/tmp/tmpnedr_k8d/pip.zip/pip/_internal/cmdoptions.py", line 16, in <module> File "/tmp/tmpnedr_k8d/pip.zip/pip/_internal/index.py", line 25, in <module> File "/tmp/tmpnedr_k8d/pip.zip/pip/_internal/download.py", line 35, in <module> File "/tmp/tmpnedr_k8d/pip.zip/pip/_internal/locations.py", line 10, in <module> ImportError: cannot import name 'sysconfig'

and all that happens before pip install setuptools.

so the short answer is get-pip.py needs distutils

Cheerz

from deepo.

ufoym avatar ufoym commented on May 11, 2024

Thank you for your information & solution.
We have resolved this issue in another way:
a6551b5

from deepo.

sunavc avatar sunavc commented on May 11, 2024

If python3-distutils or python3-distutils-extra is not required, then the corresponding lines should be removed from generator/modules/python.py. Latest commit version 147f68670dc19aa15763b4654948126016cef349 causes docker build to throw an error if --ubuntu-ver 16.04 is supplied to generate.py because line 40 in generator/modules/python.py should be '-extra' if not self.composer.ubuntu_ver.startswith('18.') else '', for docker build to succeed.

from deepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.