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

pip install spacy issue #27

Open
stephanesirop opened this issue Jan 23, 2025 · 2 comments
Open

pip install spacy issue #27

stephanesirop opened this issue Jan 23, 2025 · 2 comments

Comments

@stephanesirop
Copy link

pip subprocess to install build dependencies did not run successfully

@Manuele99
Copy link

Can you please provide more details on this?

Anyway (that's my guess) you're having troubles with some inherited dependencies for docling.
Try fixing the versions by adding the following dependencies in your requirements.txt file:

docling==2.9.0
docling-core==2.8.0
docling-ibm-models==2.0.7
docling-parse==2.1.2

@stephanesirop
Copy link
Author

Thank you for your answer,
Please find details. Can you please advise.
Thank you.

Collecting spacy
Using cached spacy-3.8.2.tar.gz (1.3 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [115 lines of output]
Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
Collecting setuptools
Using cached setuptools-75.8.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.11-cp313-cp313-win32.whl
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.12-cp313-cp313-win32.whl
Collecting thinc<8.4.0,>=8.3.0
Using cached thinc-8.3.2.tar.gz (193 kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
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

    [75 lines of output]
    Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
    Collecting setuptools
      Using cached setuptools-75.8.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.12-cp313-cp313-win32.whl
    Collecting cymem<2.1.0,>=2.0.2
      Using cached cymem-2.0.11-cp313-cp313-win32.whl
    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<1.1.0,>=1.0.0
      Using cached blis-1.0.2.tar.gz (3.6 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.1.0,>=2.0.0
      Using cached numpy-2.0.2.tar.gz (18.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'
      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

      [23 lines of output]
      + C:\Users\stephane.sirop\PyCharmMiscProject\.venv\Scripts\python.exe C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-3l807sqp\numpy_cf22e729451b42fea525cf8fd5e72d82\vendored-meson\meson\meson.py setup C:\Users\

stephane.sirop\AppData\Local\Temp\pip-install-3l807sqp\numpy_cf22e729451b42fea525cf8fd5e72d82 C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-3l807sqp\numpy_cf22e729451b42fea525cf8fd5e72d82.mesonpy-c8q4cyy6 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-3l807sqp\numpy_cf22e729451b42fea525cf8fd5e72d82.mesonpy-c8q4cyy6\meson-python-native-file.ini
The Meson build system
Version: 1.4.99
Source dir: C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-3l807sqp\numpy_cf22e729451b42fea525cf8fd5e72d82
Build dir: C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-3l807sqp\numpy_cf22e729451b42fea525cf8fd5e72d82.mesonpy-c8q4cyy6
Build type: native build
Project name: NumPy
Project version: 2.0.2
Activating VS 17.12.4
C compiler for the host machine: cl (msvc 19.42.34436 "Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x64")
C linker for the host machine: link link 14.42.34436.0
C++ compiler for the host machine: cl (msvc 19.42.34436 "Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x64")
C++ linker for the host machine: link link 14.42.34436.0
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:\Users\stephane.sirop\PyCharmMiscProject.venv\Scripts\python.exe)
Need python for x86_64, but found x86
Run-time dependency python found: NO (tried sysconfig)

      ..\meson.build:41:12: ERROR: Python dependency not found

      A full log can be found at C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-3l807sqp\numpy_cf22e729451b42fea525cf8fd5e72d82\.mesonpy-c8q4cyy6\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.
(.venv) PS C:\Users\stephane.sirop\PyCharmMiscProject> pip install spacy
Collecting spacy
Using cached spacy-3.8.2.tar.gz (1.3 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [114 lines of output]
Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
Collecting setuptools
Using cached setuptools-75.8.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.11-cp313-cp313-win32.whl
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.12-cp313-cp313-win32.whl
Collecting thinc<8.4.0,>=8.3.0
Using cached thinc-8.3.2.tar.gz (193 kB)
Installing build dependencies: started
Installing build dependencies: still running...
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

    [75 lines of output]
    Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
    Collecting setuptools
      Using cached setuptools-75.8.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.12-cp313-cp313-win32.whl
    Collecting cymem<2.1.0,>=2.0.2
      Using cached cymem-2.0.11-cp313-cp313-win32.whl
    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<1.1.0,>=1.0.0
      Using cached blis-1.0.2.tar.gz (3.6 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.1.0,>=2.0.0
      Using cached numpy-2.0.2.tar.gz (18.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'
      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

      [23 lines of output]
      + C:\Users\stephane.sirop\PyCharmMiscProject\.venv\Scripts\python.exe C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-9xs2mgfe\numpy_68dca7b88d3f4416878bff5346d9e4bb\vendored-meson\meson\meson.py setup C:\Users\

stephane.sirop\AppData\Local\Temp\pip-install-9xs2mgfe\numpy_68dca7b88d3f4416878bff5346d9e4bb C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-9xs2mgfe\numpy_68dca7b88d3f4416878bff5346d9e4bb.mesonpy-1mxgo46g -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-9xs2mgfe\numpy_68dca7b88d3f4416878bff5346d9e4bb.mesonpy-1mxgo46g\meson-python-native-file.ini
The Meson build system
Version: 1.4.99
Source dir: C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-9xs2mgfe\numpy_68dca7b88d3f4416878bff5346d9e4bb
Build dir: C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-9xs2mgfe\numpy_68dca7b88d3f4416878bff5346d9e4bb.mesonpy-1mxgo46g
Build type: native build
Project name: NumPy
Project version: 2.0.2
Activating VS 17.12.4
C compiler for the host machine: cl (msvc 19.42.34436 "Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x64")
C linker for the host machine: link link 14.42.34436.0
C++ compiler for the host machine: cl (msvc 19.42.34436 "Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x64")
C++ linker for the host machine: link link 14.42.34436.0
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:\Users\stephane.sirop\PyCharmMiscProject.venv\Scripts\python.exe)
Need python for x86_64, but found x86
Run-time dependency python found: NO (tried sysconfig)

      ..\meson.build:41:12: ERROR: Python dependency not found

      A full log can be found at C:\Users\stephane.sirop\AppData\Local\Temp\pip-install-9xs2mgfe\numpy_68dca7b88d3f4416878bff5346d9e4bb\.mesonpy-1mxgo46g\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.

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

2 participants