Skip to content

Cython is missing when building 3.6 branch #1

@ghost

Description

  Running setup.py install for scikit-learn: started
    Running setup.py install for scikit-learn: finished with status 'error'
    ERROR: Complete output from command /usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-evx8dg5y/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ym7o8w5j/install-record.txt --single-version-externally-managed --compile:
    ERROR: Partial import of sklearn during the build process.
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
      NOT AVAILABLE
    
    blis_info:
    customize UnixCCompiler
      libraries blis not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
      NOT AVAILABLE
    
    openblas_info:
    customize UnixCCompiler
    customize UnixCCompiler
    customize UnixCCompiler
      FOUND:
        libraries = ['openblas', 'openblas']
        library_dirs = ['/usr/lib']
        language = c
        define_macros = [('HAVE_CBLAS', None)]
    
      FOUND:
        libraries = ['openblas', 'openblas']
        library_dirs = ['/usr/lib']
        language = c
        define_macros = [('HAVE_CBLAS', None)]
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-evx8dg5y/scikit-learn/setup.py", line 290, in <module>
        setup_package()
      File "/tmp/pip-install-evx8dg5y/scikit-learn/setup.py", line 286, in setup_package
        setup(**metadata)
      File "/usr/lib/python3.6/site-packages/numpy/distutils/core.py", line 137, in setup
        config = configuration()
      File "/tmp/pip-install-evx8dg5y/scikit-learn/setup.py", line 174, in configuration
        config.add_subpackage('sklearn')
      File "/usr/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
        caller_level = 2)
      File "/usr/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
        caller_level = caller_level + 1)
      File "/usr/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "sklearn/setup.py", line 66, in configuration
        config.add_subpackage('utils')
      File "/usr/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
        caller_level = 2)
      File "/usr/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
        caller_level = caller_level + 1)
      File "/usr/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "sklearn/utils/setup.py", line 8, in configuration
        from Cython import Tempita
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
ERROR: Command "/usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-evx8dg5y/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ym7o8w5j/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-evx8dg5y/scikit-learn/
The command '/bin/sh -c apk add --no-cache --virtual build-dependencies python3     && apk add --virtual build-runtime     build-base python3-dev openblas-dev freetype-dev pkgconfig gfortran     && ln -s /usr/include/locale.h /usr/include/xlocale.h     && python3 -m ensurepip     && rm -r /usr/lib/python*/ensurepip     && pip3 install --upgrade pip setuptools     && ln -sf /usr/bin/python3 /usr/bin/python     && ln -sf pip3 /usr/bin/pip     && rm -r /root/.cache     && pip install --no-cache-dir $PYTHON_PACKAGES     && apk del build-runtime     && apk add --no-cache --virtual build-dependencies $PACKAGES     && rm -rf /var/cache/apk/*' returned a non-zero code: 1
docker build -t python:test .  0,09s user 0,04s system 0% cpu 17:15,56 total

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions