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

Installation not working with python 3.13 #356

Open
aricohen93 opened this issue Dec 23, 2024 · 2 comments
Open

Installation not working with python 3.13 #356

aricohen93 opened this issue Dec 23, 2024 · 2 comments

Comments

@aricohen93
Copy link
Collaborator

Description

Installation not working with python 3.13

How to reproduce the bug

(.venv_edsnlp) acohen:~/CodeUbuntu/edsnlp$ pip install -e '.[dev,setup,ml]'
Obtaining file:///home/acohen/CodeUbuntu/edsnlp
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [151 lines of output]
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine not in "arm64|aarch64|loongarch64" and platform_system != "AIX" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "arm64" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX" and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine not in "arm64|aarch64|s390x|loongarch64" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "s390x" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "loongarch64" and platform_python_implementation == "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "aarch64" and platform_system != "AIX" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_system not in "OS400" and platform_machine not in "arm64|loongarch64" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "loongarch64" and platform_python_implementation == "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "arm64" and platform_system == "Darwin" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.10" and platform_machine != "loongarch64"' don't match your environment
      Ignoring numpy: markers 'platform_machine == "loongarch64" and python_version >= "3.8" and python_version < "3.11" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "loongarch64" and platform_python_implementation == "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.11"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_system == "OS400" and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_python_implementation == "PyPy"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.12"' don't match your environment
      Collecting setuptools
        Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
      Collecting cython>=0.25
        Using cached Cython-3.0.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
      Collecting spacy<3.8,>=3.2
        Using cached spacy-3.7.5.tar.gz (1.3 MB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'error'
        error: subprocess-exited-with-error

        × pip subprocess to install build dependencies did not run successfully.
        │ exit code: 1
        ╰─> [106 lines of output]
            Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
            Collecting setuptools
              Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
            Collecting cython<3.0,>=0.25
              Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB)
            Collecting cymem<2.1.0,>=2.0.2
              Using cached cymem-2.0.10-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)
            Collecting preshed<3.1.0,>=3.0.2
              Using cached preshed-3.0.9.tar.gz (14 kB)
              Installing build dependencies: started
              Installing build dependencies: finished with status 'done'
              Getting requirements to build wheel: started
              Getting requirements to build wheel: finished with status 'done'
              Preparing metadata (pyproject.toml): started
              Preparing metadata (pyproject.toml): finished with status 'done'
            Collecting murmurhash<1.1.0,>=0.28.0
              Using cached murmurhash-1.0.11-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.0 kB)
            Collecting thinc<8.3.0,>=8.2.2
              Using cached thinc-8.2.5.tar.gz (193 kB)
              Installing build dependencies: started
              Installing build dependencies: finished with status 'error'
              error: subprocess-exited-with-error

              × pip subprocess to install build dependencies did not run successfully.
              │ exit code: 1
              ╰─> [70 lines of output]
                  Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
                  Collecting setuptools
                    Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
                  Collecting cython<3.0,>=0.25
                    Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB)
                  Collecting murmurhash<1.1.0,>=1.0.2
                    Using cached murmurhash-1.0.11-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.0 kB)
                  Collecting cymem<2.1.0,>=2.0.2
                    Using cached cymem-2.0.10-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)
                  Collecting preshed<3.1.0,>=3.0.2
                    Using cached preshed-3.0.9.tar.gz (14 kB)
                    Installing build dependencies: started
                    Installing build dependencies: finished with status 'done'
                    Getting requirements to build wheel: started
                    Getting requirements to build wheel: finished with status 'done'
                    Preparing metadata (pyproject.toml): started
                    Preparing metadata (pyproject.toml): finished with status 'done'
                  Collecting blis<0.8.0,>=0.7.8
                    Using cached blis-0.7.11.tar.gz (2.9 MB)
                    Installing build dependencies: started
                    Installing build dependencies: finished with status 'done'
                    Getting requirements to build wheel: started
                    Getting requirements to build wheel: finished with status 'done'
                    Preparing metadata (pyproject.toml): started
                    Preparing metadata (pyproject.toml): finished with status 'done'
                  Collecting numpy<2.0.0,>=1.25.0
                    Using cached numpy-1.26.4.tar.gz (15.8 MB)
                    Installing build dependencies: started
                    Installing build dependencies: finished with status 'done'
                    Getting requirements to build wheel: started
                    Getting requirements to build wheel: finished with status 'done'
                    Installing backend dependencies: started
                    Installing backend dependencies: finished with status 'done'
                    Preparing metadata (pyproject.toml): started
                    Preparing metadata (pyproject.toml): finished with status 'error'
                    error: subprocess-exited-with-error

                    × Preparing metadata (pyproject.toml) did not run successfully.
                    │ exit code: 1
                    ╰─> [20 lines of output]
                        + /home/acohen/envs/.venv_edsnlp/bin/python /tmp/pip-install-adw35c2d/numpy_d69586e706074cada279f45407102074/vendored-meson/meson/meson.py setup /tmp/pip-install-adw35c2d/numpy_d69586e706074cada279f45407102074 /tmp/pip-install-adw35c2d/numpy_d69586e706074cada279f45407102074/.mesonpy-thoe510l -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-adw35c2d/numpy_d69586e706074cada279f45407102074/.mesonpy-thoe510l/meson-python-native-file.ini
                        The Meson build system
                        Version: 1.2.99
                        Source dir: /tmp/pip-install-adw35c2d/numpy_d69586e706074cada279f45407102074
                        Build dir: /tmp/pip-install-adw35c2d/numpy_d69586e706074cada279f45407102074/.mesonpy-thoe510l
                        Build type: native build
                        Project name: NumPy
                        Project version: 1.26.4

                        ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']]
                        The following exception(s) were encountered:
                        Running `cc --version` gave "[Errno 2] No such file or directory: 'cc'"
                        Running `gcc --version` gave "[Errno 2] No such file or directory: 'gcc'"
                        Running `clang --version` gave "[Errno 2] No such file or directory: 'clang'"
                        Running `nvc --version` gave "[Errno 2] No such file or directory: 'nvc'"
                        Running `pgcc --version` gave "[Errno 2] No such file or directory: 'pgcc'"
                        Running `icc --version` gave "[Errno 2] No such file or directory: 'icc'"
                        Running `icx --version` gave "[Errno 2] No such file or directory: 'icx'"

                        A full log can be found at /tmp/pip-install-adw35c2d/numpy_d69586e706074cada279f45407102074/.mesonpy-thoe510l/meson-logs/meson-log.txt
                        [end of output]

                    note: This error originates from a subprocess, and is likely not a problem with pip.
                  error: metadata-generation-failed

                  × Encountered error while generating package metadata.
                  ╰─> See above for output.

                  note: This is an issue with the package mentioned above, not pip.
                  hint: See above for details.
                  [end of output]

              note: This error originates from a subprocess, and is likely not a problem with pip.
            error: subprocess-exited-with-error

            × pip subprocess to install build dependencies did not run successfully.
            │ exit code: 1
            ╰─> See above for output.

            note: This error originates from a subprocess, and is likely not a problem with pip.
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: subprocess-exited-with-error

      × pip subprocess to install build dependencies did not run successfully.
      │ exit code: 1
      ╰─> See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Your Environment

  • Operating System:
    Distributor ID: Ubuntu
    Description: Ubuntu 24.04.1 LTS
    Release: 24.04
    Codename: noble
@aricohen93
Copy link
Collaborator Author

Wiht python 3.9, the following dependencies should be installed before (it is not specified in the doc) :

sudo apt-get install gcc
sudo apt-get install g++

@aricohen93
Copy link
Collaborator Author

but i dont arrive to install edsnlp with py3.13

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

No branches or pull requests

1 participant